package
2.2.5+incompatible
Repository: https://github.com/goadesign/goa.git
Documentation: pkg.go.dev

# Packages

Package xray contains middleware that creates AWS X-Ray segments from the HTTP requests and responses and send the segments to an AWS X-ray daemon.

# Functions

CaptureResponse creates a ResponseCapture that wraps the given ResponseWriter.
Debug returns a debug middleware which prints detailed information about incoming requests and outgoing responses including all headers, parameters and bodies.
DiscardFromTrace adds a regular expression for matching a request path to be discarded from tracing.
Log returns a middleware that logs incoming HTTP requests and outgoing responses.
MaxSamplingRate is a wrapper for the top-level MaxSamplingRate.
PopulateRequestContext returns a middleware which populates a number of standard HTTP header values into the request context.
RequestContext returns a middleware which initializes the request context.
RequestContextKeyVals returns a middleware which adds the given key/value pairs to the request context.
RequestID returns a middleware, which initializes the context with a unique value under the RequestIDKey key.
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.
Trace returns a trace middleware that initializes the trace information in the request context.
TraceIDFunc is a wrapper for the top-level TraceIDFunc.
UseXRequestIDHeaderOption enables/disables using "X-Request-Id" header.
WrapDoer wraps a goa client Doer and sets the trace headers so that the downstream service may properly retrieve the parent span ID and trace ID.
XRequestHeaderLimitOption sets the option for using "X-Request-Id" header.

# Constants

ParentSpanIDHeader is the default name of the HTTP request header containing the parent span ID if any.
RequestAcceptKey is the request context key used to store the Accept header created by the PopulateRequestContext middleware.
RequestAuthorizationKey is the request context key used to store the Authorization header created by the PopulateRequestContext middleware.
RequestHostKey is the request context key used to store r.Host created by the PopulateRequestContext middleware.
RequestMethodKey is the request context key used to store r.Method created by the PopulateRequestContext middleware.
RequestPathKey is the request context key used to store r.URL.Path created by the PopulateRequestContext middleware.
RequestProtoKey is the request context key used to store r.Proto created by the PopulateRequestContext middleware.
RequestRefererKey is the request context key used to store Referer header created by the PopulateRequestContext middleware.
RequestRemoteAddrKey is the request context key used to store r.RemoteAddr created by the PopulateRequestContext middleware.
RequestURIKey is the request context key used to store r.RequestURI created by the PopulateRequestContext middleware.
RequestUserAgentKey is the request context key used to store the User-Agent header created by the PopulateRequestContext middleware.
RequestXCSRFTokenKey is the request context key used to store X-Csrf-Token header created by the PopulateRequestContext middleware.
RequestXForwardedForKey is the request context key used to store the X-Forwarded-For header created by the PopulateRequestContext middleware.
RequestXForwardedProtoKey is the request context key used to store the X-Forwarded-Proto header created by the PopulateRequestContext middleware.
RequestXRealIPKey is the request context key used to store the X-Real-IP header created by the PopulateRequestContext middleware.
RequestXRequestIDKey is the request context key used to store the X-Request-Id header created by the PopulateRequestContext middleware.
TraceIDHeader is the default name of the HTTP request header containing the current TraceID if any.

# Structs

ResponseCapture is a http.ResponseWriter which captures the response status code and content length.

# Interfaces