We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ClientOptions.SendDefaultPii
SendDefaultPii option was added in #485 . This option behaves as follows:
SendDefaultPii
Is this expected behaviour? In case of other language, it looks like all http headers except sensitive headers are sent when SendDefaultPii is false.
sentry-python: https://github.com/getsentry/sentry-python/blob/2f67f12e405f8a6f89418d96071158367fcf516f/sentry_sdk/integrations/_wsgi_common.py#L160
sentry-spring: https://github.com/getsentry/sentry-java/blob/8ade22549f328b48fd01aea726141f7186f3bd65/sentry-spring/src/main/java/io/sentry/spring/SentryRequestResolver.java#L33
func Run(addr string) error { _ = sentry.Init(sentry.ClientOptions{ SendDefaultPII: false, }) defer sentry.Flush(2 * time.Second) http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { ctx := r.Context() hub := sentry.GetHubFromContext(ctx) hub.CaptureMessage("my message") }) handler := sentryhttp.New(sentryhttp.Options{}).Handle(http.DefaultServeMux) return http.ListenAndServe(addr, handler) }
When ClientOptions.SendDefaultPii is false, http headers except sensitive data are sent. I made a PR #524 .
The text was updated successfully, but these errors were encountered:
client is not nil and SendDefaultPii is true -> all headers are sent client is not nil and SendDefaultPii is false -> no headers are sent
Correct.
client is nil -> headers without sensitive data are sent
In this case, nothing should be sent actually.
Sorry, something went wrong.
ref: Set headers inside client check (getsentry#523)
8373d13
feat: When ClientOptions.SendDefaultPii is false, send http headers w…
85ab572
…ithout sensitive headers (getsentry#523)
de5abac
@ikorihn fixed in https://github.com/getsentry/sentry-go/releases/tag/v0.17.0
Thanks for review!
cleptric
Successfully merging a pull request may close this issue.
Summary
SendDefaultPii
option was added in #485 .This option behaves as follows:
Is this expected behaviour?
In case of other language, it looks like all http headers except sensitive headers are sent when
SendDefaultPii
is false.sentry-python:
https://github.com/getsentry/sentry-python/blob/2f67f12e405f8a6f89418d96071158367fcf516f/sentry_sdk/integrations/_wsgi_common.py#L160
sentry-spring:
https://github.com/getsentry/sentry-java/blob/8ade22549f328b48fd01aea726141f7186f3bd65/sentry-spring/src/main/java/io/sentry/spring/SentryRequestResolver.java#L33
Steps To Reproduce
Expected Behavior
When
ClientOptions.SendDefaultPii
is false, http headers except sensitive data are sent.I made a PR #524 .
SDK
Sentry
The text was updated successfully, but these errors were encountered: