Class: Datadog::Tracing::Contrib::Sidekiq::Integration
- Inherits:
-
Object
- Object
- Datadog::Tracing::Contrib::Sidekiq::Integration
- Includes:
- Integration
- Defined in:
- lib/datadog/tracing/contrib/sidekiq/integration.rb
Overview
Description of Sidekiq integration
Constant Summary collapse
- MINIMUM_VERSION =
Gem::Version.new('3.5.4')
- MINIMUM_SERVER_INTERNAL_TRACING_VERSION =
Gem::Version.new('5.2.4')
Class Method Summary collapse
- .compatible? ⇒ Boolean
-
.compatible_with_server_internal_tracing? ⇒ Boolean
Only patch server internals on v5.2.4+ because that’s when loading of ‘Sidekiq::Launcher` stabilized.
- .loaded? ⇒ Boolean
- .version ⇒ Object
Instance Method Summary collapse
Methods included from Integration
Class Method Details
.compatible? ⇒ Boolean
27 28 29 |
# File 'lib/datadog/tracing/contrib/sidekiq/integration.rb', line 27 def self.compatible? super && version >= MINIMUM_VERSION end |
.compatible_with_server_internal_tracing? ⇒ Boolean
Only patch server internals on v5.2.4+ because that’s when loading of ‘Sidekiq::Launcher` stabilized. Sidekiq 4+ technically can support our patches (with minor adjustments), but in order to avoid explicitly requiring `sidekiq/launcher` ourselves (which could affect gem initialization order), we are limiting this tracing to v5.2.4+.
36 37 38 |
# File 'lib/datadog/tracing/contrib/sidekiq/integration.rb', line 36 def self.compatible_with_server_internal_tracing? version >= MINIMUM_SERVER_INTERNAL_TRACING_VERSION end |
.loaded? ⇒ Boolean
23 24 25 |
# File 'lib/datadog/tracing/contrib/sidekiq/integration.rb', line 23 def self.loaded? !defined?(::Sidekiq).nil? end |
.version ⇒ Object
19 20 21 |
# File 'lib/datadog/tracing/contrib/sidekiq/integration.rb', line 19 def self.version Gem.loaded_specs['sidekiq'] && Gem.loaded_specs['sidekiq'].version end |
Instance Method Details
#new_configuration ⇒ Object
40 41 42 |
# File 'lib/datadog/tracing/contrib/sidekiq/integration.rb', line 40 def new_configuration Configuration::Settings.new end |
#patcher ⇒ Object
44 45 46 |
# File 'lib/datadog/tracing/contrib/sidekiq/integration.rb', line 44 def patcher Patcher end |