Skip to content

feat(attributes): Add http.request.duration - #697

Merged
loewenheim merged 2 commits into
mainfrom
sebastian/http-request-duration
Oct 12, 2026
Merged

loewenheim merged 2 commits into
mainfrom
sebastian/http-request-duration

Conversation

@loewenheim

Copy link
Copy Markdown
Contributor

Description

In getsentry/relay#4874, Relay started setting this attribute for NEL reports, but it was never added to conventions.

Fixes INGEST-1259.

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)

In getsentry/relay#4874, Relay started setting
this attribute for NEL reports, but it was never added to conventions.

Fixes INGEST-1259.
@vercel

vercel Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 12, 2026 12:35pm UTC

Request Review

@linear-code

linear-code Bot commented Oct 12, 2026

Copy link
Copy Markdown

INGEST-1259

@github-actions

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 ✨

  • (attributes) Add http.request.duration by loewenheim in #697

🤖 This preview updates automatically when you update the PR.

"key": "http.request.duration",
"brief": "The duration of a HTTP request, in milliseconds.",
"type": "integer",
"apply_scrubbing": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

could we add an "additional_context" field that this attribute is set by Relay? Just to make sure SDKs don't think they need to set this, as this usually should just be the duration of the respective http.server span.

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.

Is "this attribute is set by Relay" enough or should I add more detail?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

all good, just some indication that it's not an SDK concern (fwiw, we should get better at this with #659 or something similar). Thanks for adding!

@loewenheim
loewenheim merged commit 203083a into main Oct 12, 2026
18 checks passed
@loewenheim
loewenheim deleted the sebastian/http-request-duration branch October 12, 2026 12:55

This branch was successfully deployed

1 active deployment
Preview — c631cd41 Deployed Oct 12, 2026 by vercel[bot]
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.

4 participants