getsentry / sentry-android

MOVED: https://github.com/getsentry/sentry-java
https://github.com/getsentry/sentry-java
85 stars 32 forks source link

Add `sendDefaultPii` flag to `SentryOptions`. #531

Closed maciejwalkowiak closed 4 years ago

maciejwalkowiak commented 4 years ago

:loudspeaker: Type of change

:scroll: Description

Add sendDefaultPii flag to SentryOptions. Filters out user information and sensitive request headers in Spring Boot integration if this flag is set to false.

:bulb: Motivation and Context

Discussion initially started when working on Spring Boot integration - we want to give users option to decide if detailed user information is sent or not - similar to how it's done in Python integration: https://docs.sentry.io/error-reporting/configuration/?platform=python

Supersedes #527.

:pencil: Checklist