struct OpenTelemetry::SpanContext
- OpenTelemetry::SpanContext
- OpenTelemetry::API::AbstractSpanContext
- Struct
- Value
- Object
Defined in:
span_context.crspan_context/config.cr
Constructors
- .new(trace_id : Slice(UInt8), span_id : Slice(UInt8), parent_id : Slice(UInt8) | Nil, trace_flags : OpenTelemetry::API::TraceFlags, trace_state : Hash(String, String), remote : Bool = false)
- .new(inherited_context : SpanContext)
- .new(configuration : Config)
- .new
Class Method Summary
Instance Method Summary
- #[](val)
- #[]=(val, val2)
- #[]?(val)
-
#is_remote
The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid
-
#is_valid
The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid
-
#parent_id : Slice(UInt8) | Nil
This is probably going to be a property
- #parent_id=(parent_id : Slice(UInt8) | Nil)
-
#remote : Bool
This is probably going to be a property
- #remote=(remote : Bool)
- #remote?
-
#span_id : Slice(UInt8)
This is probably going to be a property
- #span_id=(span_id : Slice(UInt8))
-
#trace_flags : TraceFlags
This is probably going to be a property
- #trace_flags=(trace_flags : TraceFlags)
-
#trace_id : Slice(UInt8)
This is probably going to be a property
- #trace_id=(trace_id : Slice(UInt8))
-
#trace_state : Hash(String, String)
TODO We're currenty playing fast and loose with TraceState.
-
#trace_state=(trace_state : Hash(String, String))
TODO We're currenty playing fast and loose with TraceState.
-
#valid?
Returns true is the trace id and span id are non-zero
Constructor Detail
Class Method Detail
Instance Method Detail
The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid
The spec dictates that this name be available: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#isvalid
This is probably going to be a property
This is probably going to be a property
This is probably going to be a property
This is probably going to be a property
This is probably going to be a property
TODO We're currenty playing fast and loose with TraceState. TraceState, per the spec, should be immutable, however, so this will need to be revised.
TODO We're currenty playing fast and loose with TraceState. TraceState, per the spec, should be immutable, however, so this will need to be revised.