Help us shape the future of Go! Take the 2026 Go Developer Survey

telemetry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package telemetry contains the explicit, payload-free tracing boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context, parent string) context.Context

Only traceparent crosses trust boundaries. Never propagate baggage or tracestate, which can contain arbitrary caller-controlled values.

func Inject

func Inject(ctx context.Context, header http.Header)

func Parent

func Parent(ctx context.Context) string

func Provider

func Provider(service, exporter string, writer io.Writer) (*sdktrace.TracerProvider, error)

Provider uses a bounded, non-blocking batch queue. Traces are diagnostic, not a durable audit log: a crash or full exporter queue can lose spans.

func TraceID

func TraceID(ctx context.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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