Поддерживаемые версии Go
Прежде чем начать использовать мониторинг приложений Go, убедитесь, что вы знаете об известных ограничениях.
Поддержка ограничена официальными стабильными выпусками Go
Go support is limited to official, stable Go releases compiled with the Golang toolchain.
OneAgent doesn't support binaries compiled using the gccgo toolchain.
Application binaries must be dynamically linked
This restriction applies only to Linux systems and if Go static monitoring is disabled.
OneAgent fully automatic injection requires dynamically linked application binaries. Dynamic linking is automatically applied when the application uses certain standard runtime library packages, for example, net/http
.
In all other cases, you can enforce dynamic linking through the -ldflags '-linkmode=external'
command line option. Note that disabling cgo, for example, using CGO_ENABLED=0
, is not supported, and OneAgent will reject the resulting application binary.