Repository navigation
Conversation
The React Native SDK reports react_native.long_task.duration and wants to break it down by the screen, the foreground state, the app start phase and the segment. Two of these values have no key yet. sentry.segment.op holds the op of the segment (root span) that was active when the data was recorded. It sits next to sentry.segment.name. sentry.op does not fit a metric, because it describes the op of the item itself. app.start_phase tells whether the data was recorded before or after the app start ended, with the values app_start and steady_state. app.vitals.start.type does not fit, because it describes a cold or warm start. The commit also defines the react_native.long_task.duration metric with its attributes, which shipped without a definition.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
🤖 This preview updates automatically when you update the PR. |
alwx
marked this pull request as ready for review
December 1, 2026 10:53
alwx
requested review from
a team,
Lms24,
alexander-alderman-webb,
andreiborza,
cleptric,
giortzisg,
mjq and
nsdeschenes
as code owners
December 1, 2026 10:53
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The React Native SDK sends the
react_native.long_task.durationmetric. getsentry/sentry-react-native#7119 adds attributes that tell where each long task happened. Two of them have no key yet, so this PR proposes:sentry.segment.op: the op of the segment (root span) that was active when the data was recorded. It sits next tosentry.segment.name.sentry.opdoes not fit a metric, because there it reads as the op of the metric itself.app.start_phase:app_startorsteady_state.app.vitals.start.typedoes not fit, because it describes a cold or warm start.The PR also defines the
react_native.long_task.durationmetric with its attributes. The metric shipped in 8.34.0 without a definition.Open question: for the screen, the SDK uses the existing
router.navigation.route.idwith the route name. OpenTelemetry hasapp.screen.name, which is moving to the client-side semantic conventions repository and is not there yet. Do you preferapp.screen.namefor mobile screens?PR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.If an attribute was added:
nextjs.function_id, notfunction_id)apply_scrubbing(i.e.manualorauto. Useneveronly for values that should never be scrubbed such as IDs)