Skip to content

Commit 4a5e45d

Browse files
authored
fix(core): Only fall back to sendDefaultPii for IP collection in requestDataIntegration (#15125)
1 parent 5021a58 commit 4a5e45d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/integrations/requestdata.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const DEFAULT_INCLUDE: RequestDataIncludeOptions = {
2323
cookies: true,
2424
data: true,
2525
headers: true,
26-
ip: false,
2726
query_string: true,
2827
url: true,
2928
};
@@ -44,7 +43,7 @@ const _requestDataIntegration = ((options: RequestDataIntegrationOptions = {}) =
4443

4544
const includeWithDefaultPiiApplied: RequestDataIncludeOptions = {
4645
...include,
47-
ip: include.ip || client.getOptions().sendDefaultPii,
46+
ip: include.ip ?? client.getOptions().sendDefaultPii,
4847
};
4948

5049
if (normalizedRequest) {

0 commit comments

Comments
 (0)