用于 Go 的 OpenTelemetry 工具
| Instrumentation Package | Metrics | Traces | Logs |
|---|---|---|---|
| database/sql | :heavy_check_mark: | :heavy_check_mark: | |
| GORM 1 | :heavy_check_mark: | :heavy_check_mark: | |
| GORM 2 | :heavy_check_mark: | :heavy_check_mark: | |
| sqlx | :heavy_check_mark: | :heavy_check_mark: | |
| sqlboiler | :heavy_check_mark: | :heavy_check_mark: | |
| logrus | :heavy_check_mark: | ||
| otelzap | :heavy_check_mark: | ||
| graphql-go | :heavy_check_mark: |
You can search for instrumentations here and here.
To simiplify maintenance, we use a single version and a shared changelog for all instrumentations. The changelog is auto-generated from conventional commits.
If you want to contribute an instrumentation, please make sure to include tests and a runnable example. Use Docker if you must but try to avoid it, for example, you can use SQLite instead of MySQL to test database/sql instrumentation. Use instrum-example instrumentation as a template.
To run all tests:
./scripts/test.sh暂无开放 Issues,或尚未同步最近议题。