File tree Expand file tree Collapse file tree
doc-snippets/extensions-minimal/oats
javaagent-declarative-configuration/oats
logging-k8s-stdout-otlp-json Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,5 +12,8 @@ pushd javaagent-declarative-configuration
1212../gradlew clean bootJar
1313popd
1414
15+ ./gradlew :doc-snippets:extensions-testapp:jar :doc-snippets:extensions-minimal:shadowJar
16+
1517oats -timeout 5m logging-k8s-stdout-otlp-json/
1618oats -timeout 5m javaagent-declarative-configuration/oats/
19+ oats -timeout 5m doc-snippets/extensions-minimal/oats/
Original file line number Diff line number Diff line change 11# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
2+ oats-schema-version : 2
23
34docker-compose :
45 files :
56 - ./docker-compose.yml
6- app-service : app
7- app-docker-tag : extensions-minimal:latest
8- app-docker-port : 8080
97
108input :
119 - path : /hello
@@ -14,10 +12,9 @@ input:
1412expected :
1513 traces :
1614 - traceql : ' { span.http.route = "/hello" }'
17- spans :
18- - name : " GET /hello"
19- attributes :
20- http.request.method : " GET"
21- http.route : " /hello"
22- # This custom attribute is added by MySpanProcessor
23- custom.processor : " active"
15+ equals : " GET /hello"
16+ attributes :
17+ http.request.method : " GET"
18+ http.route : " /hello"
19+ # This custom attribute is added by MySpanProcessor
20+ custom.processor : " active"
Original file line number Diff line number Diff line change 11# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
2+ oats-schema-version : 2
23
34docker-compose :
45 files :
@@ -11,16 +12,16 @@ input:
1112 # This endpoint should be traced normally
1213 - path : /api/example
1314 # This endpoint should NOT be traced (excluded by declarative config)
14- # We send the request but don't assert spans for it - the absence of spans
15- # for /actuator/health demonstrates the sampling rule is working
1615 - path : /actuator/health
1716
1817expected :
1918 traces :
2019 # Verify that /api/example creates a trace with SERVER span
2120 - traceql : ' { span.http.route = "/api/example" }'
22- spans :
23- - name : " GET /api/example"
24- attributes :
25- http.request.method : " GET"
26- http.route : " /api/example"
21+ equals : " GET /api/example"
22+ attributes :
23+ http.request.method : " GET"
24+ http.route : " /api/example"
25+ - traceql : ' { span.http.route = "/actuator/health" }'
26+ count :
27+ max : 0
Original file line number Diff line number Diff line change 11# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
2+ oats-schema-version : 2
23
34kubernetes :
45 dir : k8s
Original file line number Diff line number Diff line change 11[tools ]
22lychee = " 0.21.0"
33k3d = " 5.8.2"
4- "go:github.com/grafana/oats" = " 0.4.1 "
4+ "go:github.com/grafana/oats" = " 0.6.0 "
55kubectl = " 1.34.2"
66markdownlint-cli2 = " 0.19.1"
77
You can’t perform that action at this time.
0 commit comments