Class UuidRequestIdConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.extensions.request_id.uuid.v3.UuidRequestIdConfig
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,UuidRequestIdConfigOrBuilder,Serializable
public final class UuidRequestIdConfig
extends com.google.protobuf.GeneratedMessageV3
implements UuidRequestIdConfigOrBuilder
Configuration for the default UUID request ID extension which has the following behavior:
1. Request ID is propagated using the :ref:`x-request-id
<config_http_conn_man_headers_x-request-id>` header.
2. Request ID is a universally unique identifier `(UUID4)
<https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)>`_.
3. Tracing decision (sampled, forced, etc) is set in 14th nibble of the UUID. By default this will
overwrite existing UUIDs received in the ``x-request-id`` header if the trace sampling decision
is changed. The 14th nibble of the UUID4 has been chosen because it is fixed to '4' by the
standard. Thus, '4' indicates a default UUID and no trace status. This nibble is swapped to:
a. '9': Sampled.
b. 'a': Force traced due to server-side override.
c. 'b': Force traced due to client-side request ID joining.
See the :ref:`x-request-id <config_http_conn_man_headers_x-request-id>` documentation for
more information.
Protobuf type envoy.extensions.request_id.uuid.v3.UuidRequestIdConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classConfiguration for the default UUID request ID extension which has the following behavior: 1.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UuidRequestIdConfigstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.BoolValueWhether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation.com.google.protobuf.BoolValueOrBuilderWhether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation.com.google.protobuf.Parser<UuidRequestIdConfig>intcom.google.protobuf.BoolValueSet whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not.com.google.protobuf.BoolValueOrBuilderSet whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not.inthashCode()booleanWhether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation.booleanSet whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic UuidRequestIdConfig.Builderstatic UuidRequestIdConfig.BuildernewBuilder(UuidRequestIdConfig prototype) protected UuidRequestIdConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static UuidRequestIdConfigparseDelimitedFrom(InputStream input) static UuidRequestIdConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UuidRequestIdConfigparseFrom(byte[] data) static UuidRequestIdConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UuidRequestIdConfigparseFrom(com.google.protobuf.ByteString data) static UuidRequestIdConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UuidRequestIdConfigparseFrom(com.google.protobuf.CodedInputStream input) static UuidRequestIdConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UuidRequestIdConfigparseFrom(InputStream input) static UuidRequestIdConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static UuidRequestIdConfigparseFrom(ByteBuffer data) static UuidRequestIdConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<UuidRequestIdConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PACK_TRACE_REASON_FIELD_NUMBER
public static final int PACK_TRACE_REASON_FIELD_NUMBER- See Also:
-
USE_REQUEST_ID_FOR_TRACE_SAMPLING_FIELD_NUMBER
public static final int USE_REQUEST_ID_FOR_TRACE_SAMPLING_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein 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
-
hasPackTraceReason
public boolean hasPackTraceReason()Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation. This defaults to true. If disabled no modification to the UUID will be performed. It is important to note that if disabled, stable sampling of traces, access logs, etc. will no longer work and only random sampling will be possible.
.google.protobuf.BoolValue pack_trace_reason = 1;- Specified by:
hasPackTraceReasonin interfaceUuidRequestIdConfigOrBuilder- Returns:
- Whether the packTraceReason field is set.
-
getPackTraceReason
public com.google.protobuf.BoolValue getPackTraceReason()Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation. This defaults to true. If disabled no modification to the UUID will be performed. It is important to note that if disabled, stable sampling of traces, access logs, etc. will no longer work and only random sampling will be possible.
.google.protobuf.BoolValue pack_trace_reason = 1;- Specified by:
getPackTraceReasonin interfaceUuidRequestIdConfigOrBuilder- Returns:
- The packTraceReason.
-
getPackTraceReasonOrBuilder
public com.google.protobuf.BoolValueOrBuilder getPackTraceReasonOrBuilder()Whether the implementation alters the UUID to contain the trace sampling decision as per the ``UuidRequestIdConfig`` message documentation. This defaults to true. If disabled no modification to the UUID will be performed. It is important to note that if disabled, stable sampling of traces, access logs, etc. will no longer work and only random sampling will be possible.
.google.protobuf.BoolValue pack_trace_reason = 1;- Specified by:
getPackTraceReasonOrBuilderin interfaceUuidRequestIdConfigOrBuilder
-
hasUseRequestIdForTraceSampling
public boolean hasUseRequestIdForTraceSampling()Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not. This defaults to true. See the :ref:`context propagation <arch_overview_tracing_context_propagation>` overview for more information.
.google.protobuf.BoolValue use_request_id_for_trace_sampling = 2;- Specified by:
hasUseRequestIdForTraceSamplingin interfaceUuidRequestIdConfigOrBuilder- Returns:
- Whether the useRequestIdForTraceSampling field is set.
-
getUseRequestIdForTraceSampling
public com.google.protobuf.BoolValue getUseRequestIdForTraceSampling()Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not. This defaults to true. See the :ref:`context propagation <arch_overview_tracing_context_propagation>` overview for more information.
.google.protobuf.BoolValue use_request_id_for_trace_sampling = 2;- Specified by:
getUseRequestIdForTraceSamplingin interfaceUuidRequestIdConfigOrBuilder- Returns:
- The useRequestIdForTraceSampling.
-
getUseRequestIdForTraceSamplingOrBuilder
public com.google.protobuf.BoolValueOrBuilder getUseRequestIdForTraceSamplingOrBuilder()Set whether to use :ref:`x-request-id<config_http_conn_man_headers_x-request-id>` for sampling or not. This defaults to true. See the :ref:`context propagation <arch_overview_tracing_context_propagation>` overview for more information.
.google.protobuf.BoolValue use_request_id_for_trace_sampling = 2;- Specified by:
getUseRequestIdForTraceSamplingOrBuilderin interfaceUuidRequestIdConfigOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- 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
- 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 UuidRequestIdConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UuidRequestIdConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static UuidRequestIdConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static UuidRequestIdConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static UuidRequestIdConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UuidRequestIdConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-