To start reporting your Go application’s performance to Elastic APM, you need to do a few things:
Within a Go module, install the Elastic APM Go agent package using go get
:
go get -u go.elastic.co/apm/v2
You can find a list of the supported frameworks and other technologies in the [supported-tech] section.
Instrumentation is the process of extending your application’s code to report trace data to Elastic APM. Go applications must be instrumented manually at the source code level. There are two ways to instrument your applications:
-
Using [builtin-modules].
-
[custom-instrumentation] and [custom-instrumentation-propagation] with the Go Agent API.
Where possible, use the built-in modules to report transactions served by web and RPC frameworks in your application.
See [configuration] to learn about all available options.