Method: Sentry::PropagationContext#get_trace_context

Defined in:
lib/sentry/propagation_context.rb

#get_trace_contextHash

Returns the trace context that can be used to embed in an Event.

Returns:

  • (Hash)


126
127
128
129
130
131
132
# File 'lib/sentry/propagation_context.rb', line 126

def get_trace_context
  {
    trace_id: trace_id,
    span_id: span_id,
    parent_span_id: parent_span_id
  }
end