Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
aos
GitHub Repository: aos/docker-otel-lgtm
Path: blob/main/examples/python/oats.yaml
401 views
1
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats/tree/main/yaml
2
docker-compose:
3
generator: docker-lgtm
4
files:
5
- ./docker-compose.oats.yml
6
input:
7
- path: /rolldice
8
expected:
9
traces:
10
- traceql: '{ span.http.route = "/rolldice" }'
11
spans:
12
- name: 'GET /rolldice'
13
attributes:
14
otel.library.name: opentelemetry.instrumentation.flask
15
metrics:
16
- promql: 'http_server_active_requests{http_method="GET"}'
17
value: ">= 0"
18
logs:
19
- logql: '{service_name="rolldice"} |~ `Anonymous player is rolling the dice.*`'
20
contains:
21
- 'Anonymous player is rolling the dice'
22
23