tracing

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTracerProvider

func NewTracerProvider(serviceName string, defaultSampler sdktrace.Sampler, exporter sdktrace.SpanExporter) (trace.TracerProvider, error)

NewTracerProvider configures a Tracer that will only trace if the parent has tracing enabled or if based on defaultSampler, when the parent has no tracing configured

func OtelTracerMiddleware

func OtelTracerMiddleware(operation string, tp trace.TracerProvider, propagator propagation.TextMapPropagator) mux.MiddlewareFunc

OtelTracerMiddleware sends open telemetry traces to a configured exporter

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL