Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(spans): Normalize INP spans further #4298

Merged
merged 9 commits into from
Nov 27, 2024

Conversation

Zylphrex
Copy link
Member

INP spans sets some top level span attributes inside span.data so make sure to pull them out to the top level. This has implications in the snuba consumer so that we do not redundant keys with slightly different names in span.data.

INP spans sets some top level span attributes inside span.data so make sure to
pull them out to the top level. This has implications in the snuba consumer so
that we do not redundant keys with slightly different names in span.data.
@Zylphrex Zylphrex requested a review from a team as a code owner November 26, 2024 22:29
// INP spans sets some top level span attributes inside span.data so make sure to pull
// them out to the top level before further processing.
if let Annotated(Some(ref mut data), _) = span.data {
if let Some(exclusive_time) = match data.other.get("sentry.exclusive_time") {
Copy link
Member

Choose a reason for hiding this comment

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

Could you add sentry.exclusive_time and profile_id as fields on the SpanData type? I assume a hypothetical SDK that can only send Otel spans would still send these as span attributes? Or are these legacy fields that future SDKs should not send?

Copy link
Member Author

Choose a reason for hiding this comment

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

They can continue sending them as span attributes.

@Zylphrex Zylphrex requested a review from jjbayer November 27, 2024 16:01
@Zylphrex Zylphrex merged commit 6306552 into master Nov 27, 2024
23 checks passed
@Zylphrex Zylphrex deleted the txiao/fix/normalize-inp-spans-further branch November 27, 2024 18:29
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