From 3d40bd587734805878a9199d520e22c3b186b1da Mon Sep 17 00:00:00 2001 From: linglp Date: Mon, 24 Feb 2025 10:20:40 -0500 Subject: [PATCH] update comments --- schematic/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/schematic/__init__.py b/schematic/__init__.py index c05d8957f..7fbbb7e60 100644 --- a/schematic/__init__.py +++ b/schematic/__init__.py @@ -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)