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