Skip to content

fix(attributes): Change deprecation status from backfill to normalize - #609

Closed
Lms24 wants to merge 1 commit into
mainfrom
fix/normalize-deprecation-status
Closed

Lms24 wants to merge 1 commit into
mainfrom
fix/normalize-deprecation-status

Conversation

@Lms24

@Lms24 Lms24 commented Sep 2, 2026

Copy link
Copy Markdown
Member

Changes the deprecation status of the attributes marked backfill in #571 to normalize.

Backfilling these straight renames means the value is stored under both the old and the new key. That increased log and metric sizes. Normalizing ensures a large value like url.full only ends up once in the stored metric.

Two attributes from #571 are untouched: net.transport (already reverted to null in #588) and network.local.address (that PR only changed its example).

@ Reviewers: If you prefer a more fine-grained change instead, I'm also happy to drop the bulk change.

…ize`

The attributes marked `backfill` in #571 are straight renames, so backfilling
duplicated every value under both the old and the new key. For large values
like `url.full` that measurably increased log and metric payload sizes.

Switching them to `normalize` keeps a single copy under the replacement key.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 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 ✨

Names

  • Add browser.* span name and description rules by Lms24 in #607
  • Add cache span name rules by Lms24 in #605

Other

  • (attributes) Add browser.paint.type by Lms24 in #606

Bug Fixes 🐛

  • (attributes) Change deprecation status from backfill to normalize by Lms24 in #609

Internal Changes 🔧

  • (descriptions) Fix http.client span description example by Lms24 in #603

🤖 This preview updates automatically when you update the PR.

@Lms24
Lms24 marked this pull request as ready for review September 2, 2026 17:46
@Lms24
Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners September 2, 2026 17:46
@Lms24

Lms24 commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

It turns out, attributes being backfilled do not contribute to the billed log/metric size, as relay takes a size snapshot prior to backfilling. Therefore, I'm going to close the PR, since I slightly prefer the backfilling due to transparency. We can re-open whenver we need to!

@Lms24 Lms24 closed this Sep 3, 2026
@loewenheim

Copy link
Copy Markdown
Contributor

To expand a bit on how this works: the first trusted Relay (i.e. in our infrastructure) that receives the logs (metrics, &c.) calculates the size before any processing and saves it in a header. This is the billing relevant size. Subsequent Relays don't update this header if it's present, so the size as received is always what we use for billing no matter what transformations we do on the attributes.

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