Skip to content

Commit 62deebf

Browse files
committed
Add [Tracing] prefix
1 parent f816c0a commit 62deebf

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sentry_sdk/traces.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,9 @@ def _end(self, end_timestamp: "Optional[Union[float, datetime]]" = None) -> None
356356
if isinstance(end_timestamp, datetime):
357357
self._timestamp = end_timestamp
358358
else:
359-
logger.debug("Failed to set end_timestamp. Using current time instead.")
359+
logger.debug(
360+
"[Tracing] Failed to set end_timestamp. Using current time instead."
361+
)
360362

361363
if self._timestamp is None:
362364
try:
@@ -401,7 +403,7 @@ def status(self, status: "Union[SpanStatus, str]") -> None:
401403

402404
if status not in {e.value for e in SpanStatus}:
403405
logger.debug(
404-
f'Unsupported span status {status}. Expected one of: "ok", "error"'
406+
f'[Tracing] Unsupported span status {status}. Expected one of: "ok", "error"'
405407
)
406408
return
407409

@@ -491,7 +493,7 @@ def _end(self, end_timestamp: "Optional[Union[float, datetime]]" = None) -> None
491493
client = sentry_sdk.get_client()
492494
if client.is_active() and client.transport:
493495
logger.debug(
494-
f"Discarding span because sampled=False (reason: {self._unsampled_reason})"
496+
f"[Tracing] Discarding span because sampled=False (reason: {self._unsampled_reason})"
495497
)
496498
client.transport.record_lost_event(
497499
reason=self._unsampled_reason,

0 commit comments

Comments
 (0)