module Datadog

Datadog global namespace that includes all tracing functionality for Tracer and Span classes.

NOTE: This code is copied directly from Redis.

Its purpose is to resolve connection information.
It exists here only because it doesn't exist in the redis
library as a separated module and it allows to avoid
instantiating a new Redis::Client for resolving the connection

Datadog global namespace

Datadog global namespace that includes all tracing functionality for Tracer and Span classes.

Datadog global namespace that includes all tracing functionality for Tracer and Span classes.

NOTE: This code is copied directly from ActiveRecord.

Its purpose is to resolve connection information.
It exists here only because it doesn't exist in Rails 3.2.
When support for Rails 3.2 is dropped, this can be removed.

Public Instance Methods

assign_priority!(span, priority) click to toggle source
# File lib/ddtrace/sampler.rb, line 279
def assign_priority!(span, priority)
  if span.context
    span.context.sampling_priority = priority
  else
    # Set the priority directly on the span instead, since otherwise
    # it won't receive the appropriate tag.
    span.set_metric(
      Ext::DistributedTracing::SAMPLING_PRIORITY_KEY,
      priority
    )
  end
end