Skip to content

browserTracingIntegration doesn't work in EU Region #69089

Closed

Description

@billypap1

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

7.110.0

Framework Version

React 18.2.0

Link to Sentry event

No response

SDK Setup

Sentry.init({
dsn: "https://xxxxxxxx.xxxxxxx.ingest.de.sentry.io",
integrations: [Sentry.browserTracingIntegration({
enableInp: true,
})],
enableTracing: true,
tracesSampleRate: 1.0,
environment: 'production',
autoSessionTracking: true,
})

Steps to Reproduce

I migrated my projects from US Region to EU Region and the SDK doesn't capture info for Web Vitals. I checked Discover page and there are many events with all required details (CLS, FCP, TTFB, LCP, Browser, Timestamp). I hadn't any issue with US Region, this happens only in EU Region projects. Is this an SDK bug or a bug in the Dashboard?

Expected Result

It should calculate performance score.

Actual Result

The Performance Score in Web Vitals is always 0.

Activity

  1. HazAT commented on Apr 15, 2024

    @HazAT
    Member

    When you set debug: true and check your browser's console, do you see requests going out and returning 200?

  2. billypap1 commented on Apr 15, 2024

    @billypap1
    Author

    Yes the requests return 200. Below is a measurement:

    Sentry Logger [log]: [Measurements] Adding measurements to transaction {
      "ttfb": {
        "value": 205,
        "unit": "millisecond"
      },
      "lcp": {
        "value": 741,
        "unit": "millisecond"
      },
      "fp": {
        "value": 262,
        "unit": "millisecond"
      },
      "fcp": {
        "value": 262,
        "unit": "millisecond"
      },
      "connection.rtt": {
        "value": 0,
        "unit": "millisecond"
      },
      "ttfb.requestTime": {
        "value": 201.70000000018626,
        "unit": "millisecond"
      }
    }
    
    Sentry Logger [log]: [Tracing] Finishing current transaction with op: pageload
    
    

    The transactions are captured successfully but in the dashboard, in Web Vitals the performance score is always 0 (No results found for your query).

  3. jjbayer commented on Apr 15, 2024

    @jjbayer
    Member

    cc @edwardgou-sentry is the feature organizations:performance-calculate-score-relay maybe not enabled in the EU region?

  4. billypap1 commented on Apr 15, 2024

    @billypap1
    Author

    I just created a test org in US Region and I changed only the DSN in my config.
    After a few navigations in my page, I get all transactions with performance score, LCP etc.
    So there is an issue in EU Region.

  5. edwardgou-sentry commented on Apr 15, 2024

    @edwardgou-sentry
    Contributor

    Hi @billypap1 , thanks for reporting! We were missing a feature flag in the EU region as @jjbayer mentioned. This has been fixed now, so you should be able to receive performance scores now. Could you try again and let us know if you are still having any issues?

  6. billypap1 commented on Apr 15, 2024

    @billypap1
    Author

    Hi @edwardgou-sentry, I get performance score now but I get only INP measurements. The other measurements (LCP, FCP, CLS,TTFB) are empty (-). Should I wait for more transactions in order to be captured?

  7. 11 remaining items

  8. moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀 2on Apr 17, 2024
  9. edwardgou-sentry commented on Apr 17, 2024

    @edwardgou-sentry
    Contributor

    Hi @billypap1 , are you able to get cls from your measurements? I saw in your earlier response that cls was missing, which is a necessary web vital to calculate some browsers:
    https://docs.sentry.io/product/performance/web-vitals/web-vitals-concepts/#browser-support

    If you can share some link or id to your sentry project or website, I can investigate a bit more to find out what's happening.

  10. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Apr 17, 2024
  11. billypap1 commented on Apr 17, 2024

    @billypap1
    Author

    Hi @edwardgou-sentry, I just checked the dashboard and now I can get all metrics, cron jobs and performance score!

  12. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Apr 17, 2024
  13. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Apr 17, 2024
  14. edwardgou-sentry commented on Apr 17, 2024

    @edwardgou-sentry
    Contributor

    Awesome, thanks for the update @billypap1 ! Going to close this issue now as it is resolved. Feel free to let us know if you encounter any other issues.

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

Metadata

Metadata

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions