Class: Copilot::TraceContext
- Inherits:
-
Struct
- Object
- Struct
- Copilot::TraceContext
- Defined in:
- lib/copilot/types.rb
Overview
Trace context for distributed tracing.
Instance Attribute Summary collapse
-
#traceparent ⇒ Object
Returns the value of attribute traceparent.
-
#tracestate ⇒ Object
Returns the value of attribute tracestate.
Instance Method Summary collapse
Instance Attribute Details
#traceparent ⇒ Object
Returns the value of attribute traceparent
487 488 489 |
# File 'lib/copilot/types.rb', line 487 def traceparent @traceparent end |
#tracestate ⇒ Object
Returns the value of attribute tracestate
487 488 489 |
# File 'lib/copilot/types.rb', line 487 def tracestate @tracestate end |
Instance Method Details
#to_h ⇒ Object
488 489 490 491 492 493 |
# File 'lib/copilot/types.rb', line 488 def to_h h = {} h[:traceparent] = traceparent if traceparent h[:tracestate] = tracestate if tracestate h end |