package
0.13.0
Repository: https://github.com/go-kit/kit.git
Documentation: pkg.go.dev

# Functions

ContextToGRPC returns a grpc RequestFunc that injects an OpenTracing Span found in `ctx` into the grpc Metadata.
ContextToHTTP returns an http RequestFunc that injects an OpenTracing Span found in `ctx` into the http headers.
GRPCToContext returns a grpc RequestFunc that tries to join with an OpenTracing trace found in `req` and starts a new Span called `operationName` accordingly.
HTTPToContext returns an http RequestFunc that tries to join with an OpenTracing trace found in `req` and starts a new Span called `operationName` accordingly.
TraceClient returns a Middleware that wraps the `next` Endpoint in an OpenTracing Span called `operationName` with client span.kind tag.
TraceEndpoint returns a Middleware that wraps the `next` Endpoint in an OpenTracing Span called `operationName`.
TraceServer returns a Middleware that wraps the `next` Endpoint in an OpenTracing Span called `operationName` with server span.kind tag..
WithIgnoreBusinessError if set to true will not treat a business error identified through the endpoint.Failer interface as a span error.
WithOperationNameFunc allows to set function that can set the span operation name based on the existing one for the endpoint and information in the context.
WithOptions sets all configuration options at once by use of the EndpointOptions struct.
WithTags adds default tags for the spans created by the Endpoint tracer.
WithTagsFunc set the func to extracts additional tags from the context.

# Structs

EndpointOptions holds the options for tracing an endpoint.

# Type aliases

EndpointOption allows for functional options to endpoint tracing middleware.