Debian Codegraph @

otelconf/testdata/v0.3-env-var.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: ${OTEL_SDK_DISABLED}
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: ${OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT}
18 # Configure max attribute count.
19 attribute_count_limit: 128
20
21 # Configure resource for all signals.
22 resource:
23 # Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.
24 # 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.
25 attributes:
26 - name: service.name
27 value: unknown_service
28 - name: string_key
29 value: value
30 type: string
31 - name: bool_key
32 value: true
33 type: bool
34 - name: int_key
35 value: 1
36 type: int
37 - name: double_key
38 value: 1.1
39 type: double
40 - name: string_array_key
41 value: [ "value1", "value2" ]
42 type: string_array
43 - name: bool_array_key
44 value: [ true, false ]
45 type: bool_array
46 - name: int_array_key
47 value: [ 1, 2 ]
48 type: int_array
49 - name: double_array_key
50 value: [ 1.1, 2.2 ]
51 type: double_array
52 - name: string_value
53 value: ${STRING_VALUE}
54 type: string
55 - name: bool_value
56 value: ${BOOL_VALUE}
57 type: bool
58 - name: int_value
59 value: ${INT_VALUE}
60 type: int
61 - name: float_value
62 value: ${FLOAT_VALUE}
63 type: double
64 - name: hex_value
65 value: ${HEX_VALUE}
66 type: int
67 - name: quoted_string_value
68 value: "${STRING_VALUE}"
69 type: string
70 - name: quoted_bool_value
71 value: "${BOOL_VALUE}"
72 type: string
73 - name: quoted_int_value
74 value: "${INT_VALUE}"
75 type: string
76 - name: quoted_float_value
77 value: "${FLOAT_VALUE}"
78 type: string
79 - name: quoted_hex_value
80 value: "${HEX_VALUE}"
81 type: string
82 - name: alternative_env_syntax
83 value: "${env:STRING_VALUE}"
84 type: string
85 - name: invalid_map_value
86 value: "${INVALID_MAP_VALUE}"
87 type: string
88 - name: multiple_references_inject
89 value: foo ${STRING_VALUE} ${FLOAT_VALUE}
90 type: string
91 - name: undefined_key
92 value: ${UNDEFINED_KEY}
93 type: string
94 - name: undefined_key_fallback
95 value: ${UNDEFINED_KEY:-fallback}
96 type: string
97 - name: ${ENV_VAR_IN_KEY}
98 value: "value"
99 type: string
100 - name: replace_me
101 value: ${REPLACE_ME}
102 type: string
103 - name: undefined_defaults_to_var
104 value: ${UNDEFINED_KEY:-${STRING_VALUE}}
105 type: string
106 - name: escaped_does_not_substitute
107 value: $${STRING_VALUE}
108 type: string
109 - name: escaped_does_not_substitute_fallback
110 value: $${STRING_VALUE:-fallback}
111 type: string
112 - name: escaped_and_substituted_fallback
113 value: $${STRING_VALUE:-${STRING_VALUE}}
114 type: string
115 - name: escaped_and_substituted
116 value: $$${STRING_VALUE}
117 type: string
118 - name: multiple_escaped_and_not_substituted
119 value: $$$${STRING_VALUE}
120 type: string
121 - name: undefined_key_with_escape_sequence_in_fallback
122 value: ${UNDEFINED_KEY:-$${UNDEFINED_KEY}}
123 type: string
124 - name: value_with_escape
125 value: ${VALUE_WITH_ESCAPE}
126 type: string
127 - name: escape_sequence
128 value: a $$ b
129 type: string
130 - name: no_escape_sequence
131 value: a $ b
132 type: string
133 # Configure resource attributes. Entries have lower priority than entries from .resource.attributes.
134 # 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.
135 attributes_list: "service.namespace=my-namespace,service.version=1.0.0"
136 # Configure resource detectors.
137 detectors:
138 # Configure attributes provided by resource detectors.
139 attributes:
140 # Configure list of attribute key patterns to include from resource detectors. If not set, all attributes are included.
141 # Attribute keys from resource detectors are evaluated to match as follows:
142 # * If the value of the attribute key exactly matches.
143 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
144 included:
145 - process.*
146 # 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).
147 # Attribute keys from resource detectors are evaluated to match as follows:
148 # * If the value of the attribute key exactly matches.
149 # * If the value of the attribute key matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
150 excluded:
151 - process.command_args
152 # Configure resource schema URL.
153 schema_url: https://opentelemetry.io/schemas/1.16.0