Skip to content

Releases

Release v0.44.0

Choose a tag to compare

@XSAM XSAM released this 06 Sep 23:04
5c3d0aa

This release is the last to support Go 1.25.
The next release will require at least Go 1.26.

Added

  • Support testing of Go 1.27. (#650)
  • Add WithSpanErrorAttributesGetter option to set additional attributes (e.g., db.response.status_code) on spans when an operation returns an error. (#651)
  • Add SpanOptions.RowsChildOfQuery to create sql.rows spans as children of the sql.conn.query or sql.stmt.query span that produced them, so concurrent queries can be correlated with their result iteration. (#652)
  • Support driver.RowsColumnScanner on Go 1.27. (#649)

Changed

  • Replace ErrorTypeAttributes with ErrorTypeAttribute to avoid allocating an additional slice. (#643)
  • Upgrade OTel to v1.46.0. (#644)

Fixed

  • db.client.operation.duration histogram now uses the explicit bucket boundaries recommended by the OTel Semantic Conventions (0.001 to 10 seconds) instead of the SDK defaults, which placed virtually all database operations in the first bucket. (#632)

What's Changed

  • Use semconv-recommended bucket boundaries for db.client.operation.duration by @kitosforos in #632
  • Fix changelog entry by @XSAM in #645
  • perf: add ErrorTypeAttribute to eliminate extra slice allocation by @gaiaz-iusipov in #643
  • Protect released changelog in CI by @XSAM in #646
  • Update module github.com/stretchr/testify to v1.12.1 by @renovate[bot] in #647
  • Update module github.com/golangci/golangci-lint/v2 to v2.13.2 by @renovate[bot] in #648
  • Update opentelemetry-go monorepo by @renovate[bot] in #644
  • Support Go 1.27 by @XSAM in #650
  • Add WithSpanErrorAttributesGetter to set error attributes on spans by @XSAM in #651
  • Update actions/checkout action to v7.0.1 by @renovate[bot] in #640
  • Update actions/setup-go action to v7 by @renovate[bot] in #639
  • Add SpanOptions.RowsChildOfQuery to make sql.rows spans children of query spans by @XSAM in #652
  • Support RowsColumnScanner on Go 1.27 by @XSAM in #649
  • Fix OpenTelemetry release note wording by @XSAM in #653
  • Release v0.44.0 by @XSAM in #654

New Contributors

Full Changelog: v0.43.0...v0.44.0

Release v0.43.0

Choose a tag to compare

@XSAM XSAM released this 13 Jul 01:41
9648cf1

Removed

  • BREAKING Remove support for OTEL_SEMCONV_STABILITY_OPT_IN environment variable, legacy db.sql.latency metric, and db.statement span attribute. Only stable Semantic Conventions are now used. (#617)

Changed

  • Upgrade OTel Semconv to v1.40.0. (#606)
  • Upgrade OTel Semconv to v1.44.0. (#615)

Fixed

  • Implement driver.Validator on otConn so that database/sql connection pool health checks are properly delegated to the underlying driver connection. (#619)
  • AttributesFromDSN no longer panics on DSNs that wrap a unix-socket path in the protocol(/path/to.sock) form, e.g. unix(/tmp/mysql.sock)/dbname. The parser now extracts the address from inside the parentheses before splitting on /. (#625)

What's Changed

  • Bump OTel semantic conventions to v1.40.0 by @cyrille-leclerc in #606
  • Update doc for Register by @XSAM in #616
  • implement driver.Validator on otConn by @Twister915 in #619
  • fix: stop AttributesFromDSN panicking on unix-socket DSNs by @SAY-5 in #625
  • Remove OTEL_SEMCONV_STABILITY_OPT_IN env var support by @XSAM in #626
  • Update codecov/codecov-action action to v7 by @renovate[bot] in #630
  • Update opentelemetry-go monorepo by @renovate[bot] in #615
  • Update actions/upload-artifact action to v7.0.1 by @renovate[bot] in #622
  • Update actions/cache action to v6 by @renovate[bot] in #634
  • Update actions/setup-go action to v6.5.0 by @renovate[bot] in #593
  • Update actions/checkout action to v6.0.3 by @renovate[bot] in #597
  • Update actions/checkout action to v7 by @renovate[bot] in #635
  • Update module github.com/golangci/golangci-lint/v2 to v2.12.2 by @renovate[bot] in #627
  • Update module golang.org/x/sys to v0.47.0 by @renovate[bot] in #636
  • Skip worktree directories when discovering Go modules by @XSAM in #637
  • Releasing v0.43.0 by @XSAM in #638

New Contributors

Full Changelog: v0.42.0...v0.43.0

Release v0.42.0

Choose a tag to compare

@XSAM XSAM released this 31 Mar 06:11
a19a06d

⚠️ Notice ⚠️

This is the last release that will support the OTEL_SEMCONV_STABILITY_OPT_IN environment variable, legacy metrics, and Semantic Conventions v1.24.0.

Added

Changed

  • Upgrade OTel to v1.42.0. (#599)

Removed

What's Changed

  • Ignore .worktrees folder by @XSAM in #610
  • Add support for Go 1.26 by @XSAM in #611
  • Update opentelemetry-go monorepo by @renovate[bot] in #599
  • Update actions/upload-artifact action to v7 by @renovate[bot] in #601
  • Update codecov/codecov-action action to v6 by @renovate[bot] in #609
  • Update module github.com/golangci/golangci-lint/v2 to v2.11.4 by @renovate[bot] in #591
  • Update grpc and edwards25519 by @XSAM in #612
  • Release v0.42.0 by @XSAM in #613

Full Changelog: v0.41.0...v0.42.0

Release v0.41.0

Choose a tag to compare

@XSAM XSAM released this 17 Dec 00:00
92a17e7

⚠️ Notice ⚠️

This release contains breaking changes:

  • RegisterDBStatsMetrics now returns (metric.Registration, error) (previously returned only error) so callers can Unregister() the callback and avoid memory leaks.
    • If you need to unregister: reg, err := RegisterDBStatsMetrics(...) + defer reg.Unregister().
    • If you do not need to unregister: _, err := RegisterDBStatsMetrics(...).
  • WithAttributes now appends attributes when specified multiple times (previously overwrote existing attributes).
    • If you relied on overwriting: consolidate your attributes into a single WithAttributes(...) call.

Added

  • WithTextMapPropagator allows customization of the OTel text map propagator used by SQLCommenter. (#540)
    This is an experimental feature and may be changed or removed in a later release.

Removed

Changed

  • Reduce allocations and improve performance when creating spans. (#549)
  • Reduce allocations when recording metrics. (#550)
  • RegisterDBStatsMetrics now returns a metric.Registration so callbacks can be unregistered. (#580)
  • WithAttributes now accumulates attributes across multiple calls instead of overwriting. (#576)
  • Upgrade OTel to v1.39.0. (#583)

What's Changed

New Contributors

Full Changelog: v0.40.0...v0.41.0

Release v0.40.0

Choose a tag to compare

@XSAM XSAM released this 08 Sep 06:12
b88f892

This release is the last to support Go 1.23.
The next release will require at least Go 1.24.

Added

Changed

  • Upgrade OTel to v1.38.0/v0.60.0. (#510)

What's Changed

Full Changelog: v0.39.0...v0.40.0

Release v0.39.0

Choose a tag to compare

@XSAM XSAM released this 05 Jun 17:29
e96409b

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.

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)

What's Changed

Full Changelog: v0.38.0...v0.39.0

Release v0.38.0

Choose a tag to compare

@XSAM XSAM released this 26 Mar 17:03
fc9405b

Added

  • WithInstrumentErrorAttributesGetter option to provide additional error-related attributes. (#440)

Changed

  • Upgrade OTel to v1.35.0/v0.57.0. (#437)

Removed

  • Drop support for Go 1.22. (#447)

What's Changed

  • Update module github.com/XSAM/otelsql to v0.37.0 by @renovate in #424
  • Update module github.com/prometheus/client_golang to v1.21.0 by @renovate in #426
  • Update module github.com/go-sql-driver/mysql to v1.9.0 by @renovate in #425
  • Update codecov/codecov-action action to v5.4.0 by @renovate in #429
  • Update module github.com/prometheus/client_golang to v1.21.1 by @renovate in #432
  • Update module google.golang.org/grpc to v1.71.0 by @renovate in #434
  • Update otel/opentelemetry-collector-contrib Docker tag to v0.121.0 by @renovate in #428
  • Group golang.org/x dependencies updates into one PR by @XSAM in #441
  • Pin dependencies by @renovate in #442
  • Update module github.com/prometheus/procfs to v0.16.0 by @renovate in #445
  • Drop support for Go 1.22 by @XSAM in #447
  • Update golang.org/x by @renovate in #444
  • Update module golang.org/x/net to v0.36.0 [SECURITY] by @renovate in #448
  • Update module golang.org/x/net to v0.37.0 by @renovate in #449
  • Update module github.com/go-sql-driver/mysql to v1.9.1 by @renovate in #443
  • Add error attribute to metrics labels by @jedrivisser in #440
  • Update opentelemetry-go monorepo by @renovate in #437
  • Group dependencies for examples in one PR by @XSAM in #453
  • Update module github.com/golangci/golangci-lint to v1.64.8 by @renovate in #430
  • Slow update frequency of googleapis to once a month by @XSAM in #454
  • Fix renovate cron schedule by @XSAM in #456
  • Release v0.38.0 by @XSAM in #457

New Contributors

Full Changelog: v0.37.0...v0.38.0

Release v0.37.0

Choose a tag to compare

@XSAM XSAM released this 17 Feb 07:29
7c28f66

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)

What's Changed

  • Update codecov/codecov-action action to v5.1.2 by @renovate in #400
  • Update codecov/codecov-action action to v5.3.1 by @renovate in #407
  • Update module github.com/XSAM/otelsql to v0.36.0 by @renovate in #403
  • Update module github.com/klauspost/compress to v1.17.11 by @renovate in #373
  • Update module github.com/golangci/golangci-lint to v1.63.4 by @renovate in #406
  • Update module google.golang.org/grpc to v1.70.0 by @renovate in #381
  • Update module go.opentelemetry.io/proto/otlp to v1.5.0 by @renovate in #409
  • Update module golang.org/x/net to v0.34.0 by @renovate in #410
  • Update opentelemetry-go monorepo by @renovate in #412
  • Update comment of WithAttributes and config Attributes by @XSAM in #413
  • Update CHANGELOG by @XSAM in #414
  • Upgrade semantic conventions to semconv/v1.24.0 by @XSAM in #418
  • Add AttributesFromDSN method by @XSAM in #419
  • Update module golang.org/x/net to v0.35.0 by @renovate in #416
  • Update golang Docker tag to v1.24 by @renovate in #420
  • Update otel/opentelemetry-collector-contrib Docker tag to v0.119.0 by @renovate in #357
  • Update module github.com/grpc-ecosystem/grpc-gateway/v2 to v2.26.1 by @renovate in #405
  • Update module github.com/prometheus/common to v0.62.0 by @renovate in #408
  • Update module golang.org/x/sys to v0.30.0 by @renovate in #411
  • Update module google.golang.org/protobuf to v1.36.5 by @renovate in #387
  • Add support for Go 1.24 by @XSAM in #422
  • Release v0.37.0 by @XSAM in #423

Full Changelog: v0.36.0...v0.37.0

Release v0.36.0

Choose a tag to compare

@XSAM XSAM released this 19 Dec 04:51
dee316f

Added

  • DisableSkipErrMeasurement option suppresses driver.ErrSkip as an error status in measurements if enabled. (#389)

Changed

  • Upgrade OTel to v1.33.0/v0.55.0. (#396)

What's Changed

  • Update module github.com/XSAM/otelsql to v0.35.0 by @renovate in #376
  • Update module golang.org/x/text to v0.20.0 by @renovate in #383
  • Update module golang.org/x/sys to v0.27.0 by @renovate in #382
  • Update module github.com/golangci/golangci-lint to v1.62.2 by @renovate in #384
  • Update otel collector config to make it clear by @XSAM in #392
  • Add DisableSkipErrMetrics to disable ErrSkip metrics by @ncthompson in #389
  • Update prom/prometheus Docker tag to v2.55.1 by @renovate in #378
  • Fix CI cache issue by @XSAM in #395
  • Upgrade OTel to version v1.33.0/v0.55.0 by @XSAM in #396
  • Update codecov/codecov-action action to v5 by @renovate in #397
  • Update module golang.org/x/net to v0.33.0 [SECURITY] by @renovate in #401
  • Release v0.36.0 by @XSAM in #402

New Contributors

Full Changelog: v0.35.0...v0.36.0

Release v0.35.0

Choose a tag to compare

@XSAM XSAM released this 11 Oct 20:27
fe9a010

Changed

  • Upgrade OTel to version v1.31.0/v0.53.0. (#374)

What's Changed

  • Update module github.com/XSAM/otelsql to v0.34.0 by @renovate in #363
  • Update module github.com/klauspost/compress to v1.17.10 by @renovate in #365
  • Update codecov/codecov-action action to v4.6.0 by @renovate in #368
  • Update module golang.org/x/sys to v0.26.0 by @renovate in #371
  • Update module golang.org/x/net to v0.30.0 by @renovate in #370
  • Update module google.golang.org/protobuf to v1.35.1 by @renovate in #372
  • Update opentelemetry-go monorepo by @renovate in #374
  • Release v0.35.0 by @XSAM in #375

Full Changelog: v0.34.0...v0.35.0