Design goals of OpenTelemetry Go Instrumentation
mainThe OpenTelemetry Go Instrumentation project aims to provide an automatic instrumentation experience similar to Java, Python, and JavaScript, but specifically for Go's compiled nature.
Key characteristics include:
- No code changes required: Any Go application can be instrumented without modifying its source code.
- Broad compatibility: Supports Go version 1.12 and above. It also works with binaries that have been stripped of debug symbols (e.g., using
go build -ldflags "-s -w"). - Standardized configuration: Uses
OTEL_*environment variables following the OpenTelemetry Environment Variable Specification. - Standardized data: Instrumented libraries follow the OpenTelemetry specification and semantic conventions.