Skip to content

feat(attributes): Add db.response.status_code - #462

Merged
s1gr1d merged 2 commits into
mainfrom
sig/db-response-code
Jul 6, 2026
Merged

s1gr1d merged 2 commits into
mainfrom
sig/db-response-code

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jul 6, 2026

Copy link
Copy Markdown
Member

Description

Adds an OTel attribute for database error status codes: https://opentelemetry.io/docs/specs/semconv/db/database-metrics/

PR Checklist

  • I have run yarn test and verified that the tests pass.
  • I have run yarn generate to generate and format code and docs.

If an attribute was added:

  • The attribute is in a namespace (e.g. nextjs.function_id, not function_id)
  • I have used the correct value for apply_scrubbing (i.e. manual or auto. Use never only for values that should never be scrubbed such as IDs)

If an attribute was deprecated:

@s1gr1d
s1gr1d requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners July 6, 2026 07:58
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (ai) Add granular cost attributes for cache and reasoning by vgrozdanic in #461
  • (attributes) Add db.response.status_code by s1gr1d in #462

🤖 This preview updates automatically when you update the PR.

@s1gr1d
s1gr1d merged commit 03eef30 into main Jul 6, 2026
16 checks passed
@s1gr1d
s1gr1d deleted the sig/db-response-code branch July 6, 2026 11:38
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