Skip to content

chore(deps): upgrade Go version to 1.25 + use latest stable otel semconv#74

Merged
obitech merged 2 commits intoexaring:mainfrom
ValentinLvr:use-stable-semconv
Apr 17, 2026
Merged

chore(deps): upgrade Go version to 1.25 + use latest stable otel semconv#74
obitech merged 2 commits intoexaring:mainfrom
ValentinLvr:use-stable-semconv

Conversation

@ValentinLvr
Copy link
Copy Markdown
Contributor

@ValentinLvr ValentinLvr commented Apr 13, 2026

  • use db.system.name instead of db.system

  • use in-house dbconv.ClientOperationDuration struct to record operation duration metrics (now in seconds vs miliseconds)

fixes #75, #70

BREAKING CHANGES since we are changing the minimum go version + change attribute semconv + change operation duration metric unit from miliseconds to seconds as metric name was misleading.

We are still in v0.X.X it's fine though (only a minor bump is needed)

- use `db.system.name` instead of `db.system`

- use in-house `dbconv.ClientOperationDuration` struct to record operation duration metrics

Signed-off-by: ValentinLvr <valentin.levier@outlook.com>
@ValentinLvr
Copy link
Copy Markdown
Contributor Author

@costela @obitech let me know if you are aligned on this 🙏

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates otelpgx to newer Go and OpenTelemetry semantic conventions, addressing deprecated DB attributes and correcting operation duration metric recording.

Changes:

  • Bump minimum Go version to 1.25.0 and update OpenTelemetry dependencies.
  • Replace deprecated db.system usage with db.system.name semconv attributes.
  • Switch operation duration metric to dbconv.ClientOperationDuration and record durations in seconds.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
tracer.go Updates semconv usage and switches operation duration metric to dbconv (seconds).
meter.go Updates semconv and removes redundant DB system attribute from appended pool attrs.
go.mod Raises minimum Go version and updates OTEL module versions.
go.sum Refreshes dependency checksums for updated modules.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tracer.go
Comment thread go.mod
Copy link
Copy Markdown
Member

@costela costela left a comment

Choose a reason for hiding this comment

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

LGTM; @obitech want to give a last "ok"?

@obitech obitech merged commit 1752650 into exaring:main Apr 17, 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.

deprecated DB attribute db.system from opentelemetry semconv is still used

4 participants