Skip to content

Commit cb75f15

Browse files
committed
Merge branch 'master' into ivana/span-first-13-tests
2 parents c614249 + 7b2e9df commit cb75f15

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

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

0 commit comments

Comments
 (0)