Package io.opentelemetry.proto.logs.v1
Interface LogRecordOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LogRecord,LogRecord.Builder
public interface LogRecordOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyValuegetAttributes(int index)Additional attributes that describe the specific event occurrence.intgetAttributesCount()Additional attributes that describe the specific event occurrence.List<KeyValue>getAttributesList()Additional attributes that describe the specific event occurrence.KeyValueOrBuildergetAttributesOrBuilder(int index)Additional attributes that describe the specific event occurrence.List<? extends KeyValueOrBuilder>getAttributesOrBuilderList()Additional attributes that describe the specific event occurrence.AnyValuegetBody()A value containing the body of the log record.AnyValueOrBuildergetBodyOrBuilder()A value containing the body of the log record.intgetDroppedAttributesCount()uint32 dropped_attributes_count = 7;intgetFlags()Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0.StringgetName()Short event identifier that does not contain varying parts.com.google.protobuf.ByteStringgetNameBytes()Short event identifier that does not contain varying parts.SeverityNumbergetSeverityNumber()Numerical value of the severity, normalized to values described in Log Data Model.intgetSeverityNumberValue()Numerical value of the severity, normalized to values described in Log Data Model.StringgetSeverityText()The severity text (also known as log level).com.google.protobuf.ByteStringgetSeverityTextBytes()The severity text (also known as log level).com.google.protobuf.ByteStringgetSpanId()A unique identifier for a span within a trace, assigned when the span is created.longgetTimeUnixNano()time_unix_nano is the time when the event occurred.com.google.protobuf.ByteStringgetTraceId()A unique identifier for a trace.booleanhasBody()A value containing the body of the log record.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getTimeUnixNano
long getTimeUnixNano()
time_unix_nano is the time when the event occurred. Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970. Value of 0 indicates unknown or missing timestamp.
fixed64 time_unix_nano = 1;
-
getSeverityNumberValue
int getSeverityNumberValue()
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;
-
getSeverityNumber
SeverityNumber getSeverityNumber()
Numerical value of the severity, normalized to values described in Log Data Model. [Optional].
.opentelemetry.proto.logs.v1.SeverityNumber severity_number = 2;
-
getSeverityText
String getSeverityText()
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;
-
getSeverityTextBytes
com.google.protobuf.ByteString getSeverityTextBytes()
The severity text (also known as log level). The original string representation as it is known at the source. [Optional].
string severity_text = 3;
-
getName
String getName()
Short event identifier that does not contain varying parts. Name describes what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 characters. Not guaranteed to be unique in any way. [Optional].
string name = 4;
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Short event identifier that does not contain varying parts. Name describes what happened (e.g. "ProcessStarted"). Recommended to be no longer than 50 characters. Not guaranteed to be unique in any way. [Optional].
string name = 4;
-
hasBody
boolean hasBody()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
getBody
AnyValue getBody()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
getBodyOrBuilder
AnyValueOrBuilder getBodyOrBuilder()
A value containing the body of the log record. Can be for example a human-readable string message (including multi-line) describing the event in a free form or it can be a structured data composed of arrays and maps of other values. [Optional].
.opentelemetry.proto.common.v1.AnyValue body = 5;
-
getAttributesList
List<KeyValue> getAttributesList()
Additional attributes that describe the specific event occurrence. [Optional].
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributes
KeyValue getAttributes(int index)
Additional attributes that describe the specific event occurrence. [Optional].
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributesCount
int getAttributesCount()
Additional attributes that describe the specific event occurrence. [Optional].
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributesOrBuilderList
List<? extends KeyValueOrBuilder> getAttributesOrBuilderList()
Additional attributes that describe the specific event occurrence. [Optional].
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getAttributesOrBuilder
KeyValueOrBuilder getAttributesOrBuilder(int index)
Additional attributes that describe the specific event occurrence. [Optional].
repeated .opentelemetry.proto.common.v1.KeyValue attributes = 6;
-
getDroppedAttributesCount
int getDroppedAttributesCount()
uint32 dropped_attributes_count = 7;
-
getFlags
int getFlags()
Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. 24 most significant bits are reserved and must be set to 0. Readers must not assume that 24 most significant bits will be zero and must correctly mask the bits when reading 8-bit trace flag (use flags & TRACE_FLAGS_MASK). [Optional].
fixed32 flags = 8;
-
getTraceId
com.google.protobuf.ByteString getTraceId()
A unique identifier for a trace. All logs from the same trace share the same `trace_id`. The ID is a 16-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of request processing and have an assigned trace id. [Optional].
bytes trace_id = 9;
-
getSpanId
com.google.protobuf.ByteString getSpanId()
A unique identifier for a span within a trace, assigned when the span is created. The ID is an 8-byte array. An ID with all zeroes is considered invalid. Can be set for logs that are part of a particular processing span. If span_id is present trace_id SHOULD be also present. [Optional].
bytes span_id = 10;
-
-