Module: Datadog::Tracing::Contrib::Sidekiq

Defined in:
lib/datadog/tracing/contrib/sidekiq.rb,
lib/datadog/tracing/contrib/sidekiq/ext.rb,
lib/datadog/tracing/contrib/sidekiq/utils.rb,
lib/datadog/tracing/contrib/sidekiq/patcher.rb,
lib/datadog/tracing/contrib/sidekiq/integration.rb,
lib/datadog/tracing/contrib/sidekiq/client_tracer.rb,
lib/datadog/tracing/contrib/sidekiq/server_tracer.rb,
lib/datadog/tracing/contrib/sidekiq/configuration/settings.rb,
lib/datadog/tracing/contrib/sidekiq/distributed/propagation.rb,
lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/stop.rb,
lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/heartbeat.rb,
lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/job_fetch.rb,
lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/redis_info.rb,
lib/datadog/tracing/contrib/sidekiq/server_internal_tracer/scheduled_poller.rb

Overview

‘Sidekiq` integration public API

Defined Under Namespace

Modules: Configuration, Distributed, Ext, Patcher, ServerInternalTracer, Utils Classes: ClientTracer, Integration, ServerTracer

Class Method Summary collapse

Class Method Details

.extract(data) ⇒ Object



18
19
20
21
22
# File 'lib/datadog/tracing/contrib/sidekiq.rb', line 18

def self.extract(data)
  raise 'Please invoke Datadog.configure at least once before calling this method' unless @propagation

  @propagation.extract(data)
end

.inject(digest, data) ⇒ Object



12
13
14
15
16
# File 'lib/datadog/tracing/contrib/sidekiq.rb', line 12

def self.inject(digest, data)
  raise 'Please invoke Datadog.configure at least once before calling this method' unless @propagation

  @propagation.inject!(digest, data)
end