We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d1ebe1 commit 0420e0eCopy full SHA for 0420e0e
1 file changed
sentry_sdk/traces.py
@@ -21,6 +21,7 @@
21
try_autostart_continuous_profiler,
22
try_profile_lifecycle_trace_start,
23
)
24
+from sentry_sdk.scope import should_send_default_pii
25
from sentry_sdk.tracing_utils import Baggage
26
from sentry_sdk.utils import (
27
capture_internal_exceptions,
@@ -559,7 +560,8 @@ def _set_segment_attributes(self) -> None:
559
560
if not self._is_segment():
561
return
562
- self.set_attribute("process.command_args", sys.argv)
563
+ if should_send_default_pii():
564
+ self.set_attribute("process.command_args", sys.argv)
565
566
567
class NoOpStreamedSpan(StreamedSpan):
0 commit comments