Skip to content

Commit 60c135c

Browse files
committed
fixes
1 parent 78708bc commit 60c135c

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

sentry_sdk/_span_batcher.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,6 @@ def _flush(self) -> None:
100100
envelopes = []
101101
for trace_id, spans in self._span_buffer.items():
102102
if spans:
103-
for span in spans:
104-
print(span.name)
105103
dsc = spans[0].dynamic_sampling_context()
106104

107105
envelope = Envelope(

sentry_sdk/tracing_utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,10 @@ def populate_from_segment(cls, segment: "StreamedSpan") -> "Baggage":
802802
if client.parsed_dsn.org_id:
803803
sentry_items["org_id"] = client.parsed_dsn.org_id
804804

805-
if segment.get_attributes().get("source") not in LOW_QUALITY_SEGMENT_SOURCES:
805+
if (
806+
segment.get_attributes().get("sentry.span.source")
807+
not in LOW_QUALITY_SEGMENT_SOURCES
808+
):
806809
sentry_items["transaction"] = segment.name
807810

808811
if segment.sample_rate is not None:
@@ -1473,6 +1476,3 @@ def add_sentry_baggage_to_headers(
14731476
start_span as start_streaming_span,
14741477
StreamedSpan,
14751478
)
1476-
1477-
if TYPE_CHECKING:
1478-
from sentry_sdk.traces import StreamedSpan

0 commit comments

Comments
 (0)