Method: Sentry.get_traceparent
- Defined in:
- lib/sentry-ruby.rb
permalink .get_traceparent ⇒ String?
Returns the traceparent (sentry-trace) header for distributed tracing. Can be either from the currently active span or the propagation context.
555 556 557 558 |
# File 'lib/sentry-ruby.rb', line 555 def get_traceparent return nil unless initialized? get_current_hub.get_traceparent end |