Skip to content

Bump OTel semantic conventions to v1.40.0 - #606

Merged
XSAM merged 5 commits into
XSAM:mainfrom
cyrille-leclerc:update-semconv-v1.38.0
Apr 3, 2026
Merged

XSAM merged 5 commits into
XSAM:mainfrom
cyrille-leclerc:update-semconv-v1.38.0

Conversation

@cyrille-leclerc

@cyrille-leclerc cyrille-leclerc commented Mar 25, 2026 •

Copy link
Copy Markdown
Contributor

Bump OTel semantic conventions from v1.30.0 to v1.40.0

@cyrille-leclerc
cyrille-leclerc requested a review from XSAM as a code owner March 25, 2026 12:38
@codecov

codecov Bot commented Mar 25, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.6%. Comparing base (a19a06d) to head (a7fa87e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
instruments.go 0.0% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #606     +/-   ##
=======================================
- Coverage   86.7%   86.6%   -0.1%     
=======================================
  Files         16      16             
  Lines        752     748      -4     
=======================================
- Hits         652     648      -4     
  Misses        74      74             
  Partials      26      26             

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread instruments.go Outdated
Comment on lines +59 to +61
dbconv.ClientOperationDuration{}.Name(),
metric.WithDescription(dbconv.ClientOperationDuration{}.Description()),
metric.WithUnit(dbconv.ClientOperationDuration{}.Unit()),

@cyrille-leclerc cyrille-leclerc Mar 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a subsequent PR, we could adopt the semconv helper dbconv#NewClientOperationDuration()

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are using semconv v1.40.0, could we use NewClientOperationDuration in this PR?

@XSAM XSAM left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cyrille-leclerc

Copy link
Copy Markdown
Contributor Author

With pleasure, I see that you just bump OTel libs from 1.39.0 to 1.42.0 so that's now easy to bump semconv to the latest version.

@cyrille-leclerc cyrille-leclerc changed the title Bump OTel semantic conventions to v1.38.0 Bump OTel semantic conventions to v1.40.0 Mar 31, 2026
@cyrille-leclerc

Copy link
Copy Markdown
Contributor Author

@XSAM please review, I bumped semconv to v1.40.0

@cyrille-leclerc

Copy link
Copy Markdown
Contributor Author

We are violating the code coverage goal on instruments.go removing lines of codes.
The uncovered code is the error handling code, I'm not sure it's a good idea to test it.

@XSAM XSAM left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. @cyrille-leclerc thanks for your contribution!

@XSAM
XSAM merged commit f7fdbaa into XSAM:main Apr 3, 2026
14 of 15 checks passed
@XSAM XSAM added this to the v0.43.0 milestone Apr 6, 2026
@XSAM XSAM mentioned this pull request Jul 13, 2026
XSAM added a commit that referenced this pull request Jul 13, 2026
### 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)
XSAM added a commit that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants