OS Manuals

/usr/bin/otel-go-instrumentation

OpenTelemetry Go Automatic Instrumentation (eBPF-based zero-code tracing for Go apps)

From opentelemetry-go-instrumentation 0.24.0-r10 (enterprise-packages), captured 2026-11-08 by running otel-go-instrumentation --help (exit 0). permalink

Usage of otel-go-instrumentation:
  -global-impl
    	Record telemetry from the OpenTelemetry default global implementation
  -target-pid int
    	PID of target process
  -target-exe string
    	Executable path run by the target process
  -log-level string
    	Logging level ("debug", "info", "warn", "error")

Runs the OpenTelemetry auto-instrumentation for Go applications using eBPF.

If both -target-pid and -target-exe are provided -target-exe will be ignored
and -target-pid used.

Environment variable configuration:

	- OTEL_GO_AUTO_TARGET_PID: PID of the target process
	- OTEL_GO_AUTO_TARGET_EXE: executable path run by the target process
	- OTEL_LOG_LEVEL: log level (flag takes precedence)
	- OTEL_SERVICE_NAME (or OTEL_RESOURCE_ATTRIBUTES): service name
	- OTEL_TRACES_EXPORTER: trace exporter identifier

If the OTEL_GO_AUTO_TARGET_PID is only resolved if -target-exe or -target-pid
is not provided. If none of these are set, OTEL_GO_AUTO_TARGET_EXE will be
resolved.

The OTEL_TRACES_EXPORTER environment variable value is resolved using the
autoexport (go.opentelemetry.io/contrib/exporters/autoexport) package. See that
package's documentation for information on supported values and registration of
custom exporters.
Options (4)
OptionDescriptionSource
-global-implRecord telemetry from the OpenTelemetry default global implementationhelp
-target-pid intPID of target processhelp
-target-exe stringExecutable path run by the target processhelp
-log-level stringLogging level ("debug", "info", "warn", "error")help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.