Skip to content

Commit f96c45c

Browse files
logs and metrics tests
1 parent 0078610 commit f96c45c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_logs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def test_logs_attributes(sentry_init, capture_items):
211211
if sentry_sdk.get_client().options.get("release") is not None:
212212
assert "sentry.release" in logs[0]["attributes"]
213213
assert logs[0]["attributes"]["sentry.message.parameter.my_var"] == "some value"
214-
assert logs[0]["attributes"][SPANDATA.SERVER_ADDRESS] == "test-server"
214+
assert logs[0]["attributes"][SPANDATA.DEVICE_NAME] == "test-server"
215215
assert logs[0]["attributes"]["sentry.sdk.name"].startswith("sentry.python")
216216
assert logs[0]["attributes"]["sentry.sdk.version"] == VERSION
217217

tests/test_metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_metrics_with_attributes(sentry_init, capture_items):
8989
assert metrics[0]["attributes"]["sentry.release"] == "1.0.0"
9090
assert metrics[0]["attributes"]["sentry.environment"] == "test"
9191

92-
assert metrics[0]["attributes"][SPANDATA.SERVER_ADDRESS] == "test-server"
92+
assert metrics[0]["attributes"][SPANDATA.DEVICE_NAME] == "test-server"
9393
assert metrics[0]["attributes"]["sentry.sdk.name"].startswith("sentry.python")
9494
assert metrics[0]["attributes"]["sentry.sdk.version"] == VERSION
9595

0 commit comments

Comments
 (0)