Skip to content

<< unparameterized >> page in web vitals that only has INP #71435

Closed

Activity

  1. jjbayer commented on May 24, 2024

    @jjbayer
    Member

    @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?

  2. self-assigned this
    on May 28, 2024
  3. jjbayer commented on May 31, 2024

    @jjbayer
    Member

    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@ratio
    group by has_transaction_tag, transaction
    order by cnt desc
    LIMIT 5

    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:

    def transform_null_transaction_to_unparameterized(use_case_id, org_id, alias=None):

    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.transaction or span.data[sentry.segment.name] in order to get a transaction name on an INP span.

  4. AbhiPrasad commented on May 31, 2024

    @AbhiPrasad
    ContributorAuthor

    @edwardgou-sentry should we only send INP if there is a valid transaction name on the span?

  5. AbhiPrasad commented on May 31, 2024

    @AbhiPrasad
    ContributorAuthor

    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.

  6. jjbayer commented on May 31, 2024

    @jjbayer
    Member

    For now can we just drop these in Relay

    We could, yes, but a filter in the product might make more sense (more flexible).

  7. edwardgou-sentry commented on Jun 5, 2024

    @edwardgou-sentry
    Contributor

    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

  8. locked and limited conversation to collaborators on Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions