@opentelemetry/configuration 0.222.0-development.0 → 0.300.0-development.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/ConfigFactory.cjs +12 -0
  2. package/dist/ConfigFactory.cjs.map +1 -0
  3. package/dist/ConfigFactory.d.cts +6 -0
  4. package/dist/ConfigFactory.d.cts.map +1 -0
  5. package/dist/ConfigFactory.d.mts +6 -0
  6. package/dist/ConfigFactory.d.mts.map +1 -0
  7. package/dist/ConfigFactory.mjs +12 -0
  8. package/dist/ConfigFactory.mjs.map +1 -0
  9. package/dist/EnvDefinition.cjs +34 -0
  10. package/dist/EnvDefinition.cjs.map +1 -0
  11. package/dist/EnvDefinition.mjs +33 -0
  12. package/dist/EnvDefinition.mjs.map +1 -0
  13. package/dist/EnvReader.cjs +37 -0
  14. package/dist/EnvReader.cjs.map +1 -0
  15. package/dist/EnvReader.mjs +36 -0
  16. package/dist/EnvReader.mjs.map +1 -0
  17. package/dist/EnvironmentConfigFactory.cjs +354 -0
  18. package/dist/EnvironmentConfigFactory.cjs.map +1 -0
  19. package/dist/EnvironmentConfigFactory.mjs +347 -0
  20. package/dist/EnvironmentConfigFactory.mjs.map +1 -0
  21. package/dist/FileConfigFactory.cjs +141 -0
  22. package/dist/FileConfigFactory.cjs.map +1 -0
  23. package/{build/src/FileConfigFactory.d.ts → dist/FileConfigFactory.d.cts} +8 -12
  24. package/dist/FileConfigFactory.d.cts.map +1 -0
  25. package/dist/FileConfigFactory.d.mts +28 -0
  26. package/dist/FileConfigFactory.d.mts.map +1 -0
  27. package/dist/FileConfigFactory.mjs +134 -0
  28. package/dist/FileConfigFactory.mjs.map +1 -0
  29. package/dist/IConfigFactory.d.cts +13 -0
  30. package/dist/IConfigFactory.d.cts.map +1 -0
  31. package/dist/IConfigFactory.d.mts +13 -0
  32. package/dist/IConfigFactory.d.mts.map +1 -0
  33. package/dist/_virtual/_rolldown/runtime.cjs +25 -0
  34. package/dist/_virtual/_rolldown/runtime.mjs +4 -0
  35. package/dist/generated/types.d.cts +1662 -0
  36. package/dist/generated/types.d.cts.map +1 -0
  37. package/dist/generated/types.d.mts +1662 -0
  38. package/dist/generated/types.d.mts.map +1 -0
  39. package/dist/generated/validator.cjs +14385 -0
  40. package/dist/generated/validator.cjs.map +1 -0
  41. package/dist/generated/validator.mjs +14381 -0
  42. package/dist/generated/validator.mjs.map +1 -0
  43. package/dist/index.cjs +7 -0
  44. package/dist/index.d.cts +5 -0
  45. package/dist/index.d.mts +5 -0
  46. package/dist/index.mjs +3 -0
  47. package/dist/utils.cjs +137 -0
  48. package/dist/utils.cjs.map +1 -0
  49. package/dist/utils.mjs +129 -0
  50. package/dist/utils.mjs.map +1 -0
  51. package/package.json +25 -16
  52. package/build/src/ConfigFactory.d.ts +0 -3
  53. package/build/src/ConfigFactory.js +0 -19
  54. package/build/src/ConfigFactory.js.map +0 -1
  55. package/build/src/EnvDefinition.d.ts +0 -15
  56. package/build/src/EnvDefinition.js +0 -36
  57. package/build/src/EnvDefinition.js.map +0 -1
  58. package/build/src/EnvReader.d.ts +0 -24
  59. package/build/src/EnvReader.js +0 -60
  60. package/build/src/EnvReader.js.map +0 -1
  61. package/build/src/EnvironmentConfigFactory.d.ts +0 -19
  62. package/build/src/EnvironmentConfigFactory.js +0 -540
  63. package/build/src/EnvironmentConfigFactory.js.map +0 -1
  64. package/build/src/FileConfigFactory.js +0 -177
  65. package/build/src/FileConfigFactory.js.map +0 -1
  66. package/build/src/IConfigFactory.d.ts +0 -10
  67. package/build/src/IConfigFactory.js +0 -7
  68. package/build/src/IConfigFactory.js.map +0 -1
  69. package/build/src/generated/types.d.ts +0 -1659
  70. package/build/src/generated/types.js +0 -13
  71. package/build/src/generated/types.js.map +0 -1
  72. package/build/src/generated/validator.d.ts +0 -17
  73. package/build/src/generated/validator.js +0 -8533
  74. package/build/src/generated/validator.js.map +0 -1
  75. package/build/src/index.d.ts +0 -5
  76. package/build/src/index.js +0 -14
  77. package/build/src/index.js.map +0 -1
  78. package/build/src/utils.d.ts +0 -20
  79. package/build/src/utils.js +0 -188
  80. package/build/src/utils.js.map +0 -1
  81. package/build/src/version.d.ts +0 -2
  82. package/build/src/version.js +0 -10
  83. package/build/src/version.js.map +0 -1
@@ -0,0 +1,1662 @@
1
+ //#region src/generated/types.d.ts
2
+ /**
3
+ * Configure the log level of the internal logger used by the SDK.
4
+ * Values include:
5
+ * * debug: debug, severity number 5.
6
+ * * debug2: debug2, severity number 6.
7
+ * * debug3: debug3, severity number 7.
8
+ * * debug4: debug4, severity number 8.
9
+ * * error: error, severity number 17.
10
+ * * error2: error2, severity number 18.
11
+ * * error3: error3, severity number 19.
12
+ * * error4: error4, severity number 20.
13
+ * * fatal: fatal, severity number 21.
14
+ * * fatal2: fatal2, severity number 22.
15
+ * * fatal3: fatal3, severity number 23.
16
+ * * fatal4: fatal4, severity number 24.
17
+ * * info: info, severity number 9.
18
+ * * info2: info2, severity number 10.
19
+ * * info3: info3, severity number 11.
20
+ * * info4: info4, severity number 12.
21
+ * * trace: trace, severity number 1.
22
+ * * trace2: trace2, severity number 2.
23
+ * * trace3: trace3, severity number 3.
24
+ * * trace4: trace4, severity number 4.
25
+ * * warn: warn, severity number 13.
26
+ * * warn2: warn2, severity number 14.
27
+ * * warn3: warn3, severity number 15.
28
+ * * warn4: warn4, severity number 16.
29
+ * If omitted, INFO is used.
30
+ */
31
+ type SeverityNumber = ('trace' | 'trace2' | 'trace3' | 'trace4' | 'debug' | 'debug2' | 'debug3' | 'debug4' | 'info' | 'info2' | 'info3' | 'info4' | 'warn' | 'warn2' | 'warn3' | 'warn4' | 'error' | 'error2' | 'error3' | 'error4' | 'fatal' | 'fatal2' | 'fatal3' | 'fatal4') | null;
32
+ /**
33
+ * Configure exporter to be OTLP with HTTP transport.
34
+ * If omitted, ignore.
35
+ */
36
+ type OtlpHttpExporter = {
37
+ /**
38
+ * Configure endpoint, including the signal specific path.
39
+ * If omitted or null, the http://localhost:4318/v1/{signal} (where signal is 'traces', 'logs', or 'metrics') is used.
40
+ */
41
+ endpoint?: string | null;
42
+ tls?: HttpTls;
43
+ /**
44
+ * Configure headers. Entries have higher priority than entries from .headers_list.
45
+ * If an entry's .value is null, the entry is ignored.
46
+ * If omitted, no headers are added.
47
+ *
48
+ * @minItems 1
49
+ */
50
+ headers?: NameStringValuePair[];
51
+ /**
52
+ * Configure headers. Entries have lower priority than entries from .headers.
53
+ * 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.
54
+ * If omitted or null, no headers are added.
55
+ */
56
+ headers_list?: string | null;
57
+ /**
58
+ * Configure compression.
59
+ * Known values include: gzip, none. Implementations may support other compression algorithms.
60
+ * If omitted or null, none is used.
61
+ */
62
+ compression?: string | null;
63
+ /**
64
+ * Configure max time (in milliseconds) to wait for each export.
65
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
66
+ * If omitted or null, 10000 is used.
67
+ */
68
+ timeout?: number | null;
69
+ encoding?: OtlpHttpEncoding;
70
+ } | null;
71
+ /**
72
+ * Configure TLS settings for the exporter.
73
+ * If omitted, system default TLS settings are used.
74
+ */
75
+ type HttpTls = {
76
+ /**
77
+ * Configure certificate used to verify a server's TLS credentials.
78
+ * Absolute path to certificate file in PEM format.
79
+ * If omitted or null, system default certificate verification is used for secure connections.
80
+ */
81
+ ca_file?: string | null;
82
+ /**
83
+ * Configure mTLS private client key.
84
+ * Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
85
+ * If omitted or null, mTLS is not used.
86
+ */
87
+ key_file?: string | null;
88
+ /**
89
+ * Configure mTLS client certificate.
90
+ * Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
91
+ * If omitted or null, mTLS is not used.
92
+ */
93
+ cert_file?: string | null;
94
+ } | null;
95
+ /**
96
+ * Configure the encoding used for messages.
97
+ * Implementations may not support json.
98
+ * Values include:
99
+ * * json: Protobuf JSON encoding.
100
+ * * protobuf: Protobuf binary encoding.
101
+ * If omitted, protobuf is used.
102
+ */
103
+ type OtlpHttpEncoding = ('protobuf' | 'json') | null;
104
+ /**
105
+ * Configure exporter to be OTLP with gRPC transport.
106
+ * If omitted, ignore.
107
+ */
108
+ type OtlpGrpcExporter = {
109
+ /**
110
+ * Configure endpoint.
111
+ * If omitted or null, http://localhost:4317 is used.
112
+ */
113
+ endpoint?: string | null;
114
+ tls?: GrpcTls;
115
+ /**
116
+ * Configure headers. Entries have higher priority than entries from .headers_list.
117
+ * If an entry's .value is null, the entry is ignored.
118
+ * If omitted, no headers are added.
119
+ *
120
+ * @minItems 1
121
+ */
122
+ headers?: NameStringValuePair[];
123
+ /**
124
+ * Configure headers. Entries have lower priority than entries from .headers.
125
+ * 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.
126
+ * If omitted or null, no headers are added.
127
+ */
128
+ headers_list?: string | null;
129
+ /**
130
+ * Configure compression.
131
+ * Known values include: gzip, none. Implementations may support other compression algorithms.
132
+ * If omitted or null, none is used.
133
+ */
134
+ compression?: string | null;
135
+ /**
136
+ * Configure max time (in milliseconds) to wait for each export.
137
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
138
+ * If omitted or null, 10000 is used.
139
+ */
140
+ timeout?: number | null;
141
+ } | null;
142
+ /**
143
+ * Configure TLS settings for the exporter.
144
+ * If omitted, system default TLS settings are used.
145
+ */
146
+ type GrpcTls = {
147
+ /**
148
+ * Configure certificate used to verify a server's TLS credentials.
149
+ * Absolute path to certificate file in PEM format.
150
+ * If omitted or null, system default certificate verification is used for secure connections.
151
+ */
152
+ ca_file?: string | null;
153
+ /**
154
+ * Configure mTLS private client key.
155
+ * Absolute path to client key file in PEM format. If set, .client_certificate must also be set.
156
+ * If omitted or null, mTLS is not used.
157
+ */
158
+ key_file?: string | null;
159
+ /**
160
+ * Configure mTLS client certificate.
161
+ * Absolute path to client certificate file in PEM format. If set, .client_key must also be set.
162
+ * If omitted or null, mTLS is not used.
163
+ */
164
+ cert_file?: string | null;
165
+ /**
166
+ * Configure client transport security for the exporter's connection.
167
+ * Only applicable when .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure.
168
+ * If omitted or null, false is used.
169
+ */
170
+ insecure?: boolean | null;
171
+ } | null;
172
+ /**
173
+ * Configure exporter to be OTLP with file transport.
174
+ * If omitted, ignore.
175
+ */
176
+ type ExperimentalOtlpFileExporter = {
177
+ /**
178
+ * Configure output stream.
179
+ * Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
180
+ * If omitted or null, stdout is used.
181
+ */
182
+ output_stream?: string | null;
183
+ } | null;
184
+ /**
185
+ * Configure exporter to be console.
186
+ * If omitted, ignore.
187
+ */
188
+ type ConsoleExporter = {} | null;
189
+ /**
190
+ * Configure an event to span event bridge log record processor.
191
+ * If omitted, ignore.
192
+ */
193
+ type ExperimentalEventToSpanEventBridgeLogRecordProcessor = {} | null;
194
+ /**
195
+ * Configure exporter to be OTLP with HTTP transport.
196
+ * If omitted, ignore.
197
+ */
198
+ type OtlpHttpMetricExporter = {
199
+ /**
200
+ * Configure endpoint.
201
+ * If omitted or null, http://localhost:4318/v1/metrics is used.
202
+ */
203
+ endpoint?: string | null;
204
+ tls?: HttpTls;
205
+ /**
206
+ * Configure headers. Entries have higher priority than entries from .headers_list.
207
+ * If an entry's .value is null, the entry is ignored.
208
+ * If omitted, no headers are added.
209
+ *
210
+ * @minItems 1
211
+ */
212
+ headers?: NameStringValuePair[];
213
+ /**
214
+ * Configure headers. Entries have lower priority than entries from .headers.
215
+ * 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.
216
+ * If omitted or null, no headers are added.
217
+ */
218
+ headers_list?: string | null;
219
+ /**
220
+ * Configure compression.
221
+ * Known values include: gzip, none. Implementations may support other compression algorithms.
222
+ * If omitted or null, none is used.
223
+ */
224
+ compression?: string | null;
225
+ /**
226
+ * Configure max time (in milliseconds) to wait for each export.
227
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
228
+ * If omitted or null, 10000 is used.
229
+ */
230
+ timeout?: number | null;
231
+ encoding?: OtlpHttpEncoding;
232
+ temporality_preference?: ExporterTemporalityPreference;
233
+ default_histogram_aggregation?: ExporterDefaultHistogramAggregation;
234
+ } | null;
235
+ /**
236
+ * Configure temporality preference.
237
+ * Values include:
238
+ * * cumulative: Use cumulative aggregation temporality for all instrument types.
239
+ * * delta: Use delta aggregation for all instrument types except up down counter and asynchronous up down counter.
240
+ * * low_memory: Use delta aggregation temporality for counter and histogram instrument types. Use cumulative aggregation temporality for all other instrument types.
241
+ * If omitted, cumulative is used.
242
+ */
243
+ type ExporterTemporalityPreference = ('cumulative' | 'delta' | 'low_memory') | null;
244
+ /**
245
+ * Configure default histogram aggregation.
246
+ * Values include:
247
+ * * base2_exponential_bucket_histogram: Use base2 exponential histogram as the default aggregation for histogram instruments.
248
+ * * explicit_bucket_histogram: Use explicit bucket histogram as the default aggregation for histogram instruments.
249
+ * If omitted, explicit_bucket_histogram is used.
250
+ */
251
+ type ExporterDefaultHistogramAggregation = ('explicit_bucket_histogram' | 'base2_exponential_bucket_histogram') | null;
252
+ /**
253
+ * Configure exporter to be OTLP with gRPC transport.
254
+ * If omitted, ignore.
255
+ */
256
+ type OtlpGrpcMetricExporter = {
257
+ /**
258
+ * Configure endpoint.
259
+ * If omitted or null, http://localhost:4317 is used.
260
+ */
261
+ endpoint?: string | null;
262
+ tls?: GrpcTls;
263
+ /**
264
+ * Configure headers. Entries have higher priority than entries from .headers_list.
265
+ * If an entry's .value is null, the entry is ignored.
266
+ * If omitted, no headers are added.
267
+ *
268
+ * @minItems 1
269
+ */
270
+ headers?: NameStringValuePair[];
271
+ /**
272
+ * Configure headers. Entries have lower priority than entries from .headers.
273
+ * 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.
274
+ * If omitted or null, no headers are added.
275
+ */
276
+ headers_list?: string | null;
277
+ /**
278
+ * Configure compression.
279
+ * Known values include: gzip, none. Implementations may support other compression algorithms.
280
+ * If omitted or null, none is used.
281
+ */
282
+ compression?: string | null;
283
+ /**
284
+ * Configure max time (in milliseconds) to wait for each export.
285
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
286
+ * If omitted or null, 10000 is used.
287
+ */
288
+ timeout?: number | null;
289
+ temporality_preference?: ExporterTemporalityPreference;
290
+ default_histogram_aggregation?: ExporterDefaultHistogramAggregation;
291
+ } | null;
292
+ /**
293
+ * Configure exporter to be OTLP with file transport.
294
+ * If omitted, ignore.
295
+ */
296
+ type ExperimentalOtlpFileMetricExporter = {
297
+ /**
298
+ * Configure output stream.
299
+ * Values include stdout, or scheme+destination. For example: file:///path/to/file.jsonl.
300
+ * If omitted or null, stdout is used.
301
+ */
302
+ output_stream?: string | null;
303
+ temporality_preference?: ExporterTemporalityPreference;
304
+ default_histogram_aggregation?: ExporterDefaultHistogramAggregation;
305
+ } | null;
306
+ /**
307
+ * Configure exporter to be console.
308
+ * If omitted, ignore.
309
+ */
310
+ type ConsoleMetricExporter = {
311
+ temporality_preference?: ExporterTemporalityPreference;
312
+ default_histogram_aggregation?: ExporterDefaultHistogramAggregation;
313
+ } | null;
314
+ /**
315
+ * Configure metric producer to be opencensus.
316
+ * If omitted, ignore.
317
+ */
318
+ type OpenCensusMetricProducer = {} | null;
319
+ /**
320
+ * Configure exporter to be prometheus.
321
+ * If omitted, ignore.
322
+ */
323
+ type ExperimentalPrometheusMetricExporter = {
324
+ /**
325
+ * Configure host.
326
+ * If omitted or null, localhost is used.
327
+ */
328
+ host?: string | null;
329
+ /**
330
+ * Configure port.
331
+ * If omitted or null, 9464 is used.
332
+ */
333
+ port?: number | null;
334
+ /**
335
+ * Configure Prometheus Exporter to produce metrics with scope labels.
336
+ * If omitted or null, true is used.
337
+ */
338
+ scope_info_enabled?: boolean | null;
339
+ /**
340
+ * Configure Prometheus Exporter to produce metrics with a target info metric for the resource.
341
+ * If omitted or null, true is used.
342
+ */
343
+ 'target_info_enabled/development'?: boolean | null;
344
+ resource_constant_labels?: IncludeExclude;
345
+ translation_strategy?: ExperimentalPrometheusTranslationStrategy;
346
+ } | null;
347
+ /**
348
+ * Configure how metric names are translated to Prometheus metric names.
349
+ * Values include:
350
+ * * no_translation/development: Special character escaping is disabled. Type and unit suffixes are disabled. Metric names are unaltered.
351
+ * * no_utf8_escaping_with_suffixes/development: Special character escaping is disabled. Type and unit suffixes are enabled.
352
+ * * underscore_escaping_with_suffixes: Special character escaping is enabled. Type and unit suffixes are enabled.
353
+ * * underscore_escaping_without_suffixes/development: Special character escaping is enabled. Type and unit suffixes are disabled. This represents classic Prometheus metric name compatibility.
354
+ * If omitted, underscore_escaping_with_suffixes is used.
355
+ */
356
+ type ExperimentalPrometheusTranslationStrategy = ('underscore_escaping_with_suffixes' | 'underscore_escaping_without_suffixes/development' | 'no_utf8_escaping_with_suffixes/development' | 'no_translation/development') | null;
357
+ /**
358
+ * Configure instrument type selection criteria.
359
+ * Values include:
360
+ * * counter: Synchronous counter instruments.
361
+ * * gauge: Synchronous gauge instruments.
362
+ * * histogram: Synchronous histogram instruments.
363
+ * * observable_counter: Asynchronous counter instruments.
364
+ * * observable_gauge: Asynchronous gauge instruments.
365
+ * * observable_up_down_counter: Asynchronous up down counter instruments.
366
+ * * up_down_counter: Synchronous up down counter instruments.
367
+ * If omitted, all instrument types match.
368
+ */
369
+ type InstrumentType = ('counter' | 'gauge' | 'histogram' | 'observable_counter' | 'observable_gauge' | 'observable_up_down_counter' | 'up_down_counter') | null;
370
+ /**
371
+ * Configures the stream to use the instrument kind to select an aggregation and advisory parameters to influence aggregation configuration parameters. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#default-aggregation for details.
372
+ * If omitted, ignore.
373
+ */
374
+ type DefaultAggregation = {} | null;
375
+ /**
376
+ * Configures the stream to ignore/drop all instrument measurements. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#drop-aggregation for details.
377
+ * If omitted, ignore.
378
+ */
379
+ type DropAggregation = {} | null;
380
+ /**
381
+ * Configures the stream to collect data for the histogram metric point using a set of explicit boundary values for histogram bucketing. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#explicit-bucket-histogram-aggregation for details
382
+ * If omitted, ignore.
383
+ */
384
+ type ExplicitBucketHistogramAggregation = {
385
+ /**
386
+ * Configure bucket boundaries.
387
+ * If omitted, [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, 10000] is used.
388
+ *
389
+ * @minItems 0
390
+ */
391
+ boundaries?: number[];
392
+ /**
393
+ * Configure record min and max.
394
+ * If omitted or null, true is used.
395
+ */
396
+ record_min_max?: boolean | null;
397
+ } | null;
398
+ /**
399
+ * Configures the stream to collect data for the exponential histogram metric point, which uses a base-2 exponential formula to determine bucket boundaries and an integer scale parameter to control resolution. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#base2-exponential-bucket-histogram-aggregation for details.
400
+ * If omitted, ignore.
401
+ */
402
+ type Base2ExponentialBucketHistogramAggregation = {
403
+ /**
404
+ * Configure the max scale factor.
405
+ * If omitted or null, 20 is used.
406
+ */
407
+ max_scale?: number | null;
408
+ /**
409
+ * Configure the maximum number of buckets in each of the positive and negative ranges, not counting the special zero bucket.
410
+ * If omitted or null, 160 is used.
411
+ */
412
+ max_size?: number | null;
413
+ /**
414
+ * Configure whether or not to record min and max.
415
+ * If omitted or null, true is used.
416
+ */
417
+ record_min_max?: boolean | null;
418
+ } | null;
419
+ /**
420
+ * Configures the stream to collect data using the last measurement. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#last-value-aggregation for details.
421
+ * If omitted, ignore.
422
+ */
423
+ type LastValueAggregation = {} | null;
424
+ /**
425
+ * Configures the stream to collect the arithmetic sum of measurement values. See https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#sum-aggregation for details.
426
+ * If omitted, ignore.
427
+ */
428
+ type SumAggregation = {} | null;
429
+ /**
430
+ * Configure the exemplar filter.
431
+ * Values include:
432
+ * * always_off: ExemplarFilter which makes no measurements eligible for being an Exemplar.
433
+ * * always_on: ExemplarFilter which makes all measurements eligible for being an Exemplar.
434
+ * * trace_based: ExemplarFilter which makes measurements recorded in the context of a sampled parent span eligible for being an Exemplar.
435
+ * If omitted, trace_based is used.
436
+ */
437
+ type ExemplarFilter = ('always_on' | 'always_off' | 'trace_based') | null;
438
+ /**
439
+ * Include the w3c trace context propagator.
440
+ * If omitted, ignore.
441
+ */
442
+ type TraceContextPropagator = {} | null;
443
+ /**
444
+ * Include the w3c baggage propagator.
445
+ * If omitted, ignore.
446
+ */
447
+ type BaggagePropagator = {} | null;
448
+ /**
449
+ * Include the zipkin b3 propagator.
450
+ * If omitted, ignore.
451
+ */
452
+ type B3Propagator = {} | null;
453
+ /**
454
+ * Include the zipkin b3 multi propagator.
455
+ * If omitted, ignore.
456
+ */
457
+ type B3MultiPropagator = {} | null;
458
+ /**
459
+ * Configure sampler to be always_off.
460
+ * If omitted, ignore.
461
+ */
462
+ type AlwaysOffSampler = {} | null;
463
+ /**
464
+ * Configure sampler to be always_on.
465
+ * If omitted, ignore.
466
+ */
467
+ type AlwaysOnSampler = {} | null;
468
+ /**
469
+ * Configure sampler to be always_off.
470
+ * If omitted, ignore.
471
+ */
472
+ type ExperimentalComposableAlwaysOffSampler = {} | null;
473
+ /**
474
+ * Configure sampler to be always_on.
475
+ * If omitted, ignore.
476
+ */
477
+ type ExperimentalComposableAlwaysOnSampler = {} | null;
478
+ /**
479
+ * Configure sampler to be probability.
480
+ * If omitted, ignore.
481
+ */
482
+ type ExperimentalComposableProbabilitySampler = {
483
+ /**
484
+ * Configure ratio.
485
+ * If omitted or null, 1.0 is used.
486
+ */
487
+ ratio?: number | null;
488
+ } | null;
489
+ /**
490
+ * Configure sampler to be rule_based.
491
+ * If omitted, ignore.
492
+ */
493
+ type ExperimentalComposableRuleBasedSampler = {
494
+ /**
495
+ * The rules for the sampler, matched in order.
496
+ * Each rule can have multiple match conditions. All conditions must match for the rule to match.
497
+ * If no conditions are specified, the rule matches all spans that reach it.
498
+ * If no rules match, the span is not sampled.
499
+ * If omitted, no span is sampled.
500
+ *
501
+ * @minItems 1
502
+ */
503
+ rules?: ExperimentalComposableRuleBasedSamplerRule[];
504
+ } | null;
505
+ type SpanKind = ('internal' | 'server' | 'client' | 'producer' | 'consumer') | null;
506
+ type ExperimentalSpanParent = ('none' | 'remote' | 'local') | null;
507
+ /**
508
+ * Configure sampler to be jaeger_remote.
509
+ * If omitted, ignore.
510
+ */
511
+ type ExperimentalJaegerRemoteSampler = {
512
+ /**
513
+ * Configure the endpoint of the jaeger remote sampling service.
514
+ * Property is required and must be non-null.
515
+ */
516
+ endpoint: string;
517
+ /**
518
+ * Configure the polling interval (in milliseconds) to fetch from the remote sampling service.
519
+ * If omitted or null, 60000 is used.
520
+ */
521
+ interval?: number | null;
522
+ initial_sampler: Sampler;
523
+ } | null;
524
+ /**
525
+ * Configure sampler to be parent_based.
526
+ * If omitted, ignore.
527
+ */
528
+ type ParentBasedSampler = {
529
+ root?: Sampler;
530
+ remote_parent_sampled?: Sampler;
531
+ remote_parent_not_sampled?: Sampler;
532
+ local_parent_sampled?: Sampler;
533
+ local_parent_not_sampled?: Sampler;
534
+ } | null;
535
+ /**
536
+ * Configure sampler to be probability.
537
+ * If omitted, ignore.
538
+ */
539
+ type ExperimentalProbabilitySampler = {
540
+ /**
541
+ * Configure ratio.
542
+ * If omitted or null, 1.0 is used.
543
+ */
544
+ ratio?: number | null;
545
+ } | null;
546
+ /**
547
+ * Configure sampler to be trace_id_ratio_based.
548
+ * If omitted, ignore.
549
+ */
550
+ type TraceIdRatioBasedSampler = {
551
+ /**
552
+ * Configure trace_id_ratio.
553
+ * If omitted or null, 1.0 is used.
554
+ */
555
+ ratio?: number | null;
556
+ } | null;
557
+ /**
558
+ * Configure the ID generator to randomly generate TraceIds and SpanIds (spec default).
559
+ * If omitted, ignore.
560
+ */
561
+ type RandomIdGenerator = {} | null;
562
+ /**
563
+ * The attribute type.
564
+ * Values include:
565
+ * * bool: Boolean attribute value.
566
+ * * bool_array: Boolean array attribute value.
567
+ * * double: Double attribute value.
568
+ * * double_array: Double array attribute value.
569
+ * * int: Integer attribute value.
570
+ * * int_array: Integer array attribute value.
571
+ * * string: String attribute value.
572
+ * * string_array: String array attribute value.
573
+ * If omitted, string is used.
574
+ */
575
+ type AttributeType = ('string' | 'bool' | 'int' | 'double' | 'string_array' | 'bool_array' | 'int_array' | 'double_array') | null;
576
+ /**
577
+ * Enable the container resource detector, which populates container.* attributes.
578
+ * If omitted, ignore.
579
+ */
580
+ type ExperimentalContainerResourceDetector = {} | null;
581
+ /**
582
+ * Enable the host resource detector, which populates host.* and os.* attributes.
583
+ * If omitted, ignore.
584
+ */
585
+ type ExperimentalHostResourceDetector = {} | null;
586
+ /**
587
+ * Enable the process resource detector, which populates process.* attributes.
588
+ * If omitted, ignore.
589
+ */
590
+ type ExperimentalProcessResourceDetector = {} | null;
591
+ /**
592
+ * Enable the service detector, which populates service.name based on the OTEL_SERVICE_NAME environment variable and service.instance.id.
593
+ * If omitted, ignore.
594
+ */
595
+ type ExperimentalServiceResourceDetector = {} | null;
596
+ interface ConfigurationModel {
597
+ /**
598
+ * The file format version.
599
+ * Represented as a string including the semver major, minor version numbers (and optionally the meta tag). For example: "0.4", "1.0-rc.2", "1.0" (after stable release).
600
+ * See https://github.com/open-telemetry/opentelemetry-configuration/blob/main/VERSIONING.md for more details.
601
+ * The yaml format is documented at https://github.com/open-telemetry/opentelemetry-configuration/tree/main/schema
602
+ * Property is required and must be non-null.
603
+ */
604
+ file_format?: string;
605
+ /**
606
+ * Configure if the SDK is disabled or not.
607
+ * If omitted or null, false is used.
608
+ */
609
+ disabled?: boolean | null;
610
+ log_level?: SeverityNumber;
611
+ attribute_limits?: AttributeLimits;
612
+ logger_provider?: LoggerProvider;
613
+ meter_provider?: MeterProvider;
614
+ propagator?: Propagator;
615
+ tracer_provider?: TracerProvider;
616
+ resource?: Resource;
617
+ 'instrumentation/development'?: ExperimentalInstrumentation;
618
+ distribution?: Distribution;
619
+ [k: string]: any;
620
+ }
621
+ /**
622
+ * Configure general attribute limits. See also tracer_provider.limits, logger_provider.limits.
623
+ * If omitted, default values as described in AttributeLimits are used.
624
+ */
625
+ interface AttributeLimits {
626
+ /**
627
+ * Configure max attribute value size.
628
+ * Value must be non-negative.
629
+ * If omitted or null, there is no limit.
630
+ */
631
+ attribute_value_length_limit?: number | null;
632
+ /**
633
+ * Configure max attribute count.
634
+ * Value must be non-negative.
635
+ * If omitted or null, 128 is used.
636
+ */
637
+ attribute_count_limit?: number | null;
638
+ }
639
+ /**
640
+ * Configure logger provider.
641
+ * If omitted, a noop logger provider is used.
642
+ */
643
+ interface LoggerProvider {
644
+ /**
645
+ * Configure log record processors.
646
+ * Property is required and must be non-null.
647
+ *
648
+ * @minItems 1
649
+ */
650
+ processors: LogRecordProcessor[];
651
+ limits?: LogRecordLimits;
652
+ 'logger_configurator/development'?: ExperimentalLoggerConfigurator;
653
+ }
654
+ interface LogRecordProcessor {
655
+ batch?: BatchLogRecordProcessor;
656
+ simple?: SimpleLogRecordProcessor;
657
+ 'event_to_span_event_bridge/development'?: ExperimentalEventToSpanEventBridgeLogRecordProcessor;
658
+ [k: string]: object | null | undefined;
659
+ }
660
+ /**
661
+ * Configure a batch log record processor.
662
+ * If omitted, ignore.
663
+ */
664
+ interface BatchLogRecordProcessor {
665
+ /**
666
+ * Configure delay interval (in milliseconds) between two consecutive exports.
667
+ * Value must be non-negative.
668
+ * If omitted or null, 1000 is used.
669
+ */
670
+ schedule_delay?: number | null;
671
+ /**
672
+ * Configure maximum allowed time (in milliseconds) to export data.
673
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
674
+ * If omitted or null, 30000 is used.
675
+ */
676
+ export_timeout?: number | null;
677
+ /**
678
+ * Configure maximum queue size. Value must be positive.
679
+ * If omitted or null, 2048 is used.
680
+ */
681
+ max_queue_size?: number | null;
682
+ /**
683
+ * Configure maximum batch size. Value must be positive.
684
+ * If omitted or null, 512 is used.
685
+ */
686
+ max_export_batch_size?: number | null;
687
+ exporter: LogRecordExporter;
688
+ }
689
+ /**
690
+ * Configure exporter.
691
+ * Property is required and must be non-null.
692
+ */
693
+ interface LogRecordExporter {
694
+ otlp_http?: OtlpHttpExporter;
695
+ otlp_grpc?: OtlpGrpcExporter;
696
+ 'otlp_file/development'?: ExperimentalOtlpFileExporter;
697
+ console?: ConsoleExporter;
698
+ [k: string]: object | null | undefined;
699
+ }
700
+ interface NameStringValuePair {
701
+ /**
702
+ * The name of the pair.
703
+ * Property is required and must be non-null.
704
+ */
705
+ name: string;
706
+ /**
707
+ * The value of the pair.
708
+ * Property must be present, but if null the behavior is dependent on usage context.
709
+ */
710
+ value: string | null;
711
+ }
712
+ /**
713
+ * Configure a simple log record processor.
714
+ * If omitted, ignore.
715
+ */
716
+ interface SimpleLogRecordProcessor {
717
+ exporter: LogRecordExporter;
718
+ }
719
+ /**
720
+ * Configure log record limits. See also attribute_limits.
721
+ * If omitted, default values as described in LogRecordLimits are used.
722
+ */
723
+ interface LogRecordLimits {
724
+ /**
725
+ * Configure max attribute value size. Overrides .attribute_limits.attribute_value_length_limit.
726
+ * Value must be non-negative.
727
+ * If omitted or null, there is no limit.
728
+ */
729
+ attribute_value_length_limit?: number | null;
730
+ /**
731
+ * Configure max attribute count. Overrides .attribute_limits.attribute_count_limit.
732
+ * Value must be non-negative.
733
+ * If omitted or null, 128 is used.
734
+ */
735
+ attribute_count_limit?: number | null;
736
+ }
737
+ /**
738
+ * Configure loggers.
739
+ * If omitted, all loggers use default values as described in ExperimentalLoggerConfig.
740
+ */
741
+ interface ExperimentalLoggerConfigurator {
742
+ default_config?: ExperimentalLoggerConfig;
743
+ /**
744
+ * Configure loggers.
745
+ * If omitted, all loggers use .default_config.
746
+ *
747
+ * @minItems 1
748
+ */
749
+ loggers?: ExperimentalLoggerMatcherAndConfig[];
750
+ }
751
+ /**
752
+ * Configure the default logger config used there is no matching entry in .logger_configurator/development.loggers.
753
+ * If omitted, unmatched .loggers use default values as described in ExperimentalLoggerConfig.
754
+ */
755
+ interface ExperimentalLoggerConfig {
756
+ /**
757
+ * Configure if the logger is enabled or not.
758
+ * If omitted or null, true is used.
759
+ */
760
+ enabled?: boolean | null;
761
+ minimum_severity?: SeverityNumber;
762
+ /**
763
+ * Configure trace based filtering.
764
+ * If true, log records associated with unsampled trace contexts traces are not processed. If false, or if a log record is not associated with a trace context, trace based filtering is not applied.
765
+ * If omitted or null, trace based filtering is not applied.
766
+ */
767
+ trace_based?: boolean | null;
768
+ }
769
+ interface ExperimentalLoggerMatcherAndConfig {
770
+ /**
771
+ * Configure logger names to match. Matching is case-sensitive, evaluated as follows:
772
+ *
773
+ * * If the logger name exactly matches.
774
+ * * If the logger name matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
775
+ * Property is required and must be non-null.
776
+ */
777
+ name: string;
778
+ config: ExperimentalLoggerConfig;
779
+ }
780
+ /**
781
+ * Configure meter provider.
782
+ * If omitted, a noop meter provider is used.
783
+ */
784
+ interface MeterProvider {
785
+ /**
786
+ * Configure metric readers.
787
+ * Property is required and must be non-null.
788
+ *
789
+ * @minItems 1
790
+ */
791
+ readers: MetricReader[];
792
+ /**
793
+ * Configure views.
794
+ * Each view has a selector which determines the instrument(s) it applies to, and a configuration for the resulting stream(s).
795
+ * If omitted, no views are registered.
796
+ *
797
+ * @minItems 1
798
+ */
799
+ views?: View[];
800
+ exemplar_filter?: ExemplarFilter;
801
+ 'meter_configurator/development'?: ExperimentalMeterConfigurator;
802
+ }
803
+ interface MetricReader {
804
+ periodic?: PeriodicMetricReader;
805
+ pull?: PullMetricReader;
806
+ }
807
+ /**
808
+ * Configure a periodic metric reader.
809
+ * If omitted, ignore.
810
+ */
811
+ interface PeriodicMetricReader {
812
+ /**
813
+ * Configure delay interval (in milliseconds) between start of two consecutive exports.
814
+ * Value must be non-negative.
815
+ * If omitted or null, 60000 is used.
816
+ */
817
+ interval?: number | null;
818
+ /**
819
+ * Configure maximum allowed time (in milliseconds) to export data.
820
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
821
+ * If omitted or null, 30000 is used.
822
+ */
823
+ timeout?: number | null;
824
+ /**
825
+ * Configure maximum export batch size.
826
+ * If omitted or null, no limit is used.
827
+ */
828
+ 'max_export_batch_size/development'?: number | null;
829
+ exporter: PushMetricExporter;
830
+ /**
831
+ * Configure metric producers.
832
+ * If omitted, no metric producers are added.
833
+ *
834
+ * @minItems 1
835
+ */
836
+ producers?: MetricProducer[];
837
+ cardinality_limits?: CardinalityLimits;
838
+ }
839
+ /**
840
+ * Configure exporter.
841
+ * Property is required and must be non-null.
842
+ */
843
+ interface PushMetricExporter {
844
+ otlp_http?: OtlpHttpMetricExporter;
845
+ otlp_grpc?: OtlpGrpcMetricExporter;
846
+ 'otlp_file/development'?: ExperimentalOtlpFileMetricExporter;
847
+ console?: ConsoleMetricExporter;
848
+ [k: string]: object | null | undefined;
849
+ }
850
+ interface MetricProducer {
851
+ opencensus?: OpenCensusMetricProducer;
852
+ [k: string]: object | null | undefined;
853
+ }
854
+ /**
855
+ * Configure cardinality limits.
856
+ * If omitted, default values as described in CardinalityLimits are used.
857
+ */
858
+ interface CardinalityLimits {
859
+ /**
860
+ * Configure default cardinality limit for all instrument types.
861
+ * Instrument-specific cardinality limits take priority.
862
+ * If omitted or null, 2000 is used.
863
+ */
864
+ default?: number | null;
865
+ /**
866
+ * Configure default cardinality limit for counter instruments.
867
+ * If omitted or null, the value from .default is used.
868
+ */
869
+ counter?: number | null;
870
+ /**
871
+ * Configure default cardinality limit for gauge instruments.
872
+ * If omitted or null, the value from .default is used.
873
+ */
874
+ gauge?: number | null;
875
+ /**
876
+ * Configure default cardinality limit for histogram instruments.
877
+ * If omitted or null, the value from .default is used.
878
+ */
879
+ histogram?: number | null;
880
+ /**
881
+ * Configure default cardinality limit for observable_counter instruments.
882
+ * If omitted or null, the value from .default is used.
883
+ */
884
+ observable_counter?: number | null;
885
+ /**
886
+ * Configure default cardinality limit for observable_gauge instruments.
887
+ * If omitted or null, the value from .default is used.
888
+ */
889
+ observable_gauge?: number | null;
890
+ /**
891
+ * Configure default cardinality limit for observable_up_down_counter instruments.
892
+ * If omitted or null, the value from .default is used.
893
+ */
894
+ observable_up_down_counter?: number | null;
895
+ /**
896
+ * Configure default cardinality limit for up_down_counter instruments.
897
+ * If omitted or null, the value from .default is used.
898
+ */
899
+ up_down_counter?: number | null;
900
+ }
901
+ /**
902
+ * Configure a pull based metric reader.
903
+ * If omitted, ignore.
904
+ */
905
+ interface PullMetricReader {
906
+ exporter: PullMetricExporter;
907
+ /**
908
+ * Configure metric producers.
909
+ * If omitted, no metric producers are added.
910
+ *
911
+ * @minItems 1
912
+ */
913
+ producers?: MetricProducer[];
914
+ cardinality_limits?: CardinalityLimits;
915
+ }
916
+ /**
917
+ * Configure exporter.
918
+ * Property is required and must be non-null.
919
+ */
920
+ interface PullMetricExporter {
921
+ 'prometheus/development'?: ExperimentalPrometheusMetricExporter;
922
+ [k: string]: object | null | undefined;
923
+ }
924
+ /**
925
+ * Configure Prometheus Exporter to add resource attributes as metrics attributes, where the resource attribute keys match the patterns.
926
+ * If omitted, no resource attributes are added.
927
+ */
928
+ interface IncludeExclude {
929
+ /**
930
+ * Configure list of value patterns to include.
931
+ * Matching is case-sensitive. Values are evaluated to match as follows:
932
+ * * If the value exactly matches.
933
+ * * If the value matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
934
+ * If omitted, all values are included.
935
+ *
936
+ * @minItems 1
937
+ */
938
+ included?: string[];
939
+ /**
940
+ * Configure list of value patterns to exclude. Applies after .included (i.e. excluded has higher priority than included).
941
+ * Matching is case-sensitive. Values are evaluated to match as follows:
942
+ * * If the value exactly matches.
943
+ * * If the value matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
944
+ * If omitted, .included attributes are included.
945
+ *
946
+ * @minItems 1
947
+ */
948
+ excluded?: string[];
949
+ }
950
+ interface View {
951
+ selector: ViewSelector;
952
+ stream: ViewStream;
953
+ }
954
+ /**
955
+ * Configure view selector.
956
+ * Selection criteria is additive as described in https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#instrument-selection-criteria.
957
+ * Property is required and must be non-null.
958
+ */
959
+ interface ViewSelector {
960
+ /**
961
+ * Configure instrument name selection criteria.
962
+ * If omitted or null, all instrument names match.
963
+ */
964
+ instrument_name?: string | null;
965
+ instrument_type?: InstrumentType;
966
+ /**
967
+ * Configure the instrument unit selection criteria.
968
+ * If omitted or null, all instrument units match.
969
+ */
970
+ unit?: string | null;
971
+ /**
972
+ * Configure meter name selection criteria.
973
+ * If omitted or null, all meter names match.
974
+ */
975
+ meter_name?: string | null;
976
+ /**
977
+ * Configure meter version selection criteria.
978
+ * If omitted or null, all meter versions match.
979
+ */
980
+ meter_version?: string | null;
981
+ /**
982
+ * Configure meter schema url selection criteria.
983
+ * If omitted or null, all meter schema URLs match.
984
+ */
985
+ meter_schema_url?: string | null;
986
+ }
987
+ /**
988
+ * Configure view stream.
989
+ * Property is required and must be non-null.
990
+ */
991
+ interface ViewStream {
992
+ /**
993
+ * Configure metric name of the resulting stream(s).
994
+ * If omitted or null, the instrument's original name is used.
995
+ */
996
+ name?: string | null;
997
+ /**
998
+ * Configure metric description of the resulting stream(s).
999
+ * If omitted or null, the instrument's origin description is used.
1000
+ */
1001
+ description?: string | null;
1002
+ aggregation?: Aggregation;
1003
+ /**
1004
+ * Configure the aggregation cardinality limit.
1005
+ * If omitted or null, the metric reader's default cardinality limit is used.
1006
+ */
1007
+ aggregation_cardinality_limit?: number | null;
1008
+ attribute_keys?: IncludeExclude;
1009
+ }
1010
+ /**
1011
+ * Configure aggregation of the resulting stream(s).
1012
+ * If omitted, default is used.
1013
+ */
1014
+ interface Aggregation {
1015
+ default?: DefaultAggregation;
1016
+ drop?: DropAggregation;
1017
+ explicit_bucket_histogram?: ExplicitBucketHistogramAggregation;
1018
+ base2_exponential_bucket_histogram?: Base2ExponentialBucketHistogramAggregation;
1019
+ last_value?: LastValueAggregation;
1020
+ sum?: SumAggregation;
1021
+ }
1022
+ /**
1023
+ * Configure meters.
1024
+ * If omitted, all meters use default values as described in ExperimentalMeterConfig.
1025
+ */
1026
+ interface ExperimentalMeterConfigurator {
1027
+ default_config?: ExperimentalMeterConfig;
1028
+ /**
1029
+ * Configure meters.
1030
+ * If omitted, all meters used .default_config.
1031
+ *
1032
+ * @minItems 1
1033
+ */
1034
+ meters?: ExperimentalMeterMatcherAndConfig[];
1035
+ }
1036
+ /**
1037
+ * Configure the default meter config used there is no matching entry in .meter_configurator/development.meters.
1038
+ * If omitted, unmatched .meters use default values as described in ExperimentalMeterConfig.
1039
+ */
1040
+ interface ExperimentalMeterConfig {
1041
+ /**
1042
+ * Configure if the meter is enabled or not.
1043
+ * If omitted, true is used.
1044
+ */
1045
+ enabled?: boolean;
1046
+ }
1047
+ interface ExperimentalMeterMatcherAndConfig {
1048
+ /**
1049
+ * Configure meter names to match. Matching is case-sensitive, evaluated as follows:
1050
+ *
1051
+ * * If the meter name exactly matches.
1052
+ * * If the meter name matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
1053
+ * Property is required and must be non-null.
1054
+ */
1055
+ name: string;
1056
+ config: ExperimentalMeterConfig;
1057
+ }
1058
+ /**
1059
+ * Configure text map context propagators.
1060
+ * If omitted, a noop propagator is used.
1061
+ */
1062
+ interface Propagator {
1063
+ /**
1064
+ * Configure the propagators in the composite text map propagator. Entries from .composite_list are appended to the list here with duplicates filtered out.
1065
+ * Built-in propagator keys include: tracecontext, baggage, b3, b3multi. Known third party keys include: xray.
1066
+ * If omitted, and .composite_list is omitted or null, a noop propagator is used.
1067
+ *
1068
+ * @minItems 1
1069
+ */
1070
+ composite?: TextMapPropagator[];
1071
+ /**
1072
+ * Configure the propagators in the composite text map propagator. Entries are appended to .composite with duplicates filtered out.
1073
+ * 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.
1074
+ * Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi. Known third party identifiers include: xray.
1075
+ * If omitted or null, and .composite is omitted or null, a noop propagator is used.
1076
+ */
1077
+ composite_list?: string | null;
1078
+ }
1079
+ interface TextMapPropagator {
1080
+ tracecontext?: TraceContextPropagator;
1081
+ baggage?: BaggagePropagator;
1082
+ b3?: B3Propagator;
1083
+ b3multi?: B3MultiPropagator;
1084
+ [k: string]: object | null | undefined;
1085
+ }
1086
+ /**
1087
+ * Configure tracer provider.
1088
+ * If omitted, a noop tracer provider is used.
1089
+ */
1090
+ interface TracerProvider {
1091
+ /**
1092
+ * Configure span processors.
1093
+ * Property is required and must be non-null.
1094
+ *
1095
+ * @minItems 1
1096
+ */
1097
+ processors: SpanProcessor[];
1098
+ limits?: SpanLimits;
1099
+ sampler?: Sampler;
1100
+ id_generator?: IdGenerator;
1101
+ 'tracer_configurator/development'?: ExperimentalTracerConfigurator;
1102
+ }
1103
+ interface SpanProcessor {
1104
+ batch?: BatchSpanProcessor;
1105
+ simple?: SimpleSpanProcessor;
1106
+ [k: string]: object | null | undefined;
1107
+ }
1108
+ /**
1109
+ * Configure a batch span processor.
1110
+ * If omitted, ignore.
1111
+ */
1112
+ interface BatchSpanProcessor {
1113
+ /**
1114
+ * Configure delay interval (in milliseconds) between two consecutive exports.
1115
+ * Value must be non-negative.
1116
+ * If omitted or null, 5000 is used.
1117
+ */
1118
+ schedule_delay?: number | null;
1119
+ /**
1120
+ * Configure maximum allowed time (in milliseconds) to export data.
1121
+ * Value must be non-negative. A value of 0 indicates no limit (infinity).
1122
+ * If omitted or null, 30000 is used.
1123
+ */
1124
+ export_timeout?: number | null;
1125
+ /**
1126
+ * Configure maximum queue size. Value must be positive.
1127
+ * If omitted or null, 2048 is used.
1128
+ */
1129
+ max_queue_size?: number | null;
1130
+ /**
1131
+ * Configure maximum batch size. Value must be positive.
1132
+ * If omitted or null, 512 is used.
1133
+ */
1134
+ max_export_batch_size?: number | null;
1135
+ exporter: SpanExporter;
1136
+ }
1137
+ /**
1138
+ * Configure exporter.
1139
+ * Property is required and must be non-null.
1140
+ */
1141
+ interface SpanExporter {
1142
+ otlp_http?: OtlpHttpExporter;
1143
+ otlp_grpc?: OtlpGrpcExporter;
1144
+ 'otlp_file/development'?: ExperimentalOtlpFileExporter;
1145
+ console?: ConsoleExporter;
1146
+ [k: string]: object | null | undefined;
1147
+ }
1148
+ /**
1149
+ * Configure a simple span processor.
1150
+ * If omitted, ignore.
1151
+ */
1152
+ interface SimpleSpanProcessor {
1153
+ exporter: SpanExporter;
1154
+ }
1155
+ /**
1156
+ * Configure span limits. See also attribute_limits.
1157
+ * If omitted, default values as described in SpanLimits are used.
1158
+ */
1159
+ interface SpanLimits {
1160
+ /**
1161
+ * Configure max attribute value size. Overrides .attribute_limits.attribute_value_length_limit.
1162
+ * Value must be non-negative.
1163
+ * If omitted or null, there is no limit.
1164
+ */
1165
+ attribute_value_length_limit?: number | null;
1166
+ /**
1167
+ * Configure max attribute count. Overrides .attribute_limits.attribute_count_limit.
1168
+ * Value must be non-negative.
1169
+ * If omitted or null, 128 is used.
1170
+ */
1171
+ attribute_count_limit?: number | null;
1172
+ /**
1173
+ * Configure max span event count.
1174
+ * Value must be non-negative.
1175
+ * If omitted or null, 128 is used.
1176
+ */
1177
+ event_count_limit?: number | null;
1178
+ /**
1179
+ * Configure max span link count.
1180
+ * Value must be non-negative.
1181
+ * If omitted or null, 128 is used.
1182
+ */
1183
+ link_count_limit?: number | null;
1184
+ /**
1185
+ * Configure max attributes per span event.
1186
+ * Value must be non-negative.
1187
+ * If omitted or null, 128 is used.
1188
+ */
1189
+ event_attribute_count_limit?: number | null;
1190
+ /**
1191
+ * Configure max attributes per span link.
1192
+ * Value must be non-negative.
1193
+ * If omitted or null, 128 is used.
1194
+ */
1195
+ link_attribute_count_limit?: number | null;
1196
+ }
1197
+ /**
1198
+ * Configure the sampler.
1199
+ * If omitted, parent based sampler with a root of always_on is used.
1200
+ */
1201
+ interface Sampler {
1202
+ always_off?: AlwaysOffSampler;
1203
+ always_on?: AlwaysOnSampler;
1204
+ 'composite/development'?: ExperimentalComposableSampler;
1205
+ 'jaeger_remote/development'?: ExperimentalJaegerRemoteSampler;
1206
+ parent_based?: ParentBasedSampler;
1207
+ 'probability/development'?: ExperimentalProbabilitySampler;
1208
+ trace_id_ratio_based?: TraceIdRatioBasedSampler;
1209
+ [k: string]: object | null | undefined;
1210
+ }
1211
+ /**
1212
+ * Configure sampler to be composite.
1213
+ * If omitted, ignore.
1214
+ */
1215
+ interface ExperimentalComposableSampler {
1216
+ always_off?: ExperimentalComposableAlwaysOffSampler;
1217
+ always_on?: ExperimentalComposableAlwaysOnSampler;
1218
+ parent_threshold?: ExperimentalComposableParentThresholdSampler;
1219
+ probability?: ExperimentalComposableProbabilitySampler;
1220
+ rule_based?: ExperimentalComposableRuleBasedSampler;
1221
+ [k: string]: object | null | undefined;
1222
+ }
1223
+ /**
1224
+ * Configure sampler to be parent_threshold.
1225
+ * If omitted, ignore.
1226
+ */
1227
+ interface ExperimentalComposableParentThresholdSampler {
1228
+ root: ExperimentalComposableSampler;
1229
+ }
1230
+ /**
1231
+ * A rule for ExperimentalComposableRuleBasedSampler. A rule can have multiple match conditions - the sampler will be applied if all match.
1232
+ * If no conditions are specified, the rule matches all spans that reach it.
1233
+ */
1234
+ interface ExperimentalComposableRuleBasedSamplerRule {
1235
+ attribute_values?: ExperimentalComposableRuleBasedSamplerRuleAttributeValues;
1236
+ attribute_patterns?: ExperimentalComposableRuleBasedSamplerRuleAttributePatterns;
1237
+ /**
1238
+ * The span kinds to match. If the span's kind matches any of these, it matches.
1239
+ * Values include:
1240
+ * * client: client, a client span.
1241
+ * * consumer: consumer, a consumer span.
1242
+ * * internal: internal, an internal span.
1243
+ * * producer: producer, a producer span.
1244
+ * * server: server, a server span.
1245
+ * If omitted, ignore.
1246
+ *
1247
+ * @minItems 1
1248
+ */
1249
+ span_kinds?: SpanKind[];
1250
+ /**
1251
+ * The parent span types to match.
1252
+ * Values include:
1253
+ * * local: local, a local parent.
1254
+ * * none: none, no parent, i.e., the trace root.
1255
+ * * remote: remote, a remote parent.
1256
+ * If omitted, ignore.
1257
+ *
1258
+ * @minItems 1
1259
+ */
1260
+ parent?: ExperimentalSpanParent[];
1261
+ sampler: ExperimentalComposableSampler;
1262
+ }
1263
+ /**
1264
+ * Values to match against a single attribute. Non-string attributes are matched using their string representation:
1265
+ * for example, a value of "404" would match the http.response.status_code 404. For array attributes, if any
1266
+ * item matches, it is considered a match.
1267
+ * If omitted, ignore.
1268
+ */
1269
+ interface ExperimentalComposableRuleBasedSamplerRuleAttributeValues {
1270
+ /**
1271
+ * The attribute key to match against.
1272
+ * Property is required and must be non-null.
1273
+ */
1274
+ key: string;
1275
+ /**
1276
+ * The attribute values to match against. If the attribute's value matches any of these, it matches.
1277
+ * Property is required and must be non-null.
1278
+ *
1279
+ * @minItems 1
1280
+ */
1281
+ values: string[];
1282
+ }
1283
+ /**
1284
+ * Patterns to match against a single attribute. Non-string attributes are matched using their string representation:
1285
+ * for example, a pattern of "4*" would match any http.response.status_code in 400-499. For array attributes, if any
1286
+ * item matches, it is considered a match.
1287
+ * If omitted, ignore.
1288
+ */
1289
+ interface ExperimentalComposableRuleBasedSamplerRuleAttributePatterns {
1290
+ /**
1291
+ * The attribute key to match against.
1292
+ * Property is required and must be non-null.
1293
+ */
1294
+ key: string;
1295
+ /**
1296
+ * Configure list of value patterns to include.
1297
+ * Matching is case-sensitive. Values are evaluated to match as follows:
1298
+ * * If the value exactly matches.
1299
+ * * If the value matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
1300
+ * If omitted, all values are included.
1301
+ *
1302
+ * @minItems 1
1303
+ */
1304
+ included?: string[];
1305
+ /**
1306
+ * Configure list of value patterns to exclude. Applies after .included (i.e. excluded has higher priority than included).
1307
+ * Matching is case-sensitive. Values are evaluated to match as follows:
1308
+ * * If the value exactly matches.
1309
+ * * If the value matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
1310
+ * If omitted, .included attributes are included.
1311
+ *
1312
+ * @minItems 1
1313
+ */
1314
+ excluded?: string[];
1315
+ }
1316
+ /**
1317
+ * Configure the trace and span ID generator.
1318
+ * If omitted, RandomIdGenerator is used.
1319
+ */
1320
+ interface IdGenerator {
1321
+ random?: RandomIdGenerator;
1322
+ [k: string]: object | null | undefined;
1323
+ }
1324
+ /**
1325
+ * Configure tracers.
1326
+ * If omitted, all tracers use default values as described in ExperimentalTracerConfig.
1327
+ */
1328
+ interface ExperimentalTracerConfigurator {
1329
+ default_config?: ExperimentalTracerConfig;
1330
+ /**
1331
+ * Configure tracers.
1332
+ * If omitted, all tracers use .default_config.
1333
+ *
1334
+ * @minItems 1
1335
+ */
1336
+ tracers?: ExperimentalTracerMatcherAndConfig[];
1337
+ }
1338
+ /**
1339
+ * Configure the default tracer config used there is no matching entry in .tracer_configurator/development.tracers.
1340
+ * If omitted, unmatched .tracers use default values as described in ExperimentalTracerConfig.
1341
+ */
1342
+ interface ExperimentalTracerConfig {
1343
+ /**
1344
+ * Configure if the tracer is enabled or not.
1345
+ * If omitted, true is used.
1346
+ */
1347
+ enabled?: boolean;
1348
+ }
1349
+ interface ExperimentalTracerMatcherAndConfig {
1350
+ /**
1351
+ * Configure tracer names to match. Matching is case-sensitive, evaluated as follows:
1352
+ *
1353
+ * * If the tracer name exactly matches.
1354
+ * * If the tracer name matches the wildcard pattern, where '?' matches any single character and '*' matches any number of characters including none.
1355
+ * Property is required and must be non-null.
1356
+ */
1357
+ name: string;
1358
+ config: ExperimentalTracerConfig;
1359
+ }
1360
+ /**
1361
+ * Configure resource for all signals.
1362
+ * If omitted, the default resource is used.
1363
+ */
1364
+ interface Resource {
1365
+ /**
1366
+ * Configure resource attributes. Entries have higher priority than entries from .resource.attributes_list.
1367
+ * If omitted, no resource attributes are added.
1368
+ *
1369
+ * @minItems 1
1370
+ */
1371
+ attributes?: AttributeNameValue[];
1372
+ 'detection/development'?: ExperimentalResourceDetection;
1373
+ /**
1374
+ * Configure resource schema URL.
1375
+ * If omitted or null, no schema URL is used.
1376
+ */
1377
+ schema_url?: string | null;
1378
+ /**
1379
+ * Configure resource attributes. Entries have lower priority than entries from .resource.attributes.
1380
+ * 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.
1381
+ * If omitted or null, no resource attributes are added.
1382
+ */
1383
+ attributes_list?: string | null;
1384
+ }
1385
+ interface AttributeNameValue {
1386
+ /**
1387
+ * The attribute name.
1388
+ * Property is required and must be non-null.
1389
+ */
1390
+ name: string;
1391
+ /**
1392
+ * The attribute value.
1393
+ * The type of value must match .type.
1394
+ * Property must be present, but if null the entry is ignored.
1395
+ */
1396
+ value: string | number | boolean | null | string[] | boolean[] | number[];
1397
+ type?: AttributeType;
1398
+ }
1399
+ /**
1400
+ * Configure resource detection.
1401
+ * If omitted, resource detection is disabled.
1402
+ */
1403
+ interface ExperimentalResourceDetection {
1404
+ attributes?: IncludeExclude;
1405
+ /**
1406
+ * Configure resource detectors.
1407
+ * Resource detector names are dependent on the SDK language ecosystem. Please consult documentation for each respective language.
1408
+ * If omitted, no resource detectors are enabled.
1409
+ *
1410
+ * @minItems 1
1411
+ */
1412
+ detectors?: ExperimentalResourceDetector[];
1413
+ }
1414
+ interface ExperimentalResourceDetector {
1415
+ container?: ExperimentalContainerResourceDetector;
1416
+ host?: ExperimentalHostResourceDetector;
1417
+ process?: ExperimentalProcessResourceDetector;
1418
+ service?: ExperimentalServiceResourceDetector;
1419
+ [k: string]: object | null | undefined;
1420
+ }
1421
+ /**
1422
+ * Configure instrumentation.
1423
+ * If omitted, instrumentation defaults are used.
1424
+ */
1425
+ interface ExperimentalInstrumentation {
1426
+ general?: ExperimentalGeneralInstrumentation;
1427
+ cpp?: ExperimentalLanguageSpecificInstrumentation;
1428
+ dotnet?: ExperimentalLanguageSpecificInstrumentation;
1429
+ erlang?: ExperimentalLanguageSpecificInstrumentation;
1430
+ go?: ExperimentalLanguageSpecificInstrumentation;
1431
+ java?: ExperimentalLanguageSpecificInstrumentation;
1432
+ js?: ExperimentalLanguageSpecificInstrumentation;
1433
+ php?: ExperimentalLanguageSpecificInstrumentation;
1434
+ python?: ExperimentalLanguageSpecificInstrumentation;
1435
+ ruby?: ExperimentalLanguageSpecificInstrumentation;
1436
+ rust?: ExperimentalLanguageSpecificInstrumentation;
1437
+ swift?: ExperimentalLanguageSpecificInstrumentation;
1438
+ }
1439
+ /**
1440
+ * Configure general SemConv options that may apply to multiple languages and instrumentations.
1441
+ * Instrumenation may merge general config options with the language specific configuration at .instrumentation.<language>.
1442
+ * If omitted, default values as described in ExperimentalGeneralInstrumentation are used.
1443
+ */
1444
+ interface ExperimentalGeneralInstrumentation {
1445
+ http?: ExperimentalHttpInstrumentation;
1446
+ code?: ExperimentalCodeInstrumentation;
1447
+ db?: ExperimentalDbInstrumentation;
1448
+ gen_ai?: ExperimentalGenAiInstrumentation;
1449
+ messaging?: ExperimentalMessagingInstrumentation;
1450
+ rpc?: ExperimentalRpcInstrumentation;
1451
+ sanitization?: ExperimentalSanitization;
1452
+ /**
1453
+ * Configure semantic convention stability opt-in as a comma-separated list.
1454
+ * This property follows the format and semantics of the OTEL_SEMCONV_STABILITY_OPT_IN environment variable.
1455
+ * Controls the emission of stable vs. experimental semantic conventions for instrumentation.
1456
+ * This setting is only intended for migrating from experimental to stable semantic conventions.
1457
+ *
1458
+ * Known values include:
1459
+ * - http: Emit stable HTTP and networking conventions only
1460
+ * - http/dup: Emit both old and stable HTTP and networking conventions (for phased migration)
1461
+ * - database: Emit stable database conventions only
1462
+ * - database/dup: Emit both old and stable database conventions (for phased migration)
1463
+ * - rpc: Emit stable RPC conventions only
1464
+ * - rpc/dup: Emit both experimental and stable RPC conventions (for phased migration)
1465
+ * - messaging: Emit stable messaging conventions only
1466
+ * - messaging/dup: Emit both old and stable messaging conventions (for phased migration)
1467
+ * - code: Emit stable code conventions only
1468
+ * - code/dup: Emit both old and stable code conventions (for phased migration)
1469
+ *
1470
+ * Multiple values can be specified as a comma-separated list (e.g., "http,database/dup").
1471
+ * Additional signal types may be supported in future versions.
1472
+ *
1473
+ * Domain-specific semconv properties (e.g., .instrumentation/development.general.db.semconv) take precedence over this general setting.
1474
+ *
1475
+ * See:
1476
+ * - HTTP migration: https://opentelemetry.io/docs/specs/semconv/non-normative/http-migration/
1477
+ * - Database migration: https://opentelemetry.io/docs/specs/semconv/database/
1478
+ * - RPC: https://opentelemetry.io/docs/specs/semconv/rpc/
1479
+ * - Messaging: https://opentelemetry.io/docs/specs/semconv/messaging/messaging-spans/
1480
+ * If omitted or null, no opt-in is configured and instrumentations continue emitting their default semantic convention version.
1481
+ */
1482
+ stability_opt_in_list?: string | null;
1483
+ }
1484
+ /**
1485
+ * Configure instrumentations following the http semantic conventions.
1486
+ * See http semantic conventions: https://opentelemetry.io/docs/specs/semconv/http/
1487
+ * If omitted, defaults as described in ExperimentalHttpInstrumentation are used.
1488
+ */
1489
+ interface ExperimentalHttpInstrumentation {
1490
+ semconv?: ExperimentalSemconvConfig;
1491
+ client?: ExperimentalHttpClientInstrumentation;
1492
+ server?: ExperimentalHttpServerInstrumentation;
1493
+ }
1494
+ /**
1495
+ * Configure HTTP semantic convention version and migration behavior.
1496
+ *
1497
+ * This property takes precedence over the .instrumentation/development.general.stability_opt_in_list setting.
1498
+ *
1499
+ * See HTTP migration: https://opentelemetry.io/docs/specs/semconv/non-normative/http-migration/
1500
+ * If omitted, uses the general stability_opt_in_list setting, or instrumentations continue emitting their default semantic convention version if not set.
1501
+ */
1502
+ interface ExperimentalSemconvConfig {
1503
+ /**
1504
+ * The target semantic convention version for this domain (e.g., 1).
1505
+ * If omitted or null, the latest stable version is used, or if no stable version is available and .experimental is true then the latest experimental version is used.
1506
+ */
1507
+ version?: number | null;
1508
+ /**
1509
+ * Use latest experimental semantic conventions (before stable is available or to enable experimental features on top of stable conventions).
1510
+ * If omitted or null, false is used.
1511
+ */
1512
+ experimental?: boolean | null;
1513
+ /**
1514
+ * When true, also emit the previous major version alongside the target version.
1515
+ * For version=1, the previous version refers to the pre-stable conventions that the instrumentation emitted before the first stable semantic convention version was defined.
1516
+ * For version=2 and above, the previous version is the prior stable major version (e.g., version=2, dual_emit=true emits both v2 and v1).
1517
+ * Enables dual-emit for phased migration between versions.
1518
+ * If omitted or null, false is used.
1519
+ */
1520
+ dual_emit?: boolean | null;
1521
+ }
1522
+ /**
1523
+ * Configure instrumentations following the http client semantic conventions.
1524
+ * If omitted, defaults as described in ExperimentalHttpClientInstrumentation are used.
1525
+ */
1526
+ interface ExperimentalHttpClientInstrumentation {
1527
+ /**
1528
+ * Configure headers to capture for outbound http requests.
1529
+ * If omitted, no outbound request headers are captured.
1530
+ *
1531
+ * @minItems 1
1532
+ */
1533
+ request_captured_headers?: string[];
1534
+ /**
1535
+ * Configure headers to capture for inbound http responses.
1536
+ * If omitted, no inbound response headers are captured.
1537
+ *
1538
+ * @minItems 1
1539
+ */
1540
+ response_captured_headers?: string[];
1541
+ /**
1542
+ * Override the default list of known HTTP methods.
1543
+ * Known methods are case-sensitive.
1544
+ * This is a full override of the default known methods, not a list of known methods in addition to the defaults.
1545
+ * If omitted, HTTP methods GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH are known.
1546
+ *
1547
+ * @minItems 0
1548
+ */
1549
+ known_methods?: string[];
1550
+ }
1551
+ /**
1552
+ * Configure instrumentations following the http server semantic conventions.
1553
+ * If omitted, defaults as described in ExperimentalHttpServerInstrumentation are used.
1554
+ */
1555
+ interface ExperimentalHttpServerInstrumentation {
1556
+ /**
1557
+ * Configure headers to capture for inbound http requests.
1558
+ * If omitted, no request headers are captured.
1559
+ *
1560
+ * @minItems 1
1561
+ */
1562
+ request_captured_headers?: string[];
1563
+ /**
1564
+ * Configure headers to capture for outbound http responses.
1565
+ * If omitted, no response headers are captures.
1566
+ *
1567
+ * @minItems 1
1568
+ */
1569
+ response_captured_headers?: string[];
1570
+ /**
1571
+ * Override the default list of known HTTP methods.
1572
+ * Known methods are case-sensitive.
1573
+ * This is a full override of the default known methods, not a list of known methods in addition to the defaults.
1574
+ * If omitted, HTTP methods GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH are known.
1575
+ *
1576
+ * @minItems 0
1577
+ */
1578
+ known_methods?: string[];
1579
+ }
1580
+ /**
1581
+ * Configure instrumentations following the code semantic conventions.
1582
+ * See code semantic conventions: https://opentelemetry.io/docs/specs/semconv/registry/attributes/code/
1583
+ * If omitted, defaults as described in ExperimentalCodeInstrumentation are used.
1584
+ */
1585
+ interface ExperimentalCodeInstrumentation {
1586
+ semconv?: ExperimentalSemconvConfig;
1587
+ }
1588
+ /**
1589
+ * Configure instrumentations following the database semantic conventions.
1590
+ * See database semantic conventions: https://opentelemetry.io/docs/specs/semconv/database/
1591
+ * If omitted, defaults as described in ExperimentalDbInstrumentation are used.
1592
+ */
1593
+ interface ExperimentalDbInstrumentation {
1594
+ semconv?: ExperimentalSemconvConfig;
1595
+ }
1596
+ /**
1597
+ * Configure instrumentations following the GenAI semantic conventions.
1598
+ * See GenAI semantic conventions: https://opentelemetry.io/docs/specs/semconv/gen-ai/
1599
+ * If omitted, defaults as described in ExperimentalGenAiInstrumentation are used.
1600
+ */
1601
+ interface ExperimentalGenAiInstrumentation {
1602
+ semconv?: ExperimentalSemconvConfig;
1603
+ }
1604
+ /**
1605
+ * Configure instrumentations following the messaging semantic conventions.
1606
+ * See messaging semantic conventions: https://opentelemetry.io/docs/specs/semconv/messaging/
1607
+ * If omitted, defaults as described in ExperimentalMessagingInstrumentation are used.
1608
+ */
1609
+ interface ExperimentalMessagingInstrumentation {
1610
+ semconv?: ExperimentalSemconvConfig;
1611
+ }
1612
+ /**
1613
+ * Configure instrumentations following the RPC semantic conventions.
1614
+ * See RPC semantic conventions: https://opentelemetry.io/docs/specs/semconv/rpc/
1615
+ * If omitted, defaults as described in ExperimentalRpcInstrumentation are used.
1616
+ */
1617
+ interface ExperimentalRpcInstrumentation {
1618
+ semconv?: ExperimentalSemconvConfig;
1619
+ }
1620
+ /**
1621
+ * Configure general sanitization options.
1622
+ * If omitted, defaults as described in ExperimentalSanitization are used.
1623
+ */
1624
+ interface ExperimentalSanitization {
1625
+ url?: ExperimentalUrlSanitization;
1626
+ }
1627
+ /**
1628
+ * Configure URL sanitization options.
1629
+ * If omitted, defaults as described in ExperimentalUrlSanitization are used.
1630
+ */
1631
+ interface ExperimentalUrlSanitization {
1632
+ /**
1633
+ * List of query parameter names whose values should be redacted from URLs.
1634
+ * Query parameter names are case-sensitive.
1635
+ * This is a full override of the default sensitive query parameter keys, it is not a list of keys in addition to the defaults.
1636
+ * Set to an empty array to disable query parameter redaction.
1637
+ * If omitted, the default sensitive query parameter list as defined by the url semantic conventions (https://github.com/open-telemetry/semantic-conventions/blob/main/docs/registry/attributes/url.md) is used.
1638
+ *
1639
+ * @minItems 0
1640
+ */
1641
+ sensitive_query_parameters?: string[];
1642
+ }
1643
+ /**
1644
+ * Configure C++ language-specific instrumentation libraries.
1645
+ * If omitted, instrumentation defaults are used.
1646
+ */
1647
+ interface ExperimentalLanguageSpecificInstrumentation {
1648
+ [k: string]: object;
1649
+ }
1650
+ /**
1651
+ * Defines configuration parameters specific to a particular OpenTelemetry distribution or vendor.
1652
+ * This section provides a standardized location for distribution-specific settings
1653
+ * that are not part of the OpenTelemetry configuration model.
1654
+ * It allows vendors to expose their own extensions and general configuration options.
1655
+ * If omitted, distribution defaults are used.
1656
+ */
1657
+ interface Distribution {
1658
+ [k: string]: object;
1659
+ }
1660
+ //#endregion
1661
+ export { Aggregation, AlwaysOffSampler, AlwaysOnSampler, AttributeLimits, AttributeNameValue, AttributeType, B3MultiPropagator, B3Propagator, BaggagePropagator, Base2ExponentialBucketHistogramAggregation, BatchLogRecordProcessor, BatchSpanProcessor, CardinalityLimits, ConfigurationModel, ConsoleExporter, ConsoleMetricExporter, DefaultAggregation, Distribution, DropAggregation, ExemplarFilter, ExperimentalCodeInstrumentation, ExperimentalComposableAlwaysOffSampler, ExperimentalComposableAlwaysOnSampler, ExperimentalComposableParentThresholdSampler, ExperimentalComposableProbabilitySampler, ExperimentalComposableRuleBasedSampler, ExperimentalComposableRuleBasedSamplerRule, ExperimentalComposableRuleBasedSamplerRuleAttributePatterns, ExperimentalComposableRuleBasedSamplerRuleAttributeValues, ExperimentalComposableSampler, ExperimentalContainerResourceDetector, ExperimentalDbInstrumentation, ExperimentalEventToSpanEventBridgeLogRecordProcessor, ExperimentalGenAiInstrumentation, ExperimentalGeneralInstrumentation, ExperimentalHostResourceDetector, ExperimentalHttpClientInstrumentation, ExperimentalHttpInstrumentation, ExperimentalHttpServerInstrumentation, ExperimentalInstrumentation, ExperimentalJaegerRemoteSampler, ExperimentalLanguageSpecificInstrumentation, ExperimentalLoggerConfig, ExperimentalLoggerConfigurator, ExperimentalLoggerMatcherAndConfig, ExperimentalMessagingInstrumentation, ExperimentalMeterConfig, ExperimentalMeterConfigurator, ExperimentalMeterMatcherAndConfig, ExperimentalOtlpFileExporter, ExperimentalOtlpFileMetricExporter, ExperimentalProbabilitySampler, ExperimentalProcessResourceDetector, ExperimentalPrometheusMetricExporter, ExperimentalPrometheusTranslationStrategy, ExperimentalResourceDetection, ExperimentalResourceDetector, ExperimentalRpcInstrumentation, ExperimentalSanitization, ExperimentalSemconvConfig, ExperimentalServiceResourceDetector, ExperimentalSpanParent, ExperimentalTracerConfig, ExperimentalTracerConfigurator, ExperimentalTracerMatcherAndConfig, ExperimentalUrlSanitization, ExplicitBucketHistogramAggregation, ExporterDefaultHistogramAggregation, ExporterTemporalityPreference, GrpcTls, HttpTls, IdGenerator, IncludeExclude, InstrumentType, LastValueAggregation, LogRecordExporter, LogRecordLimits, LogRecordProcessor, LoggerProvider, MeterProvider, MetricProducer, MetricReader, NameStringValuePair, OpenCensusMetricProducer, OtlpGrpcExporter, OtlpGrpcMetricExporter, OtlpHttpEncoding, OtlpHttpExporter, OtlpHttpMetricExporter, ParentBasedSampler, PeriodicMetricReader, Propagator, PullMetricExporter, PullMetricReader, PushMetricExporter, RandomIdGenerator, Resource, Sampler, SeverityNumber, SimpleLogRecordProcessor, SimpleSpanProcessor, SpanExporter, SpanKind, SpanLimits, SpanProcessor, SumAggregation, TextMapPropagator, TraceContextPropagator, TraceIdRatioBasedSampler, TracerProvider, View, ViewSelector, ViewStream };
1662
+ //# sourceMappingURL=types.d.mts.map