Skip to content

feat(attributes): Add http.response.delivery_type and deprecate http.response_delivery_type - #825

Merged
msonnb merged 3 commits into
mainfrom
feat/http-response-delivery-type
Nov 24, 2026
Merged

msonnb merged 3 commits into
mainfrom
feat/http-response-delivery-type

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

The JavaScript SDK already sets http.response_delivery_type on browser resource spans, copied from PerformanceResourceTiming.deliveryType (see packages/browser-utils/src/performance/entries.ts in getsentry/sentry-javascript), but the attribute was never defined here.

This adds http.response.delivery_type as the canonical attribute, in line with the other http.response.* attributes. It also defines http.response_delivery_type, the name the SDK sends today, as deprecated in favor of it with _status: backfill, so data the SDK already sends gets copied to the new name. The JS SDK can switch to the new name in v12.

  • OTel has no equivalent attribute, so is_in_otel is false.
  • Values come from a fixed browser enum (cache, navigational-prefetch, or "") and are listed in enum_values. They carry no PII. apply_scrubbing is manual, matching the other resource timing attributes such as resource.render_blocking_status.
  • In the generated JS, HTTP_RESPONSE_DELIVERY_TYPE is the new dotted key and _HTTP_RESPONSE_DELIVERY_TYPE is the deprecated one. Neither has been released yet.

via @msonnb.

--

View Session [Sentry]

@vercel

vercel Bot commented Nov 20, 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 Nov 24, 2026 8:48am UTC

Request Review

@github-actions

github-actions Bot commented Nov 20, 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 ✨

Attributes

  • Add http.response.delivery_type and deprecate http.response_delivery_type by msonnb with sentry-junior in #825
  • Add schema for chat-based gen_ai.input.messages by alexander-alderman-webb in #820

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wait 2 days before merging for others to take a look

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 18645ab. Configure here.

@Lms24 Lms24 left a comment

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.

I think we should deprecate this in favor of http.response.delivery_type (and swap the attribute in v12 of the JS SDK). Would you mind making that change?

@sentry-junior sentry-junior Bot changed the title feat(attributes): Add http.response_delivery_type attribute feat(attributes): Add http.response.delivery_type and deprecate http.response_delivery_type Nov 20, 2026
@sentry-junior

sentry-junior Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor Author

@Lms24 done in b5cc99b. http.response.delivery_type is now the canonical attribute (with the enum values). http.response_delivery_type is deprecated in favor of it with _status: backfill, so what the SDK sends today gets copied over, and the two are aliases of each other. In the generated JS, HTTP_RESPONSE_DELIVERY_TYPE now points to the dotted key and the old one is _HTTP_RESPONSE_DELIVERY_TYPE. That's fine since neither has shipped in a release.

@sentry-junior
sentry-junior Bot force-pushed the feat/http-response-delivery-type branch from 2639592 to c89c5b9 Compare November 24, 2026 08:48
@msonnb
msonnb merged commit 4c063c0 into main Nov 24, 2026
16 checks passed
@msonnb
msonnb deleted the feat/http-response-delivery-type branch November 24, 2026 09:32

This branch was successfully deployed

1 active deployment
Preview — c89c5b97 Deployed Nov 24, 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.

3 participants