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

otel

package
v0.0.173 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled checks if an OTLP endpoint is configured via standard OTEL_EXPORTER_OTLP_* env vars.

func InitGlobalMeterProvider

func InitGlobalMeterProvider(attrs ...attribute.KeyValue) (func(), error)

func InitGlobalTracerProvider

func InitGlobalTracerProvider(attrs ...attribute.KeyValue) (func(), error)

func ReportPreviousCrash

func ReportPreviousCrash(dir string, attrs ...attribute.KeyValue)

ReportPreviousCrash checks for a crash log from a previous run. If found, it sends the crash as an OTLP log record and truncates the file so it is ready for the next crash. This should be called early in startup, after the telemetry endpoint is configured.

func SetupCrashOutput

func SetupCrashOutput(dir string) error

SetupCrashOutput configures debug.SetCrashOutput to write fatal crash output (panics, runtime crashes) to a file in dir. On next startup, call ReportPreviousCrash to check for and report the crash.

Types

This section is empty.

Jump to

Keyboard shortcuts

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