Search for a command to run...
⚠️ 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 Drop support for Go 1.23. (#533) 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 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 RegisterDBStatsMetrics now returns a metric.Registration for 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