Debian Codegraph @

otelconf/testdata/v0.3.yaml

raw
1 # kitchen-sink.yaml demonstrates all configurable surface area, including explanatory comments.
2 #
3 # It DOES NOT represent expected real world configuration, as it makes strange configuration
4 # choices in an effort to exercise the full surface area.
5 #
6 # Configuration values are set to their defaults when default values are defined.
7
8 # The file format version.
9 file_format: "0.3"
10
11 # Configure if the SDK is disabled or not. This is not required to be provided to ensure the SDK isn't disabled, the default value when this is not provided is for the SDK to be enabled.
12 disabled: false
13
14 # Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits.
15 attribute_limits:
16 # Configure max attribute value size.
17 attribute_value_length_limit: 4096
18 # Configure max attribute count.
19 attribute_count_limit: 128
20
21 # Configure logger provider.
22 logger_provider:
23 # Configure log record processors.
24 processors:
25 - # Configure a batch log record processor.
26 batch:
27 # Configure delay interval (in milliseconds) between two consecutive exports.
28 schedule_delay: 5000
29 # Configure maximum allowed time (in milliseconds) to export data.
30 export_timeout: 30000
31 # Configure maximum queue size.
32 max_queue_size: 2048
33 # Configure maximum batch size.
34 max_export_batch_size: 512
35 # Configure exporter.
36 exporter:
37 # Configure exporter to be OTLP.
38 otlp:
39 # Configure protocol.
40 protocol: http/protobuf
41 # Configure endpoint.
42 endpoint: http://localhost:4318/v1/logs
43 # Configure certificate.
44 certificate: /app/cert.pem
45 # Configure mTLS private client key.
46 client_key: /app/cert.pem
47 # Configure mTLS client certificate.
48 client_certificate: /app/cert.pem
49 # Configure headers. Entries have higher priority than entries from .headers_list.
50 headers:
51 - name: api-key
52 value: "1234"
53 # Configure headers. Entries have lower priority than entries from .headers.
54 # The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.
55 headers_list: "api-key=1234"
56 # Configure compression.
57 compression: gzip
58 # Configure max time (in milliseconds) to wait for each export.
59 timeout: 10000
60 # Configure client transport security for the exporter's connection when http/https is not specified for gRPC connections.
61 insecure: false
62 - # Configure a simple log record processor.
63 simple:
64 # Configure exporter.
65 exporter:
66 # Configure exporter to be console.
67 console: {}
68 # Configure log record limits. See also attribute_limits.
69 limits:
70 # Configure max attribute value size. Overrides .attribute_limits.attribute_value_length_limit.
71 attribute_value_length_limit: 4096
72 # Configure max attribute count. Overrides .attribute_limits.attribute_count_limit.
73 attribute_count_limit: 128
74
75 # Configure meter provider.
76 meter_provider:
77 # Configure metric readers.
78 readers:
79 - # Configure a pull based metric reader.
80 pull:
81 # Configure exporter.
82 exporter:
83 # Configure exporter to be prometheus.
84 prometheus:
85 # Configure host.
86 host: localhost
87 # Configure port.
88 port: 9464
89 # Configure Prometheus Exporter to produce metrics without a unit suffix or UNIT metadata.
90 without_units: false
91 # Configure Prometheus Exporter to produce metrics without a type suffix.
92 without_type_suffix: false
93 # Configure Prometheus Exporter to produce metrics without a scope info metric.
94 without_scope_info: false
95 # Configure Prometheus Exporter to add resource attributes as metrics attributes.
96 with_resource_constant_labels:
97 # Configure resource attributes to be included. If not set, no resource attributes are included.
98 # Attribute keys from resources are evaluated to match as follows:
99 # * If the value of the attribute key exactly matches.
100 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
101 included:
102 - "service*"
103 # Configure resource attributes to be excluded. Applies after .with_resource_constant_labels.included (i.e. excluded has higher priority than included).
104 # Attribute keys from resources are evaluated to match as follows:
105 # * If the value of the attribute key exactly matches.
106 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
107 excluded:
108 - "service.attr1"
109 # Configure metric producers.
110 producers:
111 - # Configure metric producer to be opencensus.
112 opencensus: {}
113 - # Configure a periodic metric reader.
114 periodic:
115 # Configure delay interval (in milliseconds) between start of two consecutive exports.
116 interval: 5000
117 # Configure maximum allowed time (in milliseconds) to export data.
118 timeout: 30000
119 # Configure exporter.
120 exporter:
121 # Configure exporter to be OTLP.
122 otlp:
123 # Configure protocol.
124 protocol: http/protobuf
125 # Configure endpoint.
126 endpoint: http://localhost:4318/v1/metrics
127 # Configure certificate.
128 certificate: /app/cert.pem
129 # Configure mTLS private client key.
130 client_key: /app/cert.pem
131 # Configure mTLS client certificate.
132 client_certificate: /app/cert.pem
133 # Configure headers. Entries have higher priority than entries from .headers_list.
134 headers:
135 - name: api-key
136 value: "1234"
137 # Configure headers. Entries have lower priority than entries from .headers.
138 # The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.
139 headers_list: "api-key=1234"
140 # Configure compression.
141 compression: gzip
142 # Configure max time (in milliseconds) to wait for each export.
143 timeout: 10000
144 # Configure client transport security for the exporter's connection when http/https is not specified for gRPC connections.
145 insecure: false
146 # Configure temporality preference.
147 temporality_preference: delta
148 # Configure default histogram aggregation.
149 default_histogram_aggregation: base2_exponential_bucket_histogram
150 # Configure metric producers.
151 producers:
152 - # Configure metric producer to be prometheus.
153 prometheus: {}
154 - # Configure a periodic metric reader.
155 periodic:
156 # Configure exporter.
157 exporter:
158 # Configure exporter to be console.
159 console: {}
160 # Configure views. Each view has a selector which determines the instrument(s) it applies to, and a configuration for the resulting stream(s).
161 views:
162 - # Configure view selector.
163 selector:
164 # Configure instrument name selection criteria.
165 instrument_name: my-instrument
166 # Configure instrument type selection criteria.
167 instrument_type: histogram
168 # Configure the instrument unit selection criteria.
169 unit: ms
170 # Configure meter name selection criteria.
171 meter_name: my-meter
172 # Configure meter version selection criteria.
173 meter_version: 1.0.0
174 # Configure meter schema url selection criteria.
175 meter_schema_url: https://opentelemetry.io/schemas/1.16.0
176 # Configure view stream.
177 stream:
178 # Configure metric name of the resulting stream(s).
179 name: new_instrument_name
180 # Configure metric description of the resulting stream(s).
181 description: new_description
182 # Configure aggregation of the resulting stream(s). Known values include: default, drop, explicit_bucket_histogram, base2_exponential_bucket_histogram, last_value, sum.
183 aggregation:
184 # Configure aggregation to be explicit_bucket_histogram.
185 explicit_bucket_histogram:
186 # Configure bucket boundaries.
187 boundaries:
188 [
189 0.0,
190 5.0,
191 10.0,
192 25.0,
193 50.0,
194 75.0,
195 100.0,
196 250.0,
197 500.0,
198 750.0,
199 1000.0,
200 2500.0,
201 5000.0,
202 7500.0,
203 10000.0
204 ]
205 # Configure record min and max.
206 record_min_max: true
207 # Configure attribute keys retained in the resulting stream(s).
208 attribute_keys:
209 # Configure list of attribute keys to include in the resulting stream(s). All other attributes are dropped. If not set, stream attributes are not configured.
210 included:
211 - key1
212 - key2
213 # Configure list of attribute keys to exclude from the resulting stream(s). Applies after .attribute_keys.included (i.e. excluded has higher priority than included).
214 excluded:
215 - key3
216
217 # Configure text map context propagators.
218 propagator:
219 # Configure the set of propagators to include in the composite text map propagator.
220 composite: [ tracecontext, baggage, b3, b3multi, jaeger, xray, ottrace ]
221
222 # Configure tracer provider.
223 tracer_provider:
224 # Configure span processors.
225 processors:
226 - # Configure a batch span processor.
227 batch:
228 # Configure delay interval (in milliseconds) between two consecutive exports.
229 schedule_delay: 5000
230 # Configure maximum allowed time (in milliseconds) to export data.
231 export_timeout: 30000
232 # Configure maximum queue size.
233 max_queue_size: 2048
234 # Configure maximum batch size.
235 max_export_batch_size: 512
236 # Configure exporter.
237 exporter:
238 # Configure exporter to be OTLP.
239 otlp:
240 # Configure protocol.
241 protocol: http/protobuf
242 # Configure endpoint.
243 endpoint: http://localhost:4318/v1/traces
244 # Configure certificate.
245 certificate: /app/cert.pem
246 # Configure mTLS private client key.
247 client_key: /app/cert.pem
248 # Configure mTLS client certificate.
249 client_certificate: /app/cert.pem
250 # Configure headers. Entries have higher priority than entries from .headers_list.
251 headers:
252 - name: api-key
253 value: "1234"
254 # Configure headers. Entries have lower priority than entries from .headers.
255 # The value is a list of comma separated key-value pairs matching the format of OTEL_EXPORTER_OTLP_HEADERS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options for details.
256 headers_list: "api-key=1234"
257 # Configure compression.
258 compression: gzip
259 # Configure max time (in milliseconds) to wait for each export.
260 timeout: 10000
261 # Configure client transport security for the exporter's connection when http/https is not specified for gRPC connections.
262 insecure: false
263 - # Configure a batch span processor.
264 batch:
265 # Configure exporter.
266 exporter:
267 # Configure exporter to be zipkin.
268 zipkin:
269 # Configure endpoint.
270 endpoint: http://localhost:9411/api/v2/spans
271 # Configure max time (in milliseconds) to wait for each export.
272 timeout: 10000
273 - # Configure a simple span processor.
274 simple:
275 # Configure exporter.
276 exporter:
277 # Configure exporter to be console.
278 console: {}
279 # Configure span limits. See also attribute_limits.
280 limits:
281 # Configure max attribute value size. Overrides .attribute_limits.attribute_value_length_limit.
282 attribute_value_length_limit: 4096
283 # Configure max attribute count. Overrides .attribute_limits.attribute_count_limit.
284 attribute_count_limit: 128
285 # Configure max span event count.
286 event_count_limit: 128
287 # Configure max span link count.
288 link_count_limit: 128
289 # Configure max attributes per span event.
290 event_attribute_count_limit: 128
291 # Configure max attributes per span link.
292 link_attribute_count_limit: 128
293 # If omitted, parent based sampler with a root of always_on is used.
294 sampler:
295 # Configure sampler to be parent_based.
296 parent_based:
297 # Configure root sampler.
298 # If omitted or null, always_on is used.
299 root:
300 # Configure sampler to be trace_id_ratio_based.
301 trace_id_ratio_based:
302 # Configure trace_id_ratio.
303 # If omitted or null, 1.0 is used.
304 ratio: 0.0001
305 # Configure remote_parent_sampled sampler.
306 # If omitted or null, always_on is used.
307 remote_parent_sampled:
308 # Configure sampler to be always_on.
309 always_on: {}
310 # Configure remote_parent_not_sampled sampler.
311 # If omitted or null, always_off is used.
312 remote_parent_not_sampled:
313 # Configure sampler to be always_off.
314 always_off: {}
315 # Configure local_parent_sampled sampler.
316 # If omitted or null, always_on is used.
317 local_parent_sampled:
318 # Configure sampler to be always_on.
319 always_on: {}
320 # Configure local_parent_not_sampled sampler.
321 # If omitted or null, always_off is used.
322 local_parent_not_sampled:
323 # Configure sampler to be always_off.
324 always_off: {}
325
326 # Configure resource for all signals.
327 resource:
328 # Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.
329 # Entries must contain .name nand .value, and may optionally include .type, which defaults ot "string" if not set. The value must match the type. Values for .type include: string, bool, int, double, string_array, bool_array, int_array, double_array.
330 attributes:
331 - name: service.name
332 value: unknown_service
333 - name: string_key
334 value: value
335 type: string
336 - name: bool_key
337 value: true
338 type: bool
339 - name: int_key
340 value: 1
341 type: int
342 - name: double_key
343 value: 1.1
344 type: double
345 - name: string_array_key
346 value: [ "value1", "value2" ]
347 type: string_array
348 - name: bool_array_key
349 value: [ true, false ]
350 type: bool_array
351 - name: int_array_key
352 value: [ 1, 2 ]
353 type: int_array
354 - name: double_array_key
355 value: [ 1.1, 2.2 ]
356 type: double_array
357 # Configure resource attributes. Entries have lower priority than entries from .resource.attributes.
358 # The value is a list of comma separated key-value pairs matching the format of OTEL_RESOURCE_ATTRIBUTES. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration for details.
359 attributes_list: "service.namespace=my-namespace,service.version=1.0.0"
360 # Configure resource detectors.
361 detectors:
362 # Configure attributes provided by resource detectors.
363 attributes:
364 # Configure list of attribute key patterns to include from resource detectors. If not set, all attributes are included.
365 # Attribute keys from resource detectors are evaluated to match as follows:
366 # * If the value of the attribute key exactly matches.
367 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
368 included:
369 - process.*
370 # Configure list of attribute key patterns to exclude from resource detectors. Applies after .resource.detectors.attributes.included (i.e. excluded has higher priority than included).
371 # Attribute keys from resource detectors are evaluated to match as follows:
372 # * If the value of the attribute key exactly matches.
373 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
374 excluded:
375 - process.command_args
376 # Configure resource schema URL.
377 schema_url: https://opentelemetry.io/schemas/1.16.0
378
379 # Configure instrumentation.
380 instrumentation:
381 # Configure general SemConv options that may apply to multiple languages and instrumentations.
382 # Instrumenation may merge general config options with the language specific configuration at .instrumentation.<language>.
383 general:
384 # Configure instrumentations following the peer semantic conventions.
385 # See peer semantic conventions: https://opentelemetry.io/docs/specs/semconv/attributes-registry/peer/
386 peer:
387 # Configure the service mapping for instrumentations following peer.service semantic conventions.
388 # Each entry is a key value pair where "peer" defines the IP address and "service" defines the corresponding logical name of the service.
389 # See peer.service semantic conventions: https://opentelemetry.io/docs/specs/semconv/general/attributes/#general-remote-service-attributes
390 service_mapping:
391 - peer: 1.2.3.4
392 service: FooService
393 - peer: 2.3.4.5
394 service: BarService
395 # Configure instrumentations following the http semantic conventions.
396 # See http semantic conventions: https://opentelemetry.io/docs/specs/semconv/http/
397 http:
398 # Configure instrumentations following the http client semantic conventions.
399 client:
400 # Configure headers to capture for outbound http requests.
401 request_captured_headers:
402 - Content-Type
403 - Accept
404 # Configure headers to capture for outbound http responses.
405 response_captured_headers:
406 - Content-Type
407 - Content-Encoding
408 # Configure instrumentations following the http server semantic conventions.
409 server:
410 # Configure headers to capture for inbound http requests.
411 request_captured_headers:
412 - Content-Type
413 - Accept
414 # Configure headers to capture for outbound http responses.
415 response_captured_headers:
416 - Content-Type
417 - Content-Encoding
418 # Configure C++ language-specific instrumentation libraries.
419 cpp:
420 # Configure the instrumentation corresponding to key "example".
421 example:
422 property: "value"
423 # Configure .NET language-specific instrumentation libraries.
424 dotnet:
425 # Configure the instrumentation corresponding to key "example".
426 example:
427 property: "value"
428 # Configure Erlang language-specific instrumentation libraries.
429 erlang:
430 # Configure the instrumentation corresponding to key "example".
431 example:
432 property: "value"
433 # Configure Go language-specific instrumentation libraries.
434 go:
435 # Configure the instrumentation corresponding to key "example".
436 example:
437 property: "value"
438 # Configure Java language-specific instrumentation libraries.
439 java:
440 # Configure the instrumentation corresponding to key "example".
441 example:
442 property: "value"
443 # Configure JavaScript language-specific instrumentation libraries.
444 js:
445 # Configure the instrumentation corresponding to key "example".
446 example:
447 property: "value"
448 # Configure PHP language-specific instrumentation libraries.
449 php:
450 # Configure the instrumentation corresponding to key "example".
451 example:
452 property: "value"
453 # Configure Python language-specific instrumentation libraries.
454 python:
455 # Configure the instrumentation corresponding to key "example".
456 example:
457 property: "value"
458 # Configure Ruby language-specific instrumentation libraries.
459 ruby:
460 # Configure the instrumentation corresponding to key "example".
461 example:
462 property: "value"
463 # Configure Rust language-specific instrumentation libraries.
464 rust:
465 # Configure the instrumentation corresponding to key "example".
466 example:
467 property: "value"
468 # Configure Swift language-specific instrumentation libraries.
469 swift:
470 # Configure the instrumentation corresponding to key "example".
471 example:
472 property: "value"