Sha256: ef0c06f766d58d8b9aed4a042f87bb679badd95584d23c370042791bad7d20be
Contents?: true
Size: 803 Bytes
Versions: 4
Compression:
Stored size: 803 Bytes
Contents
# typed: true module Datadog module Contrib module Sidekiq module ServerInternalTracer # Trace when Sidekiq looks for another job to work module JobFetch private def fetch configuration = Datadog.configuration[:sidekiq] configuration[:tracer].trace(Ext::SPAN_JOB_FETCH) do |span| span.service = configuration[:service_name] span.span_type = Datadog::Ext::AppTypes::WORKER # Set analytics sample rate if Contrib::Analytics.enabled?(configuration[:analytics_enabled]) Contrib::Analytics.set_sample_rate(span, configuration[:analytics_sample_rate]) end super end end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems