tracing

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Tracer = noop.NewTracerProvider().Tracer("noop")
)

Functions

func Init

func Init(serviceInstanceId string) (func(ctx context.Context) error, error)

Init initialises a new OpenTelemetry Tracer using information from the environment and process. For more information on available environment variables for configuration, check out https://opentelemetry.io/docs/reference/specification/sdk-environment-variables/. https://github.com/open-telemetry/opentelemetry-go/tree/main/exporters/otlp/otlptrace

func TracingMiddleware added in v0.7.0

func TracingMiddleware(component string, routes map[string]jape.Handler) map[string]jape.Handler

TracingMiddleware attaches a tracing handler to http routes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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