sentry-rust icon indicating copy to clipboard operation
sentry-rust copied to clipboard

Not getting PII even though send_default_pii is set to true

Open talzion12 opened this issue 1 year ago • 1 comments

Environment

Rust 1.70.0 Sentry 0.31.5 with tracing feature

Steps to Reproduce

  1. Enable PII by setting send_default_pii: true in the ClientOptions.
  2. Enable Sentry integration for the tracing library.
  3. Send an error using tracing::error!().
  4. Open the issue in the Sentry dashboard and see that there is no IP attached to the issue.

Expected Result

An error is created with the user's IP attached to it.

Actual Result

The error is created but there is no IP in the Sentry dashboard.

Note

I searched the code for the send_default_pii flag and it seems it's only used in the sentry-actix integration.

talzion12 avatar Jul 12 '23 12:07 talzion12

Hi, sorry this took a while. You're right that this flag is only used in sentry-actix by mistake.

loewenheim avatar Jul 20 '23 12:07 loewenheim