Getting started
Capture telemetry from a Go application without writing any instrumentation code.
Você está visualizando a versão em versão em inglês desta página porque ela ainda não foi traduzida. Possui interesse em ajudar? Veja como contribuir.
Compile-time instrumentation for Go automatically instruments your application during the build, capturing telemetry from many popular libraries and frameworks without any changes to your source code. It works by hooking into the Go build process and injecting instrumentation as your application is compiled, so the resulting binary contains the instrumentation code with no runtime agent required.
This project is under active development and is not yet ready for production use. To follow progress or get involved, visit the opentelemetry-go-compile-instrumentation repository.
The otelc tool wraps your regular go build invocation. During the build it:
-toolexec
mechanism.Because instrumentation is baked into the binary at compile time, it also covers third-party dependencies you don’t control, and it adds no runtime attach or startup steps.
Compile-time instrumentation is one of several zero-code options for Go: it complements the Auto SDK, while eBPF-based instrumentation is available through OBI. Compile-time instrumentation is a good fit when you can modify the build pipeline but not the source code, when you want instrumentation inside third-party libraries, or when you can’t run a privileged agent alongside your application.
Capture telemetry from a Go application without writing any instrumentation code.
Libraries and frameworks instrumented out of the box.
Configure the otelc tool and the telemetry produced by instrumented applications.
Diagnose issues with Go compile-time instrumentation.
Esta página foi útil?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!