question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tracingOrigins doesn't work as expected

See original GitHub issue

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/react

SDK Version

7.4.1

Framework Version

7.4.1

Link to Sentry event

No response

Steps to Reproduce

  Sentry.init({
    dsn: sentryDns,
    integrations: [new Integrations.BrowserTracing()],
    release: releaseName,
    environment,
    tracesSampleRate: 0.1,
    browserTracingOptions: {
      tracingOrigins: [], // <----
    },
    ...
})

I tried also like this,

  Sentry.init({
    dsn: sentryDns,
    integrations: [new Integrations.BrowserTracing({
      tracingOrigins: [], // <----
    })],
    ...

both ways sentry-trace and baggage still shows in some requests headers.

Expected Result

sentry-trace and baggage shouldn’t be added to any request.

Actual Result

sentry-trace and baggage are attach to some requests header.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
github-actions[bot]commented, Aug 9, 2022

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone … forever!


“A weed is but an unloved flower.” ― Ella Wheeler Wilcox 🥀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting for JavaScript - Sentry Documentation
By default, Sentry does not capture errors when a resource (like an image or a css file) fails to load. If you would...
Read more >
TracingOptions | Sentry JavaScript SDKs - v5.21.1
Return false if you don't want a span for the given url. By default it uses the tracingOrigins options as a url match....
Read more >
Guidelines for Performance Monitoring
This document covers how SDKs should add support for Performance Monitoring with Distributed Tracing . This should give an overview of the APIs...
Read more >
Request header field sentry-trace is not allowed by Access ...
So after some investigations, I came across this tracingOrigins property that can be set using integrations like this:
Read more >
Tracing for the Frontend to the Backend - YouTube
Join Dustin Bailey (Solutions Engineer @Sentry) as he shows how developers can trace those pesky performance issues to poor-performing API ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found