This page describes the technologies supported by the Elastic APM Go agent.
If your favorite technology is not supported yet, you start a conversation in the Discuss forum.
If you would like to get more involved, take a look at the contributing guide.
The Elastic APM Go agent naturally requires Go. We support the last two major Go releases as described by Go’s Release Policy:
Each major Go release is supported until there are two newer major releases. For example, Go 1.5 was supported until the Go 1.7 release, and Go 1.6 was supported until the Go 1.8 release.
We support several third-party web frameworks, as well as Go’s standard net/http
package. Regardless of the framework, we create a transaction for each incoming
request, and name the transaction after the registered route.
We support valyala/fasthttp, v1.26.0 and greater.
See module/apmfasthttp for more information about fasthttp instrumentation.
julienschmidt/httprouter does not use semantic versioning, but its API is relatively stable. Any recent version should be compatible with the Elastic APM Go agent.
See module/apmhttprouter for more information about httprouter instrumentation.
We provide different packages for the Echo v3 and v4 versions:
module/apmecho
for Echo v3.x, and module/apmechov4
for Echo v4.x.
See module/apmecho for more information about Echo instrumentation.
See module/apmgin for more information about Gin instrumentation.
We provide package only for the Fiber v2. See module/apmfiber for more information about Fiber instrumentation.
See module/apmbeego for more information about Beego instrumentation.
We support gorilla/mux v1.6.1 and greater. Older versions are not supported due to the use of gorilla.Middleware.
See module/apmgorilla for more information about gorilla/mux instrumentation.
We support go-restful, 2.0.0 and greater.
See module/apmrestful for more information about go-restful instrumentation.
See module/apmchi for more information about chi instrumentation.
See module/apmnegroni for more information about negroni instrumentation.
We support tracing requests with any database/sql
driver, provided
the driver is registered with the Elastic APM Go agent. Spans will be
created for each statemented executed.
When using one of the following drivers, the Elastic APM Go agent will be able to parse the datasource name, and provide more context in the spans it emits:
See module/apmsql for more information about database/sql instrumentation.
We support the GORM object-relational mapping library, v1.9 and greater. Spans will be created for each create, query, update, and delete operation.
As with database/sql
support we provide additional support for the
postgres, mysql, and sqlite dialects.
We provide different packages for the Gorm v1 and v2 versions:
module/apmgorm
for Gorm v1.x, and module/apmgormv2
for Gorm v2.x.
See module/apmgorm or module/apmgormv2 for more information about GORM instrumentation.
See module/apmgopg for more information about go-pg instrumentation.
GoCQL does not have a stable API, so we will provide support for the most recent API, and older versions of the API on a best-effort basis. Spans will be created for each query. When the batch API is used, a span will be created for the batch, and a sub-span is created for each query in the batch.
See module/apmgocql for more information about GoCQL instrumentation.
We support Redigo, v2.0.0 and greater. We provide helper functions for reporting Redis commands as spans.
See module/apmredigo for more information about Redigo instrumentation.
See module/apmgoredis for more information about go-redis instrumentation.
We provide instrumentation for Elasticsearch clients. This is usable with
the go-elasticsearch and
olivere/elastic clients, and should
also be usable with any other clients that provide a means of configuring
the underlying net/http.RoundTripper
.
See module/apmelasticsearch for more information about Elasticsearch client instrumentation.
We provide instrumentation for the official MongoDB Go Driver, v1.0.0 and greater. Spans will be created for each MongoDB command executed within a context containing a transaction.
See module/apmmongo for more information about the MongoDB Go Driver instrumentation.
We provide instrumentation for AWS DynamoDB. This is usable with AWS SDK Go.
See module/apmawssdkgo for more information about AWS SDK Go instrumentation.
We support gRPC v1.3.0 and greater. We provide unary and stream interceptors for both the client and server. The server interceptor will create a transaction for each incoming request, and the client interceptor will create a span for each outgoing request.
See module/apmgrpc for more information about gRPC instrumentation.
We support tracing Go kit clients and servers when using the gRPC or HTTP transport, by way of module/apmgrpc and module/apmhttp respectively.
Code examples are available at https://pkg.go.dev/go.elastic.co/apm/module/apmgokit/v2 for getting started.
See module/apmlogrus for more information about Logrus integration.
See module/apmzap for more information about Zap integration.
See module/apmzerolog for more information about Zerolog integration.
See module/apmslog for more information about slog integration.
We provide instrumentation for AWS S3. This is usable with AWS SDK Go.
See module/apmawssdkgo for more information about AWS SDK Go instrumentation.
We provide instrumentation for Azure Storage. This is usable with:
-
github.com/Azure/azure-storage-blob-go/azblob[Azure Blob Storage]
-
github.com/Azure/azure-storage-queue-go/azqueue[Azure Queue Storage]
-
github.com/Azure/azure-storage-file-go/azfile[Azure File Storage]
See module/apmazure for more information about Azure SDK Go instrumentation.
We provide instrumentation for AWS SQS. This is usable with AWS SDK Go.
See module/apmawssdkgo for more information about AWS SDK Go instrumentation.
We provide instrumentation for AWS SNS. This is usable with AWS SDK Go.
See module/apmawssdkgo for more information about AWS SDK Go instrumentation.