Documentation
¶
Overview ¶
Package otel wires an OTLP gRPC trace exporter into a global TracerProvider. Ships traces only for now; metrics and logs exporters arrive in later releases.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(ctx context.Context, service, otlpEndpoint string) (shutdown func(context.Context) error, err error)
Init configures a global TracerProvider that exports spans over OTLP gRPC (insecure) to otlpEndpoint, tagged with service.name=service. The returned shutdown func flushes and closes the provider; callers should defer it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.