Tags: XSAM/otelsql
Tags
Release v0.39.0 (#504) > [!WARNING] > The new introduced `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable will be supported for at least six months from this release. After this period, support for legacy metrics and Semantic Conventions `v1.24.0` may be removed in the next release. > > You can start the migration to the new Semantic Conventions `v1.30.0` by setting the `OTEL_SEMCONV_STABILITY_OPT_IN=database/dup` or `OTEL_SEMCONV_STABILITY_OPT_IN=database` environment variable in your application. > > See also the [Semantic conventions for database client metrics](https://opentelemetry.io/docs/specs/semconv/database/database-metrics/). ### Added - Support to emit query related attributes for the v1.24.0 and v1.30.0 semantic conventions based on the value of the `OTEL_SEMCONV_STABILITY_OPT_IN` environment variable. (#478) - `database/dup`: Emit both `db.statement` and `db.query.text` attributes. - `database`: Emit `db.query.text` attribute. - by default: Emit `db.statement` attribute. - New `db.client.operation.duration` metric following OpenTelemetry semantic conventions. (#480) - Support for configuring metrics behavior based on `OTEL_SEMCONV_STABILITY_OPT_IN` setting. (#480) - `database/dup`: Emit both legacy latency and new duration `db.client.operation.duration` metrics. - `database`: Emit new duration `db.client.operation.duration` metric. - by default: Emit only the legacy latency metric. ### Changed - Upgrade semantic conventions to `semconv/v1.30.0`. (#478) - Improve memory usage when recording metrics or creating spans. (#497) - Upgrade OTel to `v1.36.0/v0.58.0`. (#495) ### Fixed - Data race issues when recording metrics or creating spans. (#497)
Release v0.37.0 (#423) ### Added - `AttributesFromDSN` method to generate `server.address` and `server.port` attributes from a DSN. (#419) - Go 1.24 to supported versions. (#422) ### Changed - Upgrade OTel to `v1.34.0/v0.56.0`. (#412) - Update the comment for the `WithAttributes` option to correctly describe the behavior on measurement creation. (#413) - Upgrade semantic conventions to `semconv/v1.24.0`. (#418)
Release v0.34.0 (#362) The minimum supported Go version is `1.22`. ### Added - Go 1.23 to supported versions. (#361) ### Changed - The `Open` method uses the `dataSourceName` when calling `sql.Open`. (#359) This change improves compatibility with certain drivers that perform a verification of the `dataSourceName` before establishing a connection. - Upgrade OTel to version `v1.30.0/v0.52.0`. (#356) ### Removed - Support for Go `1.21`. (#356)
PreviousNext