module Datadog::Correlation

Contains behavior for managing correlations with tracing e.g. Retrieve a correlation to the current trace for logging, etc.

Constants

Identifier

Struct representing correlation

Public Instance Methods

identifier_from_context(context) click to toggle source

Produces a CorrelationIdentifier from the Context provided

# File lib/ddtrace/correlation.rb, line 34
def identifier_from_context(context)
  return Identifier.new.freeze if context.nil?

  Identifier.new(context.trace_id, context.span_id).freeze
end