Class OpenTelemetryAccessLogConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.access_loggers.open_telemetry.v3.OpenTelemetryAccessLogConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,OpenTelemetryAccessLogConfigOrBuilder,Serializable
public final class OpenTelemetryAccessLogConfig extends com.google.protobuf.GeneratedMessageV3 implements OpenTelemetryAccessLogConfigOrBuilder
Configuration for the built-in ``envoy.access_loggers.open_telemetry`` :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`. This configuration will populate `opentelemetry.proto.collector.v1.logs.ExportLogsServiceRequest.resource_logs <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/collector/logs/v1/logs_service.proto>`_. In addition, the request start time is set in the dedicated field. [#extension: envoy.access_loggers.open_telemetry]
Protobuf typeenvoy.extensions.access_loggers.open_telemetry.v3.OpenTelemetryAccessLogConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenTelemetryAccessLogConfig.BuilderConfiguration for the built-in ``envoy.access_loggers.open_telemetry`` :ref:`AccessLog <envoy_v3_api_msg_config.accesslog.v3.AccessLog>`.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTES_FIELD_NUMBERstatic intBODY_FIELD_NUMBERstatic intCOMMON_CONFIG_FIELD_NUMBERstatic intRESOURCE_ATTRIBUTES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)KeyValueListgetAttributes()See 'attributes' in the LogResource proto for more details.KeyValueListOrBuildergetAttributesOrBuilder()See 'attributes' in the LogResource proto for more details.AnyValuegetBody()OpenTelemetry `LogResource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_ fields, following `Envoy access logging formatting <https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_.AnyValueOrBuildergetBodyOrBuilder()OpenTelemetry `LogResource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_ fields, following `Envoy access logging formatting <https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_.CommonGrpcAccessLogConfiggetCommonConfig()[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]CommonGrpcAccessLogConfigOrBuildergetCommonConfigOrBuilder()[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]static OpenTelemetryAccessLogConfiggetDefaultInstance()OpenTelemetryAccessLogConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<OpenTelemetryAccessLogConfig>getParserForType()KeyValueListgetResourceAttributes()OpenTelemetry `Resource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_ attributes are filled with Envoy node info.KeyValueListOrBuildergetResourceAttributesOrBuilder()OpenTelemetry `Resource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_ attributes are filled with Envoy node info.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasAttributes()See 'attributes' in the LogResource proto for more details.booleanhasBody()OpenTelemetry `LogResource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_ fields, following `Envoy access logging formatting <https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_.booleanhasCommonConfig()[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]inthashCode()booleanhasResourceAttributes()OpenTelemetry `Resource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_ attributes are filled with Envoy node info.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static OpenTelemetryAccessLogConfig.BuildernewBuilder()static OpenTelemetryAccessLogConfig.BuildernewBuilder(OpenTelemetryAccessLogConfig prototype)OpenTelemetryAccessLogConfig.BuildernewBuilderForType()protected OpenTelemetryAccessLogConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static OpenTelemetryAccessLogConfigparseDelimitedFrom(InputStream input)static OpenTelemetryAccessLogConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenTelemetryAccessLogConfigparseFrom(byte[] data)static OpenTelemetryAccessLogConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenTelemetryAccessLogConfigparseFrom(com.google.protobuf.ByteString data)static OpenTelemetryAccessLogConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenTelemetryAccessLogConfigparseFrom(com.google.protobuf.CodedInputStream input)static OpenTelemetryAccessLogConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenTelemetryAccessLogConfigparseFrom(InputStream input)static OpenTelemetryAccessLogConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static OpenTelemetryAccessLogConfigparseFrom(ByteBuffer data)static OpenTelemetryAccessLogConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<OpenTelemetryAccessLogConfig>parser()OpenTelemetryAccessLogConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
COMMON_CONFIG_FIELD_NUMBER
public static final int COMMON_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESOURCE_ATTRIBUTES_FIELD_NUMBER
public static final int RESOURCE_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BODY_FIELD_NUMBER
public static final int BODY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTRIBUTES_FIELD_NUMBER
public static final int ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasCommonConfig
public boolean hasCommonConfig()
[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]
.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }- Specified by:
hasCommonConfigin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- Whether the commonConfig field is set.
-
getCommonConfig
public CommonGrpcAccessLogConfig getCommonConfig()
[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]
.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }- Specified by:
getCommonConfigin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- The commonConfig.
-
getCommonConfigOrBuilder
public CommonGrpcAccessLogConfigOrBuilder getCommonConfigOrBuilder()
[#comment:TODO(itamarkam): add 'filter_state_objects_to_log' to logs.]
.envoy.extensions.access_loggers.grpc.v3.CommonGrpcAccessLogConfig common_config = 1 [(.validate.rules) = { ... }- Specified by:
getCommonConfigOrBuilderin interfaceOpenTelemetryAccessLogConfigOrBuilder
-
hasResourceAttributes
public boolean hasResourceAttributes()
OpenTelemetry `Resource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_ attributes are filled with Envoy node info. Example: ``resource_attributes { values { key: "region" value { string_value: "cn-north-7" } } }``..opentelemetry.proto.common.v1.KeyValueList resource_attributes = 4;- Specified by:
hasResourceAttributesin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- Whether the resourceAttributes field is set.
-
getResourceAttributes
public KeyValueList getResourceAttributes()
OpenTelemetry `Resource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_ attributes are filled with Envoy node info. Example: ``resource_attributes { values { key: "region" value { string_value: "cn-north-7" } } }``..opentelemetry.proto.common.v1.KeyValueList resource_attributes = 4;- Specified by:
getResourceAttributesin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- The resourceAttributes.
-
getResourceAttributesOrBuilder
public KeyValueListOrBuilder getResourceAttributesOrBuilder()
OpenTelemetry `Resource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto#L51>`_ attributes are filled with Envoy node info. Example: ``resource_attributes { values { key: "region" value { string_value: "cn-north-7" } } }``..opentelemetry.proto.common.v1.KeyValueList resource_attributes = 4;- Specified by:
getResourceAttributesOrBuilderin interfaceOpenTelemetryAccessLogConfigOrBuilder
-
hasBody
public boolean hasBody()
OpenTelemetry `LogResource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_ fields, following `Envoy access logging formatting <https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_. See 'body' in the LogResource proto for more details. Example: ``body { string_value: "%PROTOCOL%" }``..opentelemetry.proto.common.v1.AnyValue body = 2;- Specified by:
hasBodyin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- Whether the body field is set.
-
getBody
public AnyValue getBody()
OpenTelemetry `LogResource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_ fields, following `Envoy access logging formatting <https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_. See 'body' in the LogResource proto for more details. Example: ``body { string_value: "%PROTOCOL%" }``..opentelemetry.proto.common.v1.AnyValue body = 2;- Specified by:
getBodyin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- The body.
-
getBodyOrBuilder
public AnyValueOrBuilder getBodyOrBuilder()
OpenTelemetry `LogResource <https://github.com/open-telemetry/opentelemetry-proto/blob/main/opentelemetry/proto/logs/v1/logs.proto>`_ fields, following `Envoy access logging formatting <https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage>`_. See 'body' in the LogResource proto for more details. Example: ``body { string_value: "%PROTOCOL%" }``..opentelemetry.proto.common.v1.AnyValue body = 2;- Specified by:
getBodyOrBuilderin interfaceOpenTelemetryAccessLogConfigOrBuilder
-
hasAttributes
public boolean hasAttributes()
See 'attributes' in the LogResource proto for more details. Example: ``attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }``..opentelemetry.proto.common.v1.KeyValueList attributes = 3;- Specified by:
hasAttributesin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- Whether the attributes field is set.
-
getAttributes
public KeyValueList getAttributes()
See 'attributes' in the LogResource proto for more details. Example: ``attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }``..opentelemetry.proto.common.v1.KeyValueList attributes = 3;- Specified by:
getAttributesin interfaceOpenTelemetryAccessLogConfigOrBuilder- Returns:
- The attributes.
-
getAttributesOrBuilder
public KeyValueListOrBuilder getAttributesOrBuilder()
See 'attributes' in the LogResource proto for more details. Example: ``attributes { values { key: "user_agent" value { string_value: "%REQ(USER-AGENT)%" } } }``..opentelemetry.proto.common.v1.KeyValueList attributes = 3;- Specified by:
getAttributesOrBuilderin interfaceOpenTelemetryAccessLogConfigOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenTelemetryAccessLogConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static OpenTelemetryAccessLogConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static OpenTelemetryAccessLogConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public OpenTelemetryAccessLogConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static OpenTelemetryAccessLogConfig.Builder newBuilder()
-
newBuilder
public static OpenTelemetryAccessLogConfig.Builder newBuilder(OpenTelemetryAccessLogConfig prototype)
-
toBuilder
public OpenTelemetryAccessLogConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected OpenTelemetryAccessLogConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static OpenTelemetryAccessLogConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<OpenTelemetryAccessLogConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<OpenTelemetryAccessLogConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public OpenTelemetryAccessLogConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-