struct OpenTelemetry::Proto::Logs::V1::LogRecord
- OpenTelemetry::Proto::Logs::V1::LogRecord
- Struct
- Value
- Object
Included Modules
- Protobuf::Message
Defined in:
proto/logs.pb.crConstant Summary
-
FIELDS =
{1 => {name: :time_unix_nano, pb_type: :fixed64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 11 => {name: :observed_time_unix_nano, pb_type: :fixed64, crystal_type: UInt64, cast_type: UInt64?, native: true, optional: true, repeated: false, default: nil, packed: false}, 2 => {name: :severity_number, pb_type: SeverityNumber, crystal_type: SeverityNumber, cast_type: SeverityNumber?, native: false, optional: true, repeated: false, default: nil, packed: false}, 3 => {name: :severity_text, pb_type: :string, crystal_type: String, cast_type: String?, native: true, optional: true, repeated: false, default: nil, packed: false}, 5 => {name: :body, pb_type: OpenTelemetry::Proto::Common::V1::AnyValue, crystal_type: OpenTelemetry::Proto::Common::V1::AnyValue, cast_type: OpenTelemetry::Proto::Common::V1::AnyValue?, native: false, optional: true, repeated: false, default: nil, packed: false}, 6 => {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}, 7 => {name: :dropped_attributes_count, pb_type: :uint32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 8 => {name: :flags, pb_type: :fixed32, crystal_type: UInt32, cast_type: UInt32?, native: true, optional: true, repeated: false, default: nil, packed: false}, 9 => {name: :trace_id, pb_type: :bytes, crystal_type: Slice(UInt8), cast_type: Slice(UInt8)?, native: true, optional: true, repeated: false, default: nil, packed: false}, 10 => {name: :span_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
- .new(buf : Protobuf::Buffer)
- .new(time_unix_nano : UInt64 | Nil = nil, observed_time_unix_nano : UInt64 | Nil = nil, severity_number : SeverityNumber | Nil = nil, severity_text : String | Nil = nil, body : OpenTelemetry::Proto::Common::V1::AnyValue | Nil = nil, attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil = nil, dropped_attributes_count : UInt32 | Nil = nil, flags : UInt32 | Nil = nil, trace_id : Slice(UInt8) | Nil = nil, span_id : Slice(UInt8) | 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)
- #body : OpenTelemetry::Proto::Common::V1::AnyValue | Nil
- #body=(body : OpenTelemetry::Proto::Common::V1::AnyValue | Nil)
- #dropped_attributes_count : UInt32 | Nil
- #dropped_attributes_count=(dropped_attributes_count : UInt32 | Nil)
- #flags : UInt32 | Nil
- #flags=(flags : UInt32 | Nil)
- #observed_time_unix_nano : UInt64 | Nil
- #observed_time_unix_nano=(observed_time_unix_nano : UInt64 | Nil)
- #severity_number : SeverityNumber | Nil
- #severity_number=(severity_number : SeverityNumber | Nil)
- #severity_text : String | Nil
- #severity_text=(severity_text : String | Nil)
- #span_id : Slice(UInt8) | Nil
- #span_id=(span_id : Slice(UInt8) | Nil)
- #time_unix_nano : UInt64 | Nil
- #time_unix_nano=(time_unix_nano : UInt64 | Nil)
- #to_protobuf(io : IO, embedded = false)
- #to_protobuf
- #trace_id : Slice(UInt8) | Nil
- #trace_id=(trace_id : Slice(UInt8) | Nil)
Constructor Detail
def self.new(time_unix_nano : UInt64 | Nil = nil, observed_time_unix_nano : UInt64 | Nil = nil, severity_number : SeverityNumber | Nil = nil, severity_text : String | Nil = nil, body : OpenTelemetry::Proto::Common::V1::AnyValue | Nil = nil, attributes : Array(OpenTelemetry::Proto::Common::V1::KeyValue) | Nil = nil, dropped_attributes_count : UInt32 | Nil = nil, flags : UInt32 | Nil = nil, trace_id : Slice(UInt8) | Nil = nil, span_id : Slice(UInt8) | Nil = nil)
#