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

# Functions

GRPCClientTrace enables OpenCensus tracing of a Go kit gRPC transport client.
GRPCServerTrace enables OpenCensus tracing of a Go kit gRPC transport server.
HTTPClientTrace enables OpenCensus tracing of a Go kit HTTP transport client.
HTTPServerTrace enables OpenCensus tracing of a Go kit HTTP transport server.
IsPublic should be set to true for publicly accessible servers and for clients that should not propagate their current trace metadata.
JSONRPCClientTrace enables OpenCensus tracing of a Go kit JSONRPC transport client.
JSONRPCServerTrace enables OpenCensus tracing of a Go kit JSONRPC transport server.
TraceEndpoint returns an Endpoint middleware, tracing a Go kit endpoint.
WithEndpointAttributes sets the default attributes for the spans created by the Endpoint tracer.
WithEndpointConfig sets all configuration options at once by use of the EndpointOptions struct.
WithHTTPPropagation sets the propagation handlers for the HTTP transport middlewares.
WithIgnoreBusinessError if set to true will not treat a business error identified through the endpoint.Failer interface as a span error.
WithName sets the name for an instrumented transport endpoint.
WithSampler sets the sampler to use by our OpenCensus Tracer.
WithSpanAttributes extracts additional attributes from the request context.
WithSpanName extracts additional attributes from the request context.
WithTracerConfig sets all configuration options at once.

# Constants

TraceEndpointDefaultName is the default endpoint span name to use.

# Structs

EndpointOptions holds the options for tracing an endpoint.
TracerOptions holds configuration for our tracing middlewares.

# Type aliases

EndpointOption allows for functional options to our OpenCensus endpoint tracing middleware.
TracerOption allows for functional options to our OpenCensus tracing middleware.