Debian Codegraph @

otelconf/testdata/v1.0.0.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 # The yaml format is documented at
10 # https://github.com/open-telemetry/opentelemetry-configuration/tree/main/schema
11 file_format: "1.0-rc.2"
12 # Configure if the SDK is disabled or not.
13 # If omitted or null, false is used.
14 disabled: false
15 # Configure the log level of the internal logger used by the SDK.
16 # If omitted, info is used.
17 log_level: info
18 # Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits.
19 attribute_limits:
20 # Configure max attribute value size.
21 # Value must be non-negative.
22 # If omitted or null, there is no limit.
23 attribute_value_length_limit: 4096
24 # Configure max attribute count.
25 # Value must be non-negative.
26 # If omitted or null, 128 is used.
27 attribute_count_limit: 128
28 # Configure logger provider.
29 # If omitted, a noop logger provider is used.
30 logger_provider:
31 # Configure log record processors.
32 processors:
33 - # Configure a batch log record processor.
34 batch:
35 # Configure delay interval (in milliseconds) between two consecutive exports.
36 # Value must be non-negative.
37 # If omitted or null, 1000 is used.
38 schedule_delay: 5000
39 # Configure maximum allowed time (in milliseconds) to export data.
40 # Value must be non-negative. A value of 0 indicates no limit (infinity).
41 # If omitted or null, 30000 is used.
42 export_timeout: 30000
43 # Configure maximum queue size. Value must be positive.
44 # If omitted or null, 2048 is used.
45 max_queue_size: 2048
46 # Configure maximum batch size. Value must be positive.
47 # If omitted or null, 512 is used.
48 max_export_batch_size: 512
49 # Configure exporter.
50 exporter:
51 # Configure exporter to be OTLP with HTTP transport.
52 otlp_http:
53 endpoint: http://localhost:4318/v1/logs
54 tls:
55 # Configure certificate used to verify a server's TLS credentials.
56 # Absolute path to certificate file in PEM format.
57 # If omitted or null, system default certificate verification is used for secure connections.
58 ca_file: testdata/ca.crt
59 # Configure mTLS private client key.
60 # Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
61 # If omitted or null, mTLS is not used.
62 key_file: testdata/client.key
63 # Configure mTLS client certificate.
64 # Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
65 # If omitted or null, mTLS is not used.
66 cert_file: testdata/client.crt
67 # Configure headers. Entries have higher priority than entries from .headers_list.
68 # If an entry's .value is null, the entry is ignored.
69 headers:
70 - name: api-key
71 value: "1234"
72 # Configure headers. Entries have lower priority than entries from .headers.
73 # 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.
74 # If omitted or null, no headers are added.
75 headers_list: "api-key=1234"
76 # Configure compression.
77 # Values include: gzip, none. Implementations may support other compression algorithms.
78 # If omitted or null, none is used.
79 compression: gzip
80 # Configure max time (in milliseconds) to wait for each export.
81 # Value must be non-negative. A value of 0 indicates no limit (infinity).
82 # If omitted or null, 10000 is used.
83 timeout: 10000
84 # Configure the encoding used for messages.
85 # Values include: protobuf, json. Implementations may not support json.
86 # If omitted or null, protobuf is used.
87 encoding: protobuf
88 - # Configure a batch log record processor.
89 batch:
90 # Configure exporter.
91 exporter:
92 # Configure exporter to be OTLP with gRPC transport.
93 otlp_grpc:
94 # Configure endpoint.
95 # If omitted or null, http://localhost:4317 is used.
96 endpoint: http://localhost:4317
97 tls:
98 # Configure certificate used to verify a server's TLS credentials.
99 # Absolute path to certificate file in PEM format.
100 # If omitted or null, system default certificate verification is used for secure connections.
101 ca_file: testdata/ca.crt
102 # Configure mTLS private client key.
103 # Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
104 # If omitted or null, mTLS is not used.
105 key_file: testdata/client.key
106 # Configure mTLS client certificate.
107 # Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
108 # If omitted or null, mTLS is not used.
109 cert_file: testdata/client.crt
110 # Configure client transport security for the exporter's connection.
111 # Only applicable when .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure.
112 # If omitted or null, false is used.
113 insecure: false
114 # Configure headers. Entries have higher priority than entries from .headers_list.
115 # If an entry's .value is null, the entry is ignored.
116 headers:
117 - name: api-key
118 value: "1234"
119 # Configure headers. Entries have lower priority than entries from .headers.
120 # 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.
121 # If omitted or null, no headers are added.
122 headers_list: "api-key=1234"
123 # Configure compression.
124 # Values include: gzip, none. Implementations may support other compression algorithms.
125 # If omitted or null, none is used.
126 compression: gzip
127 # Configure max time (in milliseconds) to wait for each export.
128 # Value must be non-negative. A value of 0 indicates no limit (infinity).
129 # If omitted or null, 10000 is used.
130 timeout: 10000
131 - # Configure a batch log record processor.
132 batch:
133 # Configure exporter.
134 exporter:
135 # Configure exporter to be OTLP with file transport.
136 # This type is in development and subject to breaking changes in minor versions.
137 otlp_file/development:
138 # Configure output stream.
139 # Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
140 # If omitted or null, stdout is used.
141 output_stream: file:///var/log/logs.jsonl
142 - # Configure a batch log record processor.
143 batch:
144 # Configure exporter.
145 exporter:
146 # Configure exporter to be OTLP with file transport.
147 # This type is in development and subject to breaking changes in minor versions.
148 otlp_file/development:
149 # Configure output stream.
150 # Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
151 # If omitted or null, stdout is used.
152 output_stream: stdout
153 - # Configure a simple log record processor.
154 simple:
155 # Configure exporter.
156 exporter:
157 # Configure exporter to be console.
158 console:
159 # Configure log record limits. See also attribute_limits.
160 limits:
161 # Configure max attribute value size. Overrides .attribute_limits.attribute_value_length_limit.
162 # Value must be non-negative.
163 # If omitted or null, there is no limit.
164 attribute_value_length_limit: 4096
165 # Configure max attribute count. Overrides .attribute_limits.attribute_count_limit.
166 # Value must be non-negative.
167 # If omitted or null, 128 is used.
168 attribute_count_limit: 128
169 # Configure loggers.
170 # This type is in development and subject to breaking changes in minor versions.
171 logger_configurator/development:
172 # Configure the default logger config used there is no matching entry in .logger_configurator/development.loggers.
173 default_config:
174 # Configure if the logger is enabled or not.
175 disabled: true
176 # Configure loggers.
177 loggers:
178 - # Configure logger names to match, evaluated as follows:
179 #
180 # * If the logger name exactly matches.
181 # * If the logger name matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
182 name: io.opentelemetry.contrib.*
183 # The logger config.
184 config:
185 # Configure if the logger is enabled or not.
186 disabled: false
187 # Configure meter provider.
188 # If omitted, a noop meter provider is used.
189 meter_provider:
190 # Configure metric readers.
191 readers:
192 - # Configure a pull based metric reader.
193 pull:
194 # Configure exporter.
195 exporter:
196 # Configure exporter to be prometheus.
197 # This type is in development and subject to breaking changes in minor versions.
198 prometheus/development:
199 # Configure host.
200 # If omitted or null, localhost is used.
201 host: localhost
202 # Configure port.
203 # If omitted or null, 9464 is used.
204 port: 9464
205 # Configure Prometheus Exporter to produce metrics without a scope info metric.
206 # If omitted or null, false is used.
207 without_scope_info: false
208 # Configure Prometheus Exporter to add resource attributes as metrics attributes.
209 with_resource_constant_labels:
210 # Configure resource attributes to be included.
211 # Attribute keys from resources are evaluated to match as follows:
212 # * If the value of the attribute key exactly matches.
213 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
214 # If omitted, no resource attributes are included.
215 included:
216 - "service*"
217 # Configure resource attributes to be excluded. Applies after .with_resource_constant_labels.included (i.e. excluded has higher priority than included).
218 # Attribute keys from resources are evaluated to match as follows:
219 # * If the value of the attribute key exactly matches.
220 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
221 # If omitted, .included resource attributes are included.
222 excluded:
223 - "service.attr1"
224 # Configure how Prometheus metrics are exposed. Values include:
225 #
226 # * underscore_escaping_with_suffixes, the default. This fully escapes metric names for classic Prometheus metric name compatibility, and includes appending type and unit suffixes.
227 # * underscore_escaping_without_suffixes, metric names will continue to escape special characters to _, but suffixes won't be attached.
228 # * no_utf8_escaping_with_suffixes will disable changing special characters to _. Special suffixes like units and _total for counters will be attached.
229 # * no_translation. This strategy bypasses all metric and label name translation, passing them through unaltered.
230 #
231 # If omitted or null, underscore_escaping_with_suffixes is used.
232 translation_strategy: underscore_escaping_with_suffixes
233 # Configure metric producers.
234 producers:
235 - # Configure metric producer to be opencensus.
236 opencensus:
237 # Configure cardinality limits.
238 cardinality_limits:
239 # Configure default cardinality limit for all instrument types.
240 # Instrument-specific cardinality limits take priority.
241 # If omitted or null, 2000 is used.
242 default: 2000
243 # Configure default cardinality limit for counter instruments.
244 # If omitted or null, the value from .default is used.
245 counter: 2000
246 # Configure default cardinality limit for gauge instruments.
247 # If omitted or null, the value from .default is used.
248 gauge: 2000
249 # Configure default cardinality limit for histogram instruments.
250 # If omitted or null, the value from .default is used.
251 histogram: 2000
252 # Configure default cardinality limit for observable_counter instruments.
253 # If omitted or null, the value from .default is used.
254 observable_counter: 2000
255 # Configure default cardinality limit for observable_gauge instruments.
256 # If omitted or null, the value from .default is used.
257 observable_gauge: 2000
258 # Configure default cardinality limit for observable_up_down_counter instruments.
259 # If omitted or null, the value from .default is used.
260 observable_up_down_counter: 2000
261 # Configure default cardinality limit for up_down_counter instruments.
262 # If omitted or null, the value from .default is used.
263 up_down_counter: 2000
264 - # Configure a periodic metric reader.
265 periodic:
266 # Configure delay interval (in milliseconds) between start of two consecutive exports.
267 # Value must be non-negative.
268 # If omitted or null, 60000 is used.
269 interval: 60000
270 # Configure maximum allowed time (in milliseconds) to export data.
271 # Value must be non-negative. A value of 0 indicates no limit (infinity).
272 # If omitted or null, 30000 is used.
273 timeout: 30000
274 # Configure exporter.
275 exporter:
276 # Configure exporter to be OTLP with HTTP transport.
277 otlp_http:
278 # Configure endpoint, including the metric specific path.
279 # If omitted or null, http://localhost:4318/v1/metrics is used.
280 endpoint: http://localhost:4318/v1/metrics
281 tls:
282 # Configure certificate used to verify a server's TLS credentials.
283 # Absolute path to certificate file in PEM format.
284 # If omitted or null, system default certificate verification is used for secure connections.
285 ca_file: testdata/ca.crt
286 # Configure mTLS private client key.
287 # Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
288 # If omitted or null, mTLS is not used.
289 key_file: testdata/client.key
290 # Configure mTLS client certificate.
291 # Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
292 # If omitted or null, mTLS is not used.
293 cert_file: testdata/client.crt
294 # Configure headers. Entries have higher priority than entries from .headers_list.
295 # If an entry's .value is null, the entry is ignored.
296 headers:
297 - name: api-key
298 value: "1234"
299 # Configure headers. Entries have lower priority than entries from .headers.
300 # 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.
301 # If omitted or null, no headers are added.
302 headers_list: "api-key=1234"
303 # Configure compression.
304 # Values include: gzip, none. Implementations may support other compression algorithms.
305 # If omitted or null, none is used.
306 compression: gzip
307 # Configure max time (in milliseconds) to wait for each export.
308 # Value must be non-negative. A value of 0 indicates no limit (infinity).
309 # If omitted or null, 10000 is used.
310 timeout: 10000
311 # Configure the encoding used for messages.
312 # Values include: protobuf, json. Implementations may not support json.
313 # If omitted or null, protobuf is used.
314 encoding: protobuf
315 # Configure temporality preference.
316 # Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
317 # If omitted or null, cumulative is used.
318 temporality_preference: delta
319 # Configure default histogram aggregation.
320 # Values include: explicit_bucket_histogram, base2_exponential_bucket_histogram. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
321 # If omitted or null, explicit_bucket_histogram is used.
322 default_histogram_aggregation: base2_exponential_bucket_histogram
323 # Configure metric producers.
324 producers:
325 - # Configure metric producer to be prometheus.
326 prometheus:
327 # Configure cardinality limits.
328 cardinality_limits:
329 # Configure default cardinality limit for all instrument types.
330 # Instrument-specific cardinality limits take priority.
331 # If omitted or null, 2000 is used.
332 default: 2000
333 # Configure default cardinality limit for counter instruments.
334 # If omitted or null, the value from .default is used.
335 counter: 2000
336 # Configure default cardinality limit for gauge instruments.
337 # If omitted or null, the value from .default is used.
338 gauge: 2000
339 # Configure default cardinality limit for histogram instruments.
340 # If omitted or null, the value from .default is used.
341 histogram: 2000
342 # Configure default cardinality limit for observable_counter instruments.
343 # If omitted or null, the value from .default is used.
344 observable_counter: 2000
345 # Configure default cardinality limit for observable_gauge instruments.
346 # If omitted or null, the value from .default is used.
347 observable_gauge: 2000
348 # Configure default cardinality limit for observable_up_down_counter instruments.
349 # If omitted or null, the value from .default is used.
350 observable_up_down_counter: 2000
351 # Configure default cardinality limit for up_down_counter instruments.
352 # If omitted or null, the value from .default is used.
353 up_down_counter: 2000
354 - # Configure a periodic metric reader.
355 periodic:
356 # Configure exporter.
357 exporter:
358 # Configure exporter to be OTLP with gRPC transport.
359 otlp_grpc:
360 # Configure endpoint.
361 # If omitted or null, http://localhost:4317 is used.
362 endpoint: http://localhost:4317
363 tls:
364 # Configure certificate used to verify a server's TLS credentials.
365 # Absolute path to certificate file in PEM format.
366 # If omitted or null, system default certificate verification is used for secure connections.
367 ca_file: testdata/ca.crt
368 # Configure mTLS private client key.
369 # Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
370 # If omitted or null, mTLS is not used.
371 key_file: testdata/client.key
372 # Configure mTLS client certificate.
373 # Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
374 # If omitted or null, mTLS is not used.
375 cert_file: testdata/client.crt
376 # Configure client transport security for the exporter's connection.
377 # Only applicable when .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure.
378 # If omitted or null, false is used.
379 insecure: false
380 # Configure headers. Entries have higher priority than entries from .headers_list.
381 # If an entry's .value is null, the entry is ignored.
382 headers:
383 - name: api-key
384 value: "1234"
385 # Configure headers. Entries have lower priority than entries from .headers.
386 # 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.
387 # If omitted or null, no headers are added.
388 headers_list: "api-key=1234"
389 # Configure compression.
390 # Values include: gzip, none. Implementations may support other compression algorithms.
391 # If omitted or null, none is used.
392 compression: gzip
393 # Configure max time (in milliseconds) to wait for each export.
394 # Value must be non-negative. A value of 0 indicates no limit (infinity).
395 # If omitted or null, 10000 is used.
396 timeout: 10000
397 # Configure temporality preference.
398 # Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
399 # If omitted or null, cumulative is used.
400 temporality_preference: delta
401 # Configure default histogram aggregation.
402 # Values include: explicit_bucket_histogram, base2_exponential_bucket_histogram. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
403 # If omitted or null, explicit_bucket_histogram is used.
404 default_histogram_aggregation: base2_exponential_bucket_histogram
405 - # Configure a periodic metric reader.
406 periodic:
407 # Configure exporter.
408 exporter:
409 # Configure exporter to be OTLP with file transport.
410 # This type is in development and subject to breaking changes in minor versions.
411 otlp_file/development:
412 # Configure output stream.
413 # Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
414 # If omitted or null, stdout is used.
415 output_stream: file:///var/log/metrics.jsonl
416 # Configure temporality preference. Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
417 # If omitted or null, cumulative is used.
418 temporality_preference: delta
419 # Configure default histogram aggregation. Values include: explicit_bucket_histogram, base2_exponential_bucket_histogram. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
420 # If omitted or null, explicit_bucket_histogram is used.
421 default_histogram_aggregation: base2_exponential_bucket_histogram
422 - # Configure a periodic metric reader.
423 periodic:
424 # Configure exporter.
425 exporter:
426 # Configure exporter to be OTLP with file transport.
427 # This type is in development and subject to breaking changes in minor versions.
428 otlp_file/development:
429 # Configure output stream.
430 # Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
431 # If omitted or null, stdout is used.
432 output_stream: stdout
433 # Configure temporality preference. Values include: cumulative, delta, low_memory. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
434 # If omitted or null, cumulative is used.
435 temporality_preference: delta
436 # Configure default histogram aggregation. Values include: explicit_bucket_histogram, base2_exponential_bucket_histogram. For behavior of values, see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/otlp.md.
437 # If omitted or null, explicit_bucket_histogram is used.
438 default_histogram_aggregation: base2_exponential_bucket_histogram
439 - # Configure a periodic metric reader.
440 periodic:
441 # Configure exporter.
442 exporter:
443 # Configure exporter to be console.
444 console:
445 # Configure views.
446 # Each view has a selector which determines the instrument(s) it applies to, and a configuration for the resulting stream(s).
447 views:
448 - # Configure view selector.
449 # Selection criteria is additive as described in https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#instrument-selection-criteria.
450 selector:
451 # Configure instrument name selection criteria.
452 # If omitted or null, all instrument names match.
453 instrument_name: my-instrument
454 # Configure instrument type selection criteria.
455 # Values include: counter, gauge, histogram, observable_counter, observable_gauge, observable_up_down_counter, up_down_counter.
456 # If omitted or null, all instrument types match.
457 instrument_type: histogram
458 # Configure the instrument unit selection criteria.
459 # If omitted or null, all instrument units match.
460 unit: ms
461 # Configure meter name selection criteria.
462 # If omitted or null, all meter names match.
463 meter_name: my-meter
464 # Configure meter version selection criteria.
465 # If omitted or null, all meter versions match.
466 meter_version: 1.0.0
467 # Configure meter schema url selection criteria.
468 # If omitted or null, all meter schema URLs match.
469 meter_schema_url: https://opentelemetry.io/schemas/1.16.0
470 # Configure view stream.
471 stream:
472 # Configure metric name of the resulting stream(s).
473 # If omitted or null, the instrument's original name is used.
474 name: new_instrument_name
475 # Configure metric description of the resulting stream(s).
476 # If omitted or null, the instrument's origin description is used.
477 description: new_description
478 # Configure aggregation of the resulting stream(s).
479 # Values include: default, drop, explicit_bucket_histogram, base2_exponential_bucket_histogram, last_value, sum. For behavior of values see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#aggregation.
480 # If omitted, default is used.
481 aggregation:
482 # Configure aggregation to be explicit_bucket_histogram.
483 explicit_bucket_histogram:
484 # Configure bucket boundaries.
485 # If omitted, [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000] is used.
486 boundaries:
487 [
488 0.0,
489 5.0,
490 10.0,
491 25.0,
492 50.0,
493 75.0,
494 100.0,
495 250.0,
496 500.0,
497 750.0,
498 1000.0,
499 2500.0,
500 5000.0,
501 7500.0,
502 10000.0
503 ]
504 # Configure record min and max.
505 # If omitted or null, true is used.
506 record_min_max: true
507 # Configure the aggregation cardinality limit.
508 # If omitted or null, the metric reader's default cardinality limit is used.
509 aggregation_cardinality_limit: 2000
510 # Configure attribute keys retained in the resulting stream(s).
511 attribute_keys:
512 # Configure list of attribute keys to include in the resulting stream(s). All other attributes are dropped.
513 # If omitted, all attributes are included.
514 included:
515 - key1
516 - key2
517 # 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).
518 # If omitted, .attribute_keys.included are included.
519 excluded:
520 - key3
521 # Configure the exemplar filter.
522 # Values include: trace_based, always_on, always_off. For behavior of values see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#metrics-sdk-configuration.
523 # If omitted or null, trace_based is used.
524 exemplar_filter: trace_based
525 # Configure meters.
526 # This type is in development and subject to breaking changes in minor versions.
527 meter_configurator/development:
528 # Configure the default meter config used there is no matching entry in .meter_configurator/development.meters.
529 default_config:
530 # Configure if the meter is enabled or not.
531 disabled: true
532 # Configure meters.
533 meters:
534 - # Configure meter names to match, evaluated as follows:
535 #
536 # * If the meter name exactly matches.
537 # * If the meter name matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
538 name: io.opentelemetry.contrib.*
539 # The meter config.
540 config:
541 # Configure if the meter is enabled or not.
542 disabled: false
543 # Configure text map context propagators.
544 # If omitted, a noop propagator is used.
545 propagator:
546 # Configure the propagators in the composite text map propagator. Entries from .composite_list are appended to the list here with duplicates filtered out.
547 # Built-in propagator keys include: tracecontext, baggage, b3, b3multi, jaeger, ottrace. Known third party keys include: xray.
548 # If the resolved list of propagators (from .composite and .composite_list) is empty, a noop propagator is used.
549 composite:
550 - # Include the w3c trace context propagator.
551 tracecontext:
552 - # Include the w3c baggage propagator.
553 baggage:
554 - # Include the zipkin b3 propagator.
555 b3:
556 - # Include the zipkin b3 multi propagator.
557 b3multi:
558 - # Include the jaeger propagator.
559 jaeger:
560 - # Include the opentracing propagator.
561 ottrace:
562 # Configure the propagators in the composite text map propagator. Entries are appended to .composite with duplicates filtered out.
563 # The value is a comma separated list of propagator identifiers matching the format of OTEL_PROPAGATORS. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration for details.
564 # Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi, jaeger, ottrace. Known third party identifiers include: xray.
565 # If the resolved list of propagators (from .composite and .composite_list) is empty, a noop propagator is used.
566 composite_list: "tracecontext,baggage,b3,b3multi,jaeger,ottrace,xray"
567 # Configure tracer provider.
568 # If omitted, a noop tracer provider is used.
569 tracer_provider:
570 # Configure span processors.
571 processors:
572 - # Configure a batch span processor.
573 batch:
574 # Configure delay interval (in milliseconds) between two consecutive exports.
575 # Value must be non-negative.
576 # If omitted or null, 5000 is used.
577 schedule_delay: 5000
578 # Configure maximum allowed time (in milliseconds) to export data.
579 # Value must be non-negative. A value of 0 indicates no limit (infinity).
580 # If omitted or null, 30000 is used.
581 export_timeout: 30000
582 # Configure maximum queue size. Value must be positive.
583 # If omitted or null, 2048 is used.
584 max_queue_size: 2048
585 # Configure maximum batch size. Value must be positive.
586 # If omitted or null, 512 is used.
587 max_export_batch_size: 512
588 # Configure exporter.
589 exporter:
590 # Configure exporter to be OTLP with HTTP transport.
591 otlp_http:
592 # Configure endpoint, including the trace specific path.
593 # If omitted or null, http://localhost:4318/v1/traces is used.
594 endpoint: http://localhost:4318/v1/traces
595 tls:
596 # Configure certificate used to verify a server's TLS credentials.
597 # Absolute path to certificate file in PEM format.
598 # If omitted or null, system default certificate verification is used for secure connections.
599 ca_file: testdata/ca.crt
600 # Configure mTLS private client key.
601 # Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
602 # If omitted or null, mTLS is not used.
603 key_file: testdata/client.key
604 # Configure mTLS client certificate.
605 # Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
606 # If omitted or null, mTLS is not used.
607 cert_file: testdata/client.crt
608 # Configure headers. Entries have higher priority than entries from .headers_list.
609 # If an entry's .value is null, the entry is ignored.
610 headers:
611 - name: api-key
612 value: "1234"
613 # Configure headers. Entries have lower priority than entries from .headers.
614 # 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.
615 # If omitted or null, no headers are added.
616 headers_list: "api-key=1234"
617 # Configure compression.
618 # Values include: gzip, none. Implementations may support other compression algorithms.
619 # If omitted or null, none is used.
620 compression: gzip
621 # Configure max time (in milliseconds) to wait for each export.
622 # Value must be non-negative. A value of 0 indicates no limit (infinity).
623 # If omitted or null, 10000 is used.
624 timeout: 10000
625 # Configure the encoding used for messages.
626 # Values include: protobuf, json. Implementations may not support json.
627 # If omitted or null, protobuf is used.
628 encoding: protobuf
629 - # Configure a batch span processor.
630 batch:
631 # Configure exporter.
632 exporter:
633 # Configure exporter to be OTLP with gRPC transport.
634 otlp_grpc:
635 # Configure endpoint.
636 # If omitted or null, http://localhost:4317 is used.
637 endpoint: http://localhost:4317
638 tls:
639 # Configure certificate used to verify a server's TLS credentials.
640 # Absolute path to certificate file in PEM format.
641 # If omitted or null, system default certificate verification is used for secure connections.
642 ca_file: testdata/ca.crt
643 # Configure mTLS private client key.
644 # Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
645 # If omitted or null, mTLS is not used.
646 key_file: testdata/client.key
647 # Configure mTLS client certificate.
648 # Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
649 # If omitted or null, mTLS is not used.
650 cert_file: testdata/client.crt
651 # Configure client transport security for the exporter's connection.
652 # Only applicable when .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure.
653 # If omitted or null, false is used.
654 insecure: false
655 # Configure headers. Entries have higher priority than entries from .headers_list.
656 # If an entry's .value is null, the entry is ignored.
657 headers:
658 - name: api-key
659 value: "1234"
660 # Configure headers. Entries have lower priority than entries from .headers.
661 # 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.
662 # If omitted or null, no headers are added.
663 headers_list: "api-key=1234"
664 # Configure compression.
665 # Values include: gzip, none. Implementations may support other compression algorithms.
666 # If omitted or null, none is used.
667 compression: gzip
668 # Configure max time (in milliseconds) to wait for each export.
669 # Value must be non-negative. A value of 0 indicates no limit (infinity).
670 # If omitted or null, 10000 is used.
671 timeout: 10000
672 - # Configure a batch span processor.
673 batch:
674 # Configure exporter.
675 exporter:
676 # Configure exporter to be OTLP with file transport.
677 # This type is in development and subject to breaking changes in minor versions.
678 otlp_file/development:
679 # Configure output stream.
680 # Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
681 # If omitted or null, stdout is used.
682 output_stream: file:///var/log/traces.jsonl
683 - # Configure a batch span processor.
684 batch:
685 # Configure exporter.
686 exporter:
687 # Configure exporter to be OTLP with file transport.
688 # This type is in development and subject to breaking changes in minor versions.
689 otlp_file/development:
690 # Configure output stream.
691 # Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
692 # If omitted or null, stdout is used.
693 output_stream: stdout
694 - # Configure a simple span processor.
695 simple:
696 # Configure exporter.
697 exporter:
698 # Configure exporter to be console.
699 console:
700 # Configure span limits. See also attribute_limits.
701 limits:
702 # Configure max attribute value size. Overrides .attribute_limits.attribute_value_length_limit.
703 # Value must be non-negative.
704 # If omitted or null, there is no limit.
705 attribute_value_length_limit: 4096
706 # Configure max attribute count. Overrides .attribute_limits.attribute_count_limit.
707 # Value must be non-negative.
708 # If omitted or null, 128 is used.
709 attribute_count_limit: 128
710 # Configure max span event count.
711 # Value must be non-negative.
712 # If omitted or null, 128 is used.
713 event_count_limit: 128
714 # Configure max span link count.
715 # Value must be non-negative.
716 # If omitted or null, 128 is used.
717 link_count_limit: 128
718 # Configure max attributes per span event.
719 # Value must be non-negative.
720 # If omitted or null, 128 is used.
721 event_attribute_count_limit: 128
722 # Configure max attributes per span link.
723 # Value must be non-negative.
724 # If omitted or null, 128 is used.
725 link_attribute_count_limit: 128
726 # Configure the sampler.
727 # If omitted, parent based sampler with a root of always_on is used.
728 sampler:
729 # Configure sampler to be parent_based.
730 parent_based:
731 # Configure root sampler.
732 # If omitted or null, always_on is used.
733 root:
734 # Configure sampler to be trace_id_ratio_based.
735 trace_id_ratio_based:
736 # Configure trace_id_ratio.
737 # If omitted or null, 1.0 is used.
738 ratio: 0.0001
739 # Configure remote_parent_sampled sampler.
740 # If omitted or null, always_on is used.
741 remote_parent_sampled:
742 # Configure sampler to be always_on.
743 always_on:
744 # Configure remote_parent_not_sampled sampler.
745 # If omitted or null, always_off is used.
746 remote_parent_not_sampled:
747 # Configure sampler to be always_off.
748 always_off:
749 # Configure local_parent_sampled sampler.
750 # If omitted or null, always_on is used.
751 local_parent_sampled:
752 # Configure sampler to be always_on.
753 always_on:
754 # Configure local_parent_not_sampled sampler.
755 # If omitted or null, always_off is used.
756 local_parent_not_sampled:
757 # Configure sampler to be always_off.
758 always_off:
759 # Configure tracers.
760 # This type is in development and subject to breaking changes in minor versions.
761 tracer_configurator/development:
762 # Configure the default tracer config used there is no matching entry in .tracer_configurator/development.tracers.
763 default_config:
764 # Configure if the tracer is enabled or not.
765 disabled: true
766 # Configure tracers.
767 tracers:
768 - # Configure tracer names to match, evaluated as follows:
769 #
770 # * If the tracer name exactly matches.
771 # * If the tracer name matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
772 name: io.opentelemetry.contrib.*
773 # The tracer config.
774 config:
775 # Configure if the tracer is enabled or not.
776 disabled: false
777 # Configure resource for all signals.
778 # If omitted, the default resource is used.
779 resource:
780 # Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.
781 # Entries must contain .name and .value, and may optionally include .type. If an entry's .type omitted or null, string is used.
782 # The .value's type must match the .type. Values for .type include: string, bool, int, double, string_array, bool_array, int_array, double_array.
783 attributes:
784 - name: service.name
785 value: unknown_service
786 - name: string_key
787 value: value
788 type: string
789 - name: bool_key
790 value: true
791 type: bool
792 - name: int_key
793 value: 1
794 type: int
795 - name: double_key
796 value: 1.1
797 type: double
798 - name: string_array_key
799 value: [ "value1", "value2" ]
800 type: string_array
801 - name: bool_array_key
802 value: [ true, false ]
803 type: bool_array
804 - name: int_array_key
805 value: [ 1, 2 ]
806 type: int_array
807 - name: double_array_key
808 value: [ 1.1, 2.2 ]
809 type: double_array
810 # Configure resource attributes. Entries have lower priority than entries from .resource.attributes.
811 # 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.
812 # If omitted or null, no resource attributes are added.
813 attributes_list: "service.namespace=my-namespace,service.version=1.0.0"
814 # Configure resource detection.
815 # This type is in development and subject to breaking changes in minor versions.
816 # If omitted or null, resource detection is disabled.
817 detection/development:
818 # Configure attributes provided by resource detectors.
819 attributes:
820 # Configure list of attribute key patterns to include from resource detectors.
821 # Attribute keys from resource detectors are evaluated to match as follows:
822 # * If the value of the attribute key exactly matches.
823 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
824 # If omitted, all attributes are included.
825 included:
826 - process.*
827 # 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).
828 # Attribute keys from resource detectors are evaluated to match as follows:
829 # * If the value of the attribute key exactly matches.
830 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
831 # If omitted, .included attributes are included.
832 excluded:
833 - process.command_args
834 # Configure resource detectors.
835 # Resource detector names are dependent on the SDK language ecosystem. Please consult documentation for each respective language.
836 # If omitted or null, no resource detectors are enabled.
837 detectors:
838 - # Enable the container resource detector, which populates container.* attributes.
839 container:
840 - # Enable the host resource detector, which populates host.* and os.* attributes.
841 host:
842 - # Enable the process resource detector, which populates process.* attributes.
843 process:
844 - # Enable the service detector, which populates service.name based on the OTEL_SERVICE_NAME environment variable and service.instance.id.
845 service:
846 # Configure instrumentation.
847 # This type is in development and subject to breaking changes in minor versions.
848 instrumentation/development:
849 # Configure general SemConv options that may apply to multiple languages and instrumentations.
850 # Instrumenation may merge general config options with the language specific configuration at .instrumentation.<language>.
851 general:
852 # Configure instrumentations following the peer semantic conventions.
853 # See peer semantic conventions: https://opentelemetry.io/docs/specs/semconv/attributes-registry/peer/
854 peer:
855 # Configure the service mapping for instrumentations following peer.service semantic conventions.
856 # Each entry is a key value pair where "peer" defines the IP address and "service" defines the corresponding logical name of the service.
857 # See peer.service semantic conventions: https://opentelemetry.io/docs/specs/semconv/general/attributes/#general-remote-service-attributes
858 service_mapping:
859 - peer: 1.2.3.4
860 service: FooService
861 - peer: 2.3.4.5
862 service: BarService
863 # Configure instrumentations following the http semantic conventions.
864 # See http semantic conventions: https://opentelemetry.io/docs/specs/semconv/http/
865 http:
866 # Configure instrumentations following the http client semantic conventions.
867 client:
868 # Configure headers to capture for outbound http requests.
869 request_captured_headers:
870 - Content-Type
871 - Accept
872 # Configure headers to capture for outbound http responses.
873 response_captured_headers:
874 - Content-Type
875 - Content-Encoding
876 # Configure instrumentations following the http server semantic conventions.
877 server:
878 # Configure headers to capture for inbound http requests.
879 request_captured_headers:
880 - Content-Type
881 - Accept
882 # Configure headers to capture for outbound http responses.
883 response_captured_headers:
884 - Content-Type
885 - Content-Encoding
886 # Configure C++ language-specific instrumentation libraries.
887 cpp:
888 # Configure the instrumentation corresponding to key "example".
889 example:
890 property: "value"
891 # Configure .NET language-specific instrumentation libraries.
892 dotnet:
893 # Configure the instrumentation corresponding to key "example".
894 example:
895 property: "value"
896 # Configure Erlang language-specific instrumentation libraries.
897 erlang:
898 # Configure the instrumentation corresponding to key "example".
899 example:
900 property: "value"
901 # Configure Go language-specific instrumentation libraries.
902 go:
903 # Configure the instrumentation corresponding to key "example".
904 example:
905 property: "value"
906 # Configure Java language-specific instrumentation libraries.
907 java:
908 # Configure the instrumentation corresponding to key "example".
909 example:
910 property: "value"
911 # Configure JavaScript language-specific instrumentation libraries.
912 js:
913 # Configure the instrumentation corresponding to key "example".
914 example:
915 property: "value"
916 # Configure PHP language-specific instrumentation libraries.
917 php:
918 # Configure the instrumentation corresponding to key "example".
919 example:
920 property: "value"
921 # Configure Python language-specific instrumentation libraries.
922 python:
923 # Configure the instrumentation corresponding to key "example".
924 example:
925 property: "value"
926 # Configure Ruby language-specific instrumentation libraries.
927 ruby:
928 # Configure the instrumentation corresponding to key "example".
929 example:
930 property: "value"
931 # Configure Rust language-specific instrumentation libraries.
932 rust:
933 # Configure the instrumentation corresponding to key "example".
934 example:
935 property: "value"
936 # Configure Swift language-specific instrumentation libraries.
937 swift:
938 # Configure the instrumentation corresponding to key "example".
939 example:
940 property: "value"