# Packages
Package xray contains the AWS X-Ray segment document type populated by the transport-specific X-Ray middleware.
# Functions
DiscardFromTrace adds a regular expression for matching a request path to be discarded from tracing.
GenerateRequestID initializes the given context with a unique value under the RequestIDKey key.
MaxSamplingRate sets a target sampling rate in requests per second.
NewAdaptiveSampler computes the interval for sampling for tracing middleware.
NewFixedSampler sets the tracing sampling rate as a percentage value.
NewLogger creates a Logger backed by a stdlib logger.
NewRequestIDOptions initializes the options for the request ID middleware.
NewTraceOptions returns the trace middleware options by running the given constructors.
RequestIDLimitOption sets the option for truncating the request ID stored in the context at the specified length.
SampleSize sets the number of requests between two adjustments of the sampling rate when MaxSamplingRate is set.
SamplingPercent configures the percentage of requests that should be traced.
SpanIDFunc configures the function used to compute span IDs.
TraceIDFunc configures the function used to compute trace IDs.
UseRequestIDOption enables/disables using RequestID context key to store the unique request ID.
WithSpan returns a context containing the given trace, span and parent span IDs.
WrapLogger returns a logger which logs the trace ID with every message if there is one.
# Constants
RequestIDKey is the request context key used to store the request ID created by the RequestID middleware.
TraceIDKey is the request context key used to store the current Trace ID if any.
TraceParentSpanIDKey is the request context key used to store the current trace parent span ID if any.
TraceSpanIDKey is the request context key used to store the current trace span ID if any.