struct OpenTelemetry::Proto::Metrics::V1::Exemplar

Included Modules

Defined in:

proto/metrics.pb.cr

Constant Summary

FIELDS = {7 => {name: :filtered_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}, 2 => {name: :time_unix_nano, pb_type: :fixed64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :as_double, pb_type: :double, crystal_type: Float64, cast_type: Float64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 6 => {name: :as_int, pb_type: :sfixed64, crystal_type: Int64, cast_type: Int64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 4 => {name: :span_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :trace_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}} of Int32 => HashLiteral(Symbol, ASTNode)

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(buf : Protobuf::Buffer) #

def self.new(filtered_attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil = nil, time_unix_nano : UInt64 | Nil = nil, as_double : Float64 | Nil = nil, as_int : Int64 | Nil = nil, span_id : Slice(UInt8) | Nil = nil, trace_id : Slice(UInt8) | Nil = nil) #

Class Method Detail

def self.from_protobuf(io) #

Instance Method Detail

def [](key : String) #

def as_double : Float64 | Nil #

def as_double=(as_double : Float64 | Nil) #

def as_int : Int64 | Nil #

def as_int=(as_int : Int64 | Nil) #

def filtered_attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil #

def filtered_attributes=(filtered_attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil) #

def span_id : Slice(UInt8) | Nil #

def span_id=(span_id : Slice(UInt8) | Nil) #

def time_unix_nano : UInt64 | Nil #

def time_unix_nano=(time_unix_nano : UInt64 | Nil) #

def to_protobuf(io : IO, embedded = false) #

def to_protobuf #

def trace_id : Slice(UInt8) | Nil #

def trace_id=(trace_id : Slice(UInt8) | Nil) #