Skip to content

Commit 55af421

Browse files
committed
Use existing function
1 parent 44d5c88 commit 55af421

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry_sdk/integrations/rust_tracing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
import sentry_sdk
3838
from sentry_sdk.integrations import Integration
39+
from sentry_sdk.scope import should_send_default_pii
3940
from sentry_sdk.tracing import Span as SentrySpan
4041
from sentry_sdk.utils import SENSITIVE_DATA_SUBSTITUTE
4142

@@ -224,9 +225,8 @@ def on_record(self, span_id: str, values: str, span_state: TraceState) -> None:
224225
return
225226
_parent_sentry_span, sentry_span = span_state
226227

227-
client_options = sentry_sdk.get_client().options
228228
send_sensitive_data = (
229-
client_options["send_default_pii"]
229+
should_send_default_pii()
230230
if self.send_sensitive_data is None
231231
else self.send_sensitive_data
232232
)

0 commit comments

Comments
 (0)