Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android SentryOkHttpInterceptor provide mechanism to sanitize logged URL #1362

Closed
alexmetcalfe opened this issue Mar 29, 2021 · 3 comments
Closed
Labels
enhancement New feature or request performance Performance API issues Platform: Android

Comments

@alexmetcalfe
Copy link

It seems that using the SentryOkHttpInterceptor out of the box all URLs would be logged and visible in Sentry.

It would be preferable if we could provide a regex or some other mechanism to allow us to sanitize the URL so that we can obscure any customer sensitive information (user generated content)

@marandaneto marandaneto added enhancement New feature or request performance Performance API issues labels Mar 30, 2021
@marandaneto
Copy link
Contributor

@alexmetcalfe that's a fair use case, thanks for reporting, I'll discuss this internally.

@alexmetcalfe
Copy link
Author

Hey @maciejwalkowiak I noticed that the SentryOkHttpInterceptor will still log the full URL as a breadcrumb. Would it be possible to allow this to be configurable as well?

@marandaneto
Copy link
Contributor

@alexmetcalfe for that you can use the https://docs.sentry.io/platforms/android/configuration/options/#before-breadcrumb callback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance API issues Platform: Android
Projects
None yet
Development

No branches or pull requests

2 participants