You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
<< unparameterized >> page in web vitals that only has INP #71435
What I can find in the DB are entries for metric d:spans/webvital.score.inp@ratio with transaction tag null:
Query:
SELECT
has(tags.key, 9223372036854775808+212) as has_transaction_tag, tags.raw_value[indexOf(tags.key, 9223372036854775808+212)] as transaction,
count() as cnt
FROM generic_metric_distributions_aggregated_dist
WHERE (granularity =2)
AND (timestamp>= now() - INTERVAL {{hour_window}} HOUR)
AND (org_id = {{org_id}})
AND (project_id = {{project_id}})
AND metric_id =9223372036854775808+415-- d:spans/webvital.score.inp@ratiogroup by has_transaction_tag, transaction
order by cnt descLIMIT5
Result:
has_transaction_tag
transaction
cnt
0
133
1
/issues
46
1
/issues/:groupId/
39
1
/auth/login/*/
29
1
/projects/:projectId/
20
This missing tag gets mapped to << unparameterized >> by the backend:
For now can we just drop these in Relay, or hide them in the product somehow? This is just bad product experience, and users will run into it with older sdk versions even if we patch the SDK.
We merged in the product change to filter out any << unparameterized >> transaction names from surfacing in the web vitals UI.
I also have a PR for the JS sdk that mitigates this issue further. There was a bug with how we were picking up transaction names, which often lead to undefined values. The PR will reduce the odds of that happening: getsentry/sentry-javascript#12358
Activity
jjbayer commentedon May 24, 2024
@AbhiPrasad the
<< unparametrized >>only showed up in metrics, right? Or did you also find an indexed span that had it?Can you point me to the place in the SDK where the interaction span is emitted so we can build a repro case?
AbhiPrasad commentedon May 24, 2024
Here is where the span is constructed: https://github.com/getsentry/sentry-javascript/blob/0ac519aa8c583268ae613d41c30106cd832968c8/packages/browser-utils/src/metrics/inp.ts#L98-L117
and here is an example of the payload: https://github.com/getsentry/sentry-javascript/blob/0ac519aa8c583268ae613d41c30106cd832968c8/dev-packages/browser-integration-tests/suites/tracing/metrics/web-vitals-inp/test.ts#L72-L96
jjbayer commentedon May 31, 2024
What I can find in the DB are entries for metric
d:spans/webvital.score.inp@ratiowith transaction tagnull:Query:
Result:
This missing tag gets mapped to
<< unparameterized >>by the backend:sentry/src/sentry/snuba/metrics/query_builder.py
Line 136 in 9299c78
These are the conditions under which Relay extracts the transaction name for interaction spans:
https://github.com/getsentry/relay/blob/703a2e170adf57466f80175f24235d5b5bf8fc40/relay-event-normalization/src/normalize/span/tag_extraction.rs#L681-L688
TL;DR the SDK needs to set
span.data.transactionorspan.data[sentry.segment.name]in order to get a transaction name on an INP span.AbhiPrasad commentedon May 31, 2024
@edwardgou-sentry should we only send INP if there is a valid transaction name on the span?
AbhiPrasad commentedon May 31, 2024
For now can we just drop these in Relay, or hide them in the product somehow? This is just bad product experience, and users will run into it with older sdk versions even if we patch the SDK.
jjbayer commentedon May 31, 2024
We could, yes, but a filter in the product might make more sense (more flexible).
feat(performance): Update webvitals module to exclude unparameterized…
edwardgou-sentry commentedon Jun 5, 2024
We merged in the product change to filter out any
<< unparameterized >>transaction names from surfacing in the web vitals UI.I also have a PR for the JS sdk that mitigates this issue further. There was a bug with how we were picking up transaction names, which often lead to
undefinedvalues. The PR will reduce the odds of that happening:getsentry/sentry-javascript#12358