-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Package: browserIssues related to the Sentry Browser SDKIssues related to the Sentry Browser SDK
Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/react
SDK Version
7.52.1
Framework Version
18.2.0
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: process.env.SENTRY_DSN,
integrations: [
new BrowserTracing({
routingInstrumentation: Sentry.reactRouterV6Instrumentation(
React.useEffect,
useLocation,
useNavigationType,
createRoutesFromChildren,
matchRoutes,
),
tracePropagationTargets: [/api\.([^.]+)\.trajector\.cloud/],
}),
],
tracesSampleRate: 1,
environment: process.env.NODE_ENV,
release: process.env.VERSION,
});
Steps to Reproduce
Use axios with react-query.
useQuery({
queryKey: [queryKeys.FeatureFlags],
queryFn: apiRoutes.auth.getFeatureFlags,
suspense: true,
});
Expected Result
XHR request to API server should contain sentry headers for distributed tracing
Actual Result
Metadata
Metadata
Assignees
Labels
Package: browserIssues related to the Sentry Browser SDKIssues related to the Sentry Browser SDK