Method: Sentry.get_traceparent

Defined in:
lib/sentry-ruby.rb

.get_traceparentString?

Returns the traceparent (sentry-trace) header for distributed tracing. Can be either from the currently active span or the propagation context.

Returns:

  • (String, nil)
[View source]

555
556
557
558
# File 'lib/sentry-ruby.rb', line 555

def get_traceparent
  return nil unless initialized?
  get_current_hub.get_traceparent
end