Skip to content

feat(conventions): Add measurements#6006

Merged
loewenheim merged 5 commits into
masterfrom
sebastian/conventions-measurements
May 20, 2026
Merged

feat(conventions): Add measurements#6006
loewenheim merged 5 commits into
masterfrom
sebastian/conventions-measurements

Conversation

@loewenheim
Copy link
Copy Markdown
Contributor

This adds measurements functionality to relay-conventions. Similarly to attributes, there is now a constant for each defined measurement. Moreover, there is a function measurement_to_attribute that maps a measurement to its replacement attribute (if defined). However, this function isn't used yet in this PR.

This PR contains no functional changes, it just lays the groundwork for a future change that will use measurement_to_attribute. The new measurement constants are used everywhere I could find that it would make sense. The lion's share of changed files in this PR is due to the relay_conventions::consts attribute being renamed to relay_conventions::attributes (just calling it consts would be ambiguous, now that there are also constants for measurements).

ref: INGEST-909

@loewenheim loewenheim requested a review from a team as a code owner May 19, 2026 12:51
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 19, 2026

INGEST-909

Copy link
Copy Markdown
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

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

Awesome!

Comment thread relay-conventions/build/build.rs
Comment thread relay-event-normalization/src/event.rs
@loewenheim loewenheim added this pull request to the merge queue May 20, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 20, 2026
@loewenheim loewenheim added this pull request to the merge queue May 20, 2026
@loewenheim loewenheim removed this pull request from the merge queue due to a manual request May 20, 2026
@loewenheim loewenheim enabled auto-merge May 20, 2026 08:28
@loewenheim loewenheim added this pull request to the merge queue May 20, 2026
Merged via the queue into master with commit 930ea18 May 20, 2026
33 checks passed
@loewenheim loewenheim deleted the sebastian/conventions-measurements branch May 20, 2026 09:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants