Method: Sentry::Span#get_trace_context

Defined in:
lib/sentry/span.rb

#get_trace_contextHash

Returns the span’s context that can be used to embed in an Event.

Returns:

  • (Hash)

198
199
200
201
202
203
204
205
206
207
208
209
# File 'lib/sentry/span.rb', line 198

def get_trace_context
  {
    trace_id: @trace_id,
    span_id: @span_id,
    parent_span_id: @parent_span_id,
    description: @description,
    op: @op,
    status: @status,
    origin: @origin,
    data: @data
  }
end