Class: Datadog::Contrib::HTTPX::Integration

Inherits:
Object
  • Object
show all
Includes:
Contrib::Integration
Defined in:
lib/httpx/adapters/datadog.rb

Overview

Datadog Integration for HTTPX.

Constant Summary collapse

MINIMUM_VERSION =

MINIMUM_VERSION = Gem::Version.new(‘0.11.0’)

Gem::Version.new("0.10.2")

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.compatible?Boolean

Returns:

  • (Boolean)


191
192
193
# File 'lib/httpx/adapters/datadog.rb', line 191

def self.compatible?
  super && version >= MINIMUM_VERSION
end

.loaded?Boolean

Returns:

  • (Boolean)


187
188
189
# File 'lib/httpx/adapters/datadog.rb', line 187

def self.loaded?
  defined?(::HTTPX::Request)
end

.versionObject



183
184
185
# File 'lib/httpx/adapters/datadog.rb', line 183

def self.version
  Gem.loaded_specs["httpx"] && Gem.loaded_specs["httpx"].version
end

Instance Method Details

#default_configurationObject



195
196
197
# File 'lib/httpx/adapters/datadog.rb', line 195

def default_configuration
  Configuration::Settings.new
end

#patcherObject



199
200
201
# File 'lib/httpx/adapters/datadog.rb', line 199

def patcher
  Patcher
end