Skip to content

Commit 31cd6f9

Browse files
authored
Merge branch 'master' into feat/span-first-2
2 parents bcae7b9 + 1566e62 commit 31cd6f9

5 files changed

Lines changed: 1096 additions & 486 deletions

File tree

sentry_sdk/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,8 @@ def _record_lost_event(
471471
if (
472472
self.monitor
473473
or self.log_batcher
474+
or self.metrics_batcher
475+
or self.span_batcher
474476
or has_profiling_enabled(self.options)
475477
or isinstance(self.transport, BaseHttpTransport)
476478
):

sentry_sdk/traces.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,10 @@ def __init__(
248248
self._scope = scope
249249

250250
self.name: str = name
251-
self._attributes: "Attributes" = attributes or {}
251+
self._attributes: "Attributes" = {}
252+
if attributes:
253+
for attribute, value in attributes.items():
254+
self.set_attribute(attribute, value)
252255

253256
self._trace_id = trace_id
254257
self.parent_span_id = parent_span_id

0 commit comments

Comments
 (0)