# Packages
Package xray contains unary and streaming server and client interceptors that
create AWS X-Ray segments from the gRPC requests and responses and send the
segments to an AWS X-ray daemon.
# Functions
DiscardFromTrace adds a regular expression for matching a request path to be discarded from tracing.
MaxSamplingRate is a wrapper for the top-level MaxSamplingRate.
MetadataValue returns the first value for the given metadata key if key exists, else returns an empty string.
NewWrappedServerStream returns a new wrapped grpc ServerStream.
SampleSize is a wrapper for the top-level SampleSize.
SamplingPercent is a wrapper for the top-level SamplingPercent.
SpanIDFunc is a wrapper for the top-level SpanIDFunc.
StreamCanceler provides a middleware that can be used to gracefully stop streaming requests.
StreamClientTrace sets the outgoing stream request metadata with the trace information found in the context so that the downstream service may properly retrieve the parent span ID and trace ID.
StreamRequestID returns a middleware for streaming gRPC requests which initializes the stream metadata with a unique value under the RequestIDMetadata key.
StreamServerLog returns a middleware that logs incoming streaming gRPC requests and responses.
StreamServerTrace returns a server trace middleware that initializes the trace information in the streaming gRPC request context.
TraceIDFunc is a wrapper for the top-level TraceIDFunc.
UnaryClientTrace sets the outgoing unary request metadata with the trace information found in the context so that the downstream service may properly retrieve the parent span ID and trace ID.
UnaryRequestID returns a middleware for unary gRPC requests which initializes the request metadata with a unique value under the RequestIDMetadata key.
UnaryServerLog returns a middleware that logs incoming gRPC requests and outgoing responses.
UnaryServerTrace returns a server trace middleware that initializes the trace informartion in the unary gRPC request context.
UseXRequestIDMetadataOption enables/disables using "x-request-id" metadata.
XRequestMetadataLimitOption sets the option for limiting "x-request-id" metadata length.
# Constants
ParentSpanIDMetadataKey is the default name of the gRPC request metadata key containing the parent span ID if any.
RequestIDMetadataKey is the key containing the request ID in the gRPC metadata.
SpanIDMetadataKey is the default name of the gRPC request metadata containing the span ID if any.
TraceIDMetadataKey is the default name of the gRPC request metadata key containing the current TraceID if any.
# Structs
No description provided by the author