Class: Datadog::Tracing::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 =
Gem::Version.new("0.10.2")

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.compatible?Boolean

Returns:

  • (Boolean)


338
339
340
# File 'lib/httpx/adapters/datadog.rb', line 338

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

.loaded?Boolean

Returns:

  • (Boolean)


334
335
336
# File 'lib/httpx/adapters/datadog.rb', line 334

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

.versionObject



330
331
332
# File 'lib/httpx/adapters/datadog.rb', line 330

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

Instance Method Details

#new_configurationObject



342
343
344
# File 'lib/httpx/adapters/datadog.rb', line 342

def new_configuration
  Configuration::Settings.new
end

#patcherObject



346
347
348
# File 'lib/httpx/adapters/datadog.rb', line 346

def patcher
  Patcher
end