struct OpenTelemetry::Proto::Trace::V1::Span::Link
- OpenTelemetry::Proto::Trace::V1::Span::Link
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/trace.pb.crConstant Summary
-
FIELDS =
{1 => {name: :trace_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :span_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :trace_state, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :attributes, pb_type: OpenTelemetry::Proto::Common::V1::KeyValue, crystal_type: OpenTelemetry::Proto::Common::V1::KeyValue, cast_type: Array(OpenTelemetry::Proto::Common::V1::KeyValue)?, native: false, optional: true, repeated: true, default: nil, packed: false}, 5 => {name: :dropped_attributes_count, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)
Constructors
- .new(buf : Protobuf::Buffer)
- .new(trace_id : Slice(UInt8) | Nil = nil, span_id : Slice(UInt8) | Nil = nil, trace_state : String | Nil = nil, attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil = nil, dropped_attributes_count : UInt32 | Nil = nil)
Class Method Summary
Instance Method Summary
- #[](key : String)
- #attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil
- #attributes=(attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil)
- #dropped_attributes_count : UInt32 | Nil
- #dropped_attributes_count=(dropped_attributes_count : UInt32 | Nil)
- #span_id : Slice(UInt8) | Nil
- #span_id=(span_id : Slice(UInt8) | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #trace_id : Slice(UInt8) | Nil
- #trace_id=(trace_id : Slice(UInt8) | Nil)
- #trace_state : String | Nil
- #trace_state=(trace_state : String | Nil)
Constructor Detail
def self.new(trace_id : Slice(UInt8) | Nil = nil, span_id : Slice(UInt8) | Nil = nil, trace_state : String | Nil = nil, attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil = nil, dropped_attributes_count : UInt32 | Nil = nil)
#