Skip to content

Commit 4fa0e67

Browse files
committed
update oats
1 parent 133c8b2 commit 4fa0e67

5 files changed

Lines changed: 20 additions & 18 deletions

File tree

.mise/tasks/oats-tests.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@ pushd javaagent-declarative-configuration
1212
../gradlew clean bootJar
1313
popd
1414

15+
./gradlew :doc-snippets:extensions-testapp:jar :doc-snippets:extensions-minimal:shadowJar
16+
1517
oats -timeout 5m logging-k8s-stdout-otlp-json/
1618
oats -timeout 5m javaagent-declarative-configuration/oats/
19+
oats -timeout 5m doc-snippets/extensions-minimal/oats/
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
2+
oats-schema-version: 2
23

34
docker-compose:
45
files:
56
- ./docker-compose.yml
6-
app-service: app
7-
app-docker-tag: extensions-minimal:latest
8-
app-docker-port: 8080
97

108
input:
119
- path: /hello
@@ -14,10 +12,9 @@ input:
1412
expected:
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"
Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
2+
oats-schema-version: 2
23

34
docker-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

1817
expected:
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

logging-k8s-stdout-otlp-json/oats.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
2+
oats-schema-version: 2
23

34
kubernetes:
45
dir: k8s

mise.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tools]
22
lychee = "0.21.0"
33
k3d = "5.8.2"
4-
"go:github.com/grafana/oats" = "0.4.1"
4+
"go:github.com/grafana/oats" = "0.6.0"
55
kubectl = "1.34.2"
66
markdownlint-cli2 = "0.19.1"
77

0 commit comments

Comments
 (0)