Method: Sentry::Span#get_dynamic_sampling_context

Defined in:
lib/sentry/span.rb

#get_dynamic_sampling_contextHash?

Returns the Dynamic Sampling Context from the transaction baggage.

Returns:

  • (Hash, nil)
[View source]

170
171
172
# File 'lib/sentry/span.rb', line 170

def get_dynamic_sampling_context
  transaction.get_baggage&.dynamic_sampling_context
end