Skip to content

Commit cac4a78

Browse files
committed
test(otel): support typed metric resource attributes
1 parent a30e8f7 commit cac4a78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/opentelemetry/test_otlp_trace.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ def log_message(self, *args):
148148
# No InstrumentationScope is emitted (redundant with the resource's telemetry.sdk.* attributes).
149149
assert "scope" not in scope_metrics
150150
# Service identity lives on the resource.
151-
resource_attrs = {a["key"]: a["value"]["stringValue"] for a in resource_metrics["resource"]["attributes"]}
152-
assert resource_attrs["service.name"] == "test-svc"
151+
resource_attrs = {a["key"]: a["value"] for a in resource_metrics["resource"]["attributes"]}
152+
assert resource_attrs["service.name"]["stringValue"] == "test-svc"
153153
assert metric["histogram"]["dataPoints"], "No data points in exported histogram"
154154

155155

0 commit comments

Comments
 (0)