forked from open-telemetry/opentelemetry-java-examples
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoats.yaml
More file actions
54 lines (51 loc) · 2.14 KB
/
oats.yaml
File metadata and controls
54 lines (51 loc) · 2.14 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# OATS is an acceptance testing framework for OpenTelemetry - https://github.com/grafana/oats
kubernetes:
dir: k8s
app-service: dice
app-docker-file: Dockerfile
app-docker-tag: dice:1.1-SNAPSHOT
app-docker-port: 8080
input:
- path: /rolldice
expected:
logs:
- logql: '{service_name="dice"} |~ `.*Anonymous player is rolling the dice:.*`'
regexp: 'Anonymous player is rolling the dice: \d+' # uses formatted message
- logql: '{service_name="dice"} |~ `.*simulating an error.*`'
equals: 'Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: java.lang.RuntimeException: simulating an error] with root cause'
attributes:
deployment_environment: staging
exception_message: "simulating an error"
exception_type: "java.lang.RuntimeException"
scope_name: "org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet]"
service_name: dice
service_namespace: shop
service_version: 1.1
severity_number: 17
severity_text: SEVERE
attribute-regexp:
flags: ".*" # from loki
detected_level: ".*" # from loki
observed_timestamp: ".*" # from loki
# thread_name: ".*" # thread name is missing when there is an exception - has nothing to do with stdout logging
span_id: ".*"
trace_id: ".*"
container_id: ".*"
host_arch: ".*"
host_name: ".*"
os_description: ".*"
os_type: ".*"
process_command_args: ".*"
process_executable_path: ".*"
process_pid: ".*"
process_runtime_description: ".*"
process_runtime_name: ".*"
process_runtime_version: ".*"
service_instance_id: ".*"
telemetry_distro_name: ".*"
telemetry_distro_version: ".*"
telemetry_sdk_language: ".*"
telemetry_sdk_name: ".*"
telemetry_sdk_version: ".*"
exception_stacktrace: "java\\.lang\\.RuntimeException: simulating an error\n\tat io\\.opentelemetry\\.example\\.RollController\\.index\\(RollController\\.java:21\\)\n\t.*\n"
no-extra-attributes: true