Skip to content
4 changes: 4 additions & 0 deletions sentry_sdk/traces.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,10 @@ def _set_segment_attributes(self) -> None:
self.set_attribute(
SPANDATA.SENTRY_SDK_INTEGRATIONS, sorted(client.integrations.keys())
)
if not self.get_attributes().get("sentry.segment.name.source"):
self.set_attribute(
"sentry.segment.name.source", SegmentNameSource.CUSTOM.value
)

if client.options.get("dist") and SPANDATA.SENTRY_DIST not in self._attributes:
self.set_attribute(
Expand Down
Loading
Loading