Supported libraries

Libraries and frameworks instrumented out of the box.

Ви переглядаєте англійську версію сторінки, тому що її ще не було повністю перекладеною українською. Бажаєте допомогти? Дивіться як взяти Участь.

PS. Неофіційний український переклад (не перевірений і не ухвалений OpenTelemetry) доступний на сайті члена спільноти, створеному на основі PR #5891. Ми надаємо це посилання як тимчасовий захід підтримки українських читачів та потенційних учасників, доки не буде готовий офіційний переклад.

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.


Востаннє змінено July 13, 2026: Add zero-code/go/compile-time docs section (#10654) (f23a9af2)