File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -362,9 +362,8 @@ def _set_initial_attributes(self):
362362 self ._attributes = attributes | self ._attributes
363363
364364 self ._attributes ["sentry.segment.id" ] = self .containing_transaction .span_id
365- if hasattr (self .containing_transaction , "name" ):
366- # TODO[span-first]: fix this properly
367- self ._attributes ["sentry.segment.name" ] = self .containing_transaction .name
365+ # TODO[span-first]: This might need to be updated if the segment name is updated
366+ self ._attributes ["sentry.segment.name" ] = self .containing_transaction .name
368367
369368 # TODO this should really live on the Transaction class rather than the Span
370369 # class
@@ -882,9 +881,10 @@ def __init__( # type: ignore[misc]
882881 ** kwargs , # type: Unpack[SpanKwargs]
883882 ):
884883 # type: (...) -> None
884+ self .name = name
885+
885886 super ().__init__ (** kwargs )
886887
887- self .name = name
888888 self .source = source
889889 self .sample_rate = None # type: Optional[float]
890890 self .parent_sampled = parent_sampled
Original file line number Diff line number Diff line change @@ -1790,9 +1790,8 @@ def get_default_attributes():
17901790 if thread_name is not None :
17911791 attributes ["thread.name" ] = thread_name
17921792
1793- # The user, if present, is always set on the isolation scope.
1794- # TODO[ivana]: gate behing PII?
17951793 if should_send_default_pii ():
1794+ # The user, if present, is always set on the isolation scope.
17961795 isolation_scope = sentry_sdk .get_isolation_scope ()
17971796 if isolation_scope ._user is not None :
17981797 for attribute , user_attribute in (
You can’t perform that action at this time.
0 commit comments