-
Notifications
You must be signed in to change notification settings - Fork 2.5k
/
config.yaml
120 lines (109 loc) · 3.58 KB
/
config.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
transform:
trace_statements:
- context: span
statements:
- set(name, "bear") where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
- context: resource
statements:
- set(attributes["name"], "bear")
metric_statements:
- context: datapoint
statements:
- set(metric.name, "bear") where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
- context: resource
statements:
- set(attributes["name"], "bear")
log_statements:
- context: log
statements:
- set(body, "bear") where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
- context: resource
statements:
- set(attributes["name"], "bear")
transform/with_conditions:
trace_statements:
- context: span
conditions:
- attributes["http.path"] == "/animal"
statements:
- set(name, "bear")
metric_statements:
- context: datapoint
conditions:
- attributes["http.path"] == "/animal"
statements:
- set(metric.name, "bear")
log_statements:
- context: log
conditions:
- attributes["http.path"] == "/animal"
statements:
- set(body, "bear")
transform/ignore_errors:
error_mode: ignore
trace_statements:
- context: resource
statements:
- set(attributes["name"], "bear")
transform/bad_syntax_log:
log_statements:
- context: log
statements:
- set(body, "bear" where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
transform/bad_syntax_metric:
metric_statements:
- context: datapoint
statements:
- set(name, "bear" where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
transform/bad_syntax_trace:
trace_statements:
- context: span
statements:
- set(name, "bear" where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
transform/bad_syntax_multi_signal:
trace_statements:
- context: span
statements:
- set(name, "bear" where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
metric_statements:
- context: datapoint
statements:
- set(name, "bear" where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
log_statements:
- context: log
statements:
- set(body, "bear" where attributes["http.path"] == "/animal"
- keep_keys(attributes, ["http.method", "http.path"])
transform/unknown_function_log:
log_statements:
- context: log
statements:
- set(body, "bear") where attributes["http.path"] == "/animal"
- not_a_function(attributes, ["http.method", "http.path"])
transform/unknown_function_metric:
metric_statements:
- context: datapoint
statements:
- set(metric.name, "bear") where attributes["http.path"] == "/animal"
- not_a_function(attributes, ["http.method", "http.path"])
transform/unknown_function_trace:
trace_statements:
- context: span
statements:
- set(name, "bear") where attributes["http.path"] == "/animal"
- not_a_function(attributes, ["http.method", "http.path"])
transform/unknown_context:
trace_statements:
- context: test
statements:
- set(name, "bear") where attributes["http.path"] == "/animal"
transform/unknown_error_mode:
error_mode: test