Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenTelemetry ¶ added in v0.4.1
func OpenTelemetry(service string, opts ...OtelOption) shack.Handler
func SemVersion ¶ added in v0.4.1
func SemVersion() string
SemVersion is the semantic version to be supplied to tracer/meter creation.
Types ¶
type OtelOption ¶ added in v0.4.1
type OtelOption interface {
// contains filtered or unexported methods
}
OtelOption specifies instrumentation configuration options.
func WithPropagators ¶ added in v0.4.1
func WithPropagators(propagators propagation.TextMapPropagator) OtelOption
WithPropagators specifies propagators to use for extracting information from the HTTP requests. If none are specified, global ones will be used.
func WithTracerProvider ¶ added in v0.4.1
func WithTracerProvider(provider oteltrace.TracerProvider) OtelOption
WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.
Click to show internal directories.
Click to hide internal directories.