Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/cloudflare/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export function getDefaultIntegrations(options: CloudflareOptions): Integration[
functionToStringIntegration(),
linkedErrorsIntegration(),
fetchIntegration(),
// TODO(v10): the `include` object should be defined directly in the integration based on `sendDefaultPii`
requestDataIntegration(sendDefaultPii ? undefined : { include: { cookies: false } }),
consoleIntegration(),
];
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/integrations/requestdata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type RequestDataIntegrationOptions = {
include?: RequestDataIncludeOptions;
};

// TODO(v10): Change defaults based on `sendDefaultPii`
const DEFAULT_INCLUDE: RequestDataIncludeOptions = {
cookies: true,
data: true,
Expand Down
1 change: 1 addition & 0 deletions packages/node/src/integrations/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const _nodeContextIntegration = ((options: ContextOptions = {}) => {

const updatedContext = _updateContext(await cachedContext);

// TODO(v10): conditional with `sendDefaultPii` here?
event.contexts = {
...event.contexts,
app: { ...updatedContext.app, ...event.contexts?.app },
Expand Down
2 changes: 2 additions & 0 deletions packages/replay-internal/src/coreHandlers/util/xhrUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ function _prepareXhrData(
};
}

// ---- This additional network data below is only captured for URLs defined in `networkDetailAllowUrls` ----

const xhrInfo = xhr[SENTRY_XHR_DATA_KEY];
const networkRequestHeaders = xhrInfo
? getAllowedHeaders(xhrInfo.request_headers, options.networkRequestHeaders)
Expand Down
1 change: 1 addition & 0 deletions packages/vercel-edge/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function getDefaultIntegrations(options: Options): Integration[] {
linkedErrorsIntegration(),
winterCGFetchIntegration(),
consoleIntegration(),
// TODO(v10): integration can be included - but integration should not add IP address etc
...(options.sendDefaultPii ? [requestDataIntegration()] : []),
];
}
Expand Down
Loading