Skip to content

Commit

Permalink
Verify custom resource attributes support (#32).
Browse files Browse the repository at this point in the history
  • Loading branch information
jimf5 committed Dec 19, 2024
1 parent 1d25954 commit d505286
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_otel.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
otel_trace on;
otel_service_name test_service;
otel_resource_attr my.name "my service";
server {
listen 127.0.0.1:18443 ssl;
Expand Down Expand Up @@ -258,6 +259,7 @@ def test_batches(client, trace_service, batch_count):

for batch in trace_service.batches:
assert get_attr(batch[0].resource, "service.name") == "test_service"
assert get_attr(batch[0].resource, "my.name") == "my service"
assert len(batch[0].scope_spans[0].spans) == batch_size

time.sleep(0.3) # wait for +1 request to be flushed
Expand Down

0 comments on commit d505286

Please sign in to comment.