Skip to content

Commit 6878721

Browse files
stream_gen_ai_spans and boto3 tests
1 parent 057cd64 commit 6878721

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

sentry_sdk/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _serialized_v1_span_to_serialized_v2_span(
232232
if "environment" in event:
233233
attributes["sentry.environment"] = event["environment"]
234234
if "server_name" in event:
235-
attributes["server.address"] = event["server_name"]
235+
attributes[SPANDATA.DEVICE_NAME] = event["server_name"]
236236
if "transaction" in event:
237237
attributes["sentry.segment.name"] = event["transaction"]
238238

tests/integrations/boto3/test_s3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def test_streaming(
125125
"sentry.sdk.version": mock.ANY,
126126
"sentry.segment.id": mock.ANY,
127127
"sentry.segment.name": "custom parent",
128-
"server.address": mock.ANY,
128+
SPANDATA.DEVICE_NAME: mock.ANY,
129129
"thread.id": mock.ANY,
130130
"thread.name": mock.ANY,
131131
}
@@ -283,7 +283,7 @@ def test_omit_url_data_if_parsing_fails(
283283
"sentry.sdk.version": mock.ANY,
284284
"sentry.segment.id": mock.ANY,
285285
"sentry.segment.name": "custom parent",
286-
"server.address": mock.ANY,
286+
SPANDATA.DEVICE_NAME: mock.ANY,
287287
"thread.id": mock.ANY,
288288
"thread.name": mock.ANY,
289289
}

0 commit comments

Comments
 (0)