Skip to content

Commit 1fbfc78

Browse files
Fix trace queries
Fix names based on docker-otel-lgtm's .NET example.
1 parent 1593471 commit 1fbfc78

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docker/docker-compose-aspnetcore/attributes/oats.default-resource-attributes.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ input:
44
- path: /api/HttpClient/Get
55
expected:
66
traces:
7-
- traceql: '{ name =~ "api/HttpClient/Get" }'
7+
- traceql: '{ span.http.route =~ "api/HttpClient/Get" }'
88
spans:
9-
- name: 'GET'
9+
- name: 'GET api/HttpClient/Get'
1010
attributes:
1111
service.name: aspnetcore
1212
service.version: 1.0.0.0

docker/docker-compose-aspnetcore/http/oats.http-get.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ input:
44
- path: /api/HttpClient/Get
55
expected:
66
traces:
7-
- traceql: '{ name =~ "api/HttpClient/Get" }'
7+
- traceql: '{ span.http.route =~ "api/HttpClient/Get" }'
88
spans:
9-
- name: 'GET'
9+
- name: 'GET api/HttpClient/Get'
1010
attributes:
1111
http.request.method: GET
1212
metrics:

docker/docker-compose-aspnetcore/http/oats.http-geterror.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ input:
44
- path: /api/HttpClient/GetError
55
expected:
66
traces:
7-
- traceql: '{ name =~ "api/HttpClient/GetError" }'
7+
- traceql: '{ span.http.route =~ "api/HttpClient/GetError" }'
88
spans:
9-
- name: 'GET'
9+
- name: 'GET api/HttpClient/GetError'
1010
attributes:
1111
error.type: '500'
1212
http.request.method: GET

0 commit comments

Comments
 (0)