-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
Package: angularIssues related to the Sentry Angular SDKIssues related to the Sentry Angular 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?
Self-hosted/on-premise
Which SDK are you using?
@sentry/angular
SDK Version
7.58.1
Framework Version
Angular 12.2.17
Link to Sentry event
No response
SDK Setup
Sentry.init({
dsn: '...',
integrations: [
new Sentry.BrowserTracing({
// Set `tracePropagationTargets` to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ['localhost', /^http/],
routingInstrumentation: Sentry.routingInstrumentation,
}),
],
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for performance monitoring.
// We recommend adjusting this value in production
tracesSampleRate: 1.0,
tracePropagationTargets: ['localhost', /^http/],
});Steps to Reproduce
I have an Angular 12 application where I added sentry. But the sentry-trace header is not attached to XHR Requests initiated by HttpClient. When I'm doing a fetch() manually, then the header is set.
Expected Result
I see the sentry-trace header in the request.
Actual Result
I don't the the header in the request.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Package: angularIssues related to the Sentry Angular SDKIssues related to the Sentry Angular SDK
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Waiting for: Product Owner