forked from open-telemetry/opentelemetry-java-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoats.yaml
More file actions
27 lines (24 loc) · 787 Bytes
/
oats.yaml
File metadata and controls
27 lines (24 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
oats-schema-version: 2
docker-compose:
files:
- ./docker-compose.yml
app-service: app
app-docker-tag: javaagent-declarative-config:latest
app-docker-port: 8080
input:
# This endpoint should be traced normally
- path: /api/example
# This endpoint should NOT be traced (excluded by declarative config)
- path: /actuator/health
expected:
traces:
# Verify that /api/example creates a trace with SERVER span
- traceql: '{ span.http.route = "/api/example" }'
equals: "GET /api/example"
attributes:
http.request.method: "GET"
http.route: "/api/example"
- traceql: '{ span.http.route = "/actuator/health" }'
count:
max: 0