Skip to content

Commit c83d76c

Browse files
committed
.
1 parent 52bcfee commit c83d76c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sentry_sdk/scope.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1474,15 +1474,15 @@ def _apply_global_attributes_to_telemetry(
14741474
attributes["sentry.sdk.version"] = SDK_INFO["version"]
14751475

14761476
server_name = options.get("server_name")
1477-
if server_name is not None:
1477+
if server_name is not None and SPANDATA.SERVER_ADDRESS not in attributes:
14781478
attributes[SPANDATA.SERVER_ADDRESS] = server_name
14791479

14801480
environment = options.get("environment")
1481-
if environment is not None:
1481+
if environment is not None and "sentry.environment" not in attributes:
14821482
attributes["sentry.environment"] = environment
14831483

14841484
release = options.get("release")
1485-
if release is not None:
1485+
if release is not None and "sentry.release" not in attributes:
14861486
attributes["sentry.release"] = release
14871487

14881488
def _apply_user_attributes_to_telemetry(

0 commit comments

Comments
 (0)