-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
- Sentry initialized like this:
// sentry.ts
import * as Sentry from "@sentry/react";
if (import.meta.env.VITE_SENTRY_DSN) {
console.log("sentry init");
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
environment: import.meta.env.VITE_SENTRY_ENV || "unknown",
release: import.meta.env.VITE_SENTRY_RELEASE,
integrations: [],
normalizeDepth: 10,
});
}
export { Sentry };
- And used like this:
// main.ts
...
import { Sentry } from "./sentry";
ReactDOM.createRoot(document.getElementById("root")!, {
onCaughtError: Sentry.reactErrorHandler(),
onRecoverableError: Sentry.reactErrorHandler(),
onUncaughtError: Sentry.reactErrorHandler(),
}).render(
<React.StrictMode>
<ErrorBoundary FallbackComponent={ErrorContainer}>
...
</ErrorBoundary>
</React.StrictMode>,
);
Expected Result
No user's IP address stored by default as mentioned in the docs: https://docs.sentry.io/platforms/javascript/guides/react/data-management/data-collected/

Actual Result
In event's tags is this:

Product Area
Issues
Link
No response
DSN
No response
Version
No response
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status