Skip to content

Commit b858bec

Browse files
committed
apply global attrs last, conditionally
1 parent 7c3da6e commit b858bec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,9 +1636,9 @@ def apply_to_telemetry(self, telemetry: "Union[Log, Metric]") -> None:
16361636
if telemetry.get("span_id") is None and span_id:
16371637
telemetry["span_id"] = span_id
16381638

1639-
self._apply_global_attributes_to_telemetry(telemetry)
16401639
self._apply_scope_attributes_to_telemetry(telemetry)
16411640
self._apply_user_attributes_to_telemetry(telemetry)
1641+
self._apply_global_attributes_to_telemetry(telemetry)
16421642

16431643
def update_from_scope(self, scope: "Scope") -> None:
16441644
"""Update the scope with another scope's data."""

0 commit comments

Comments
 (0)