-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
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/vue
SDK Version
7.93.0
Framework Version
Vue 3.4.10
Link to Sentry event
No response
SDK Setup
Sentry.init({
// dsn: "",
tracesSampleRate: 1.0,
integrations: [
new Sentry.BrowserTracing(),
],
});
Steps to Reproduce
const request = new Request("/test", {
headers: { foo: "11" },
});
fetch(request, {
headers: { bar: "22" },
});
Expected Result
The request should have the header bar: 22
.
Actual Result
I believe it was a mistake in selecting the request headers to be merged.
sentry-javascript/packages/tracing-internal/src/common/fetch.ts
Lines 151 to 152 in 2171633
const headers = | |
typeof Request !== 'undefined' && isInstanceOf(request, Request) ? (request as Request).headers : options.headers; |
Metadata
Metadata
Assignees
Labels
Projects
Status
No status