Documentation ¶
Index ¶
- Variables
- type UuidRequestIdConfig
- func (*UuidRequestIdConfig) Descriptor() ([]byte, []int)deprecated
- func (x *UuidRequestIdConfig) GetPackTraceReason() *wrapperspb.BoolValue
- func (x *UuidRequestIdConfig) GetUseRequestIdForTraceSampling() *wrapperspb.BoolValue
- func (*UuidRequestIdConfig) ProtoMessage()
- func (x *UuidRequestIdConfig) ProtoReflect() protoreflect.Message
- func (x *UuidRequestIdConfig) Reset()
- func (x *UuidRequestIdConfig) String() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_request_id_uuid_v3_uuid_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type UuidRequestIdConfig ¶
type UuidRequestIdConfig struct { // 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. PackTraceReason *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=pack_trace_reason,json=packTraceReason,proto3" json:"pack_trace_reason,omitempty"` // 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. UseRequestIdForTraceSampling *wrapperspb.BoolValue `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
Configuration for the default UUID request ID extension which has the following behavior:
Request ID is propagated using the :ref:`x-request-id <config_http_conn_man_headers_x-request-id>` header.
Request ID is a universally unique identifier `(UUID4) <https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)>`_.
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.
func (*UuidRequestIdConfig) Descriptor
deprecated
func (*UuidRequestIdConfig) Descriptor() ([]byte, []int)
Deprecated: Use UuidRequestIdConfig.ProtoReflect.Descriptor instead.
func (*UuidRequestIdConfig) GetPackTraceReason ¶
func (x *UuidRequestIdConfig) GetPackTraceReason() *wrapperspb.BoolValue
func (*UuidRequestIdConfig) GetUseRequestIdForTraceSampling ¶
func (x *UuidRequestIdConfig) GetUseRequestIdForTraceSampling() *wrapperspb.BoolValue
func (*UuidRequestIdConfig) ProtoMessage ¶
func (*UuidRequestIdConfig) ProtoMessage()
func (*UuidRequestIdConfig) ProtoReflect ¶
func (x *UuidRequestIdConfig) ProtoReflect() protoreflect.Message
func (*UuidRequestIdConfig) Reset ¶
func (x *UuidRequestIdConfig) Reset()
func (*UuidRequestIdConfig) String ¶
func (x *UuidRequestIdConfig) String() string