Published December 17, 2025
| Version v0.41.0
Software
Open
XSAM/otelsql: Release v0.41.0
Authors/Creators
- 1. @splunk
- 2. refurbed
- 3. Storytel
- 4. Cockroach Labs
- 5. Entersekt
- 6. @ace-teknologi
- 7. @PaddleHQ
- 8. @hellofresh
- 9. @utilitywarehouse
Description
⚠️ Notice ⚠️
This release contains breaking changes:
RegisterDBStatsMetricsnow returns(metric.Registration, error)(previously returned onlyerror) so callers canUnregister()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(...).
- If you need to unregister:
WithAttributesnow appends attributes when specified multiple times (previously overwrote existing attributes).- If you relied on overwriting: consolidate your attributes into a single
WithAttributes(...)call.
- If you relied on overwriting: consolidate your attributes into a single
Added
WithTextMapPropagatorallows 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
- Drop support for Go 1.23. (#533)
Changed
- Reduce allocations and improve performance when creating spans. (#549)
- Reduce allocations when recording metrics. (#550)
RegisterDBStatsMetricsnow returns ametric.Registrationso callbacks can be unregistered. (#580)WithAttributesnow accumulates attributes across multiple calls instead of overwriting. (#576)- Upgrade OTel to
v1.39.0. (#583)
What's Changed
- Update actions/checkout action to v5 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/523
- Update golang Docker tag to v1.25 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/522
- Drop support for Go 1.23 by @XSAM in https://github.com/XSAM/otelsql/pull/533
- Update golang.org/x by @renovate[bot] in https://github.com/XSAM/otelsql/pull/531
- Update module golang.org/x/net to v0.44.0 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/536
- Improve createSpan performance by @boekkooi-impossiblecloud in https://github.com/XSAM/otelsql/pull/549
- Reduce recordMetric allocations by @boekkooi-impossiblecloud in https://github.com/XSAM/otelsql/pull/550
- Update actions/cache action to v4.3.0 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/544
- Update module github.com/golangci/golangci-lint/v2 to v2.6.0 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/541
- add linter wsl_v5 by @christiandins in https://github.com/XSAM/otelsql/pull/551
- Update golang.org/x by @renovate[bot] in https://github.com/XSAM/otelsql/pull/552
- Update module github.com/golangci/golangci-lint/v2 to v2.6.1 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/559
- Update actions/upload-artifact action to v5 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/555
- Update module go.opentelemetry.io/auto/sdk to v1.2.1 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/538
- Update golang.org/x by @renovate[bot] in https://github.com/XSAM/otelsql/pull/563
- Update actions/checkout action to v6 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/569
- Allow configuring a TextMapPropagator for SQLCommenter by @simonbos in https://github.com/XSAM/otelsql/pull/540
- Update module github.com/golangci/golangci-lint/v2 to v2.7.2 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/564
- Disable renovate update except otel libraries for example folder by @XSAM in https://github.com/XSAM/otelsql/pull/582
- Update actions/checkout action to v6.0.1 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/575
- Migrate Renovate config by @renovate[bot] in https://github.com/XSAM/otelsql/pull/584
- Carify comments for DisableSkipErrMeasurement by @XSAM in https://github.com/XSAM/otelsql/pull/585
- Update codecov/codecov-action action to v5.5.2 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/578
- Update actions/setup-go action to v6.1.0 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/568
- Update actions/cache action to v5 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/586
RegisterDBStatsMetricsnow returns ametric.Registrationfor unregister by @XSAM in https://github.com/XSAM/otelsql/pull/588- Update actions/upload-artifact action to v6 by @renovate[bot] in https://github.com/XSAM/otelsql/pull/587
- Update opentelemetry-go monorepo by @renovate[bot] in https://github.com/XSAM/otelsql/pull/583
- Change WithAttributes to append instead of replace attributes by @dzakaammar in https://github.com/XSAM/otelsql/pull/576
- Release v0.41.0 by @XSAM in https://github.com/XSAM/otelsql/pull/590
New Contributors
- @boekkooi-impossiblecloud made their first contribution in https://github.com/XSAM/otelsql/pull/549
- @christiandins made their first contribution in https://github.com/XSAM/otelsql/pull/551
- @simonbos made their first contribution in https://github.com/XSAM/otelsql/pull/540
- @dzakaammar made their first contribution in https://github.com/XSAM/otelsql/pull/576
Full Changelog: https://github.com/XSAM/otelsql/compare/v0.40.0...v0.41.0
Files
XSAM/otelsql-v0.41.0.zip
Files
(141.0 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:701c66fbfcfed2c83da4749203e07afc
|
141.0 kB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/XSAM/otelsql/tree/v0.41.0 (URL)
Software
- Repository URL
- https://github.com/XSAM/otelsql