Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
linglp committed Feb 24, 2025
1 parent 12988cf commit 3d40bd5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions schematic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,14 @@ def _readable_span_alternate(self: SpanSdk) -> ReadableSpan:
Returns:
ReadableSpan: a new readable span that redacts sensitive data
"""
# remove sensitive information in span status description
# this avoid statusMessage on signoz contains sensitive information
# Remove sensitive information from the span status description
# to prevent exposing sensitive details in the statusMessage on SigNoz
if self._status.status_code == trace.StatusCode.ERROR:
status_description_redacted = redact_string(str(self._status.description))
self._status._description = status_description_redacted

# remove sensitive information in attributes
# this avoid exception trace and messages contain sensitive information
# Remove sensitive information in event attributes
# to prevent exposing sensitive details in exception traces and messages
for event in self._events:
attributes = event.attributes
redacted_event_attributes = redacted_sensitive_data_in_exception(attributes)
Expand Down

0 comments on commit 3d40bd5

Please sign in to comment.