OpenTelemetry-Go-Compile-Instrumentation provides compile time OpenTelemetry instrumentation for Golang.
Signal | Status |
---|---|
Traces | WIP |
Metrics | WIP |
Logs | Not started |
Profiling | Not started |
Run sh -x build.sh
to show instrumentation example. In this example, we will inject a piece of code into the main
function of the main
package under the demo
module to output the "Entering hook" string. This injected code comes from the sdk
module.
If you want to check the result of instrumentation, go to the directory location that appears as output when running build.sh, e.g., WORK=/var/folders/x9/fddsvlt5363c0plvvw8_2mr80000gn/T/go-build2020695287
.
cd /var/folders/x9/fddsvlt5363c0plvvw8_2mr80000gn/T/go-build2020695287
ls -l b001
cat modified.go
See the contributing documentation.
OpenTelemetry Go Compile Instrumentation project is licensed under the terms of the [Apache Software License version 2.0]. See the license file for more details.