Supported libraries

Libraries and frameworks instrumented out of the box.

Estás viendo la versión en inglés de está página porque aún no ha sido traducida. ¿Te interesa ayudar? Mira en Contribuir.

The tool ships instrumentation packages for the following libraries and frameworks. When your application or its dependencies use one of them, the matching instrumentation is injected automatically at build time.

Library or frameworkImport pathInstrumented operations
HTTP (standard library)net/httpClient and server requests
gRPCgoogle.golang.org/grpcClient and server calls
SQL databasesdatabase/sqlDatabase calls
Gingithub.com/gin-gonic/ginServer requests
Redisgithub.com/redis/go-redis/v9Client commands
MongoDBgo.mongodb.org/mongo-driver/mongoClient commands
Kafkagithub.com/segmentio/kafka-goProduced and consumed messages
OpenAIgithub.com/openai/openai-go (v1 – v3)Client calls
Kubernetes clientk8s.io/client-go/tools/cacheInformer cache operations
slog (standard library)log/slogLog records
Logrusgithub.com/sirupsen/logrusLog records

HTTP and gRPC instrumentation produce spans and metrics, including automatic context propagation between services. Instrumentation follows the OpenTelemetry semantic conventions for each library. Go runtime metrics are collected by default and can be turned off by adding runtimemetrics to OTEL_GO_DISABLED_INSTRUMENTATIONS.

The set of supported library versions is declared by each instrumentation’s rules. For the authoritative, up-to-date list, see the instrumentation packages in the repository.

Requesting a library

If a library you rely on isn’t instrumented yet, open a feature request. You can also add instrumentation yourself: the repository’s instrumentation guide walks through defining rules and implementing hooks for a new library.