Debian Codegraph @

otelconf/generated_config.go

raw
1 // Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.
2
3 package otelconf
4
5 type Aggregation struct {
6 // Configures the stream to collect data for the exponential histogram metric
7 // point, which uses a base-2 exponential formula to determine bucket boundaries
8 // and an integer scale parameter to control resolution. See
9 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#base2-exponential-bucket-histogram-aggregation
10 // for details.
11 // If omitted, ignore.
12 //
13 Base2ExponentialBucketHistogram *Base2ExponentialBucketHistogramAggregation `json:"base2_exponential_bucket_histogram,omitempty,omitzero" yaml:"base2_exponential_bucket_histogram,omitempty" mapstructure:"base2_exponential_bucket_histogram,omitempty"`
14
15 // Configures the stream to use the instrument kind to select an aggregation and
16 // advisory parameters to influence aggregation configuration parameters. See
17 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#default-aggregation
18 // for details.
19 // If omitted, ignore.
20 //
21 Default DefaultAggregation `json:"default,omitempty,omitzero" yaml:"default,omitempty" mapstructure:"default,omitempty"`
22
23 // Configures the stream to ignore/drop all instrument measurements. See
24 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#drop-aggregation
25 // for details.
26 // If omitted, ignore.
27 //
28 Drop DropAggregation `json:"drop,omitempty,omitzero" yaml:"drop,omitempty" mapstructure:"drop,omitempty"`
29
30 // Configures the stream to collect data for the histogram metric point using a
31 // set of explicit boundary values for histogram bucketing. See
32 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#explicit-bucket-histogram-aggregation
33 // for details
34 // If omitted, ignore.
35 //
36 ExplicitBucketHistogram *ExplicitBucketHistogramAggregation `json:"explicit_bucket_histogram,omitempty,omitzero" yaml:"explicit_bucket_histogram,omitempty" mapstructure:"explicit_bucket_histogram,omitempty"`
37
38 // Configures the stream to collect data using the last measurement. See
39 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#last-value-aggregation
40 // for details.
41 // If omitted, ignore.
42 //
43 LastValue LastValueAggregation `json:"last_value,omitempty,omitzero" yaml:"last_value,omitempty" mapstructure:"last_value,omitempty"`
44
45 // Configures the stream to collect the arithmetic sum of measurement values. See
46 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#sum-aggregation
47 // for details.
48 // If omitted, ignore.
49 //
50 Sum SumAggregation `json:"sum,omitempty,omitzero" yaml:"sum,omitempty" mapstructure:"sum,omitempty"`
51 }
52
53 type AlwaysOffSampler map[string]interface{}
54
55 type AlwaysOnSampler map[string]interface{}
56
57 type AttributeLimits struct {
58 // Configure max attribute count.
59 // Value must be non-negative.
60 // If omitted or null, 128 is used.
61 //
62 AttributeCountLimit AttributeLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
63
64 // Configure max attribute value size.
65 // Value must be non-negative.
66 // If omitted or null, there is no limit.
67 //
68 AttributeValueLengthLimit AttributeLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
69 }
70
71 // Configure max attribute count.
72 // Value must be non-negative.
73 // If omitted or null, 128 is used.
74 type AttributeLimitsAttributeCountLimit *int
75
76 // Configure max attribute value size.
77 // Value must be non-negative.
78 // If omitted or null, there is no limit.
79 type AttributeLimitsAttributeValueLengthLimit *int
80
81 type AttributeNameValue struct {
82 // The attribute name.
83 // Property is required and must be non-null.
84 //
85 Name string `json:"name" yaml:"name" mapstructure:"name"`
86
87 // The attribute type.
88 // Values include:
89 // * bool: Boolean attribute value.
90 // * bool_array: Boolean array attribute value.
91 // * double: Double attribute value.
92 // * double_array: Double array attribute value.
93 // * int: Integer attribute value.
94 // * int_array: Integer array attribute value.
95 // * string: String attribute value.
96 // * string_array: String array attribute value.
97 // If omitted, string is used.
98 //
99 Type *AttributeType `json:"type,omitempty,omitzero" yaml:"type,omitempty" mapstructure:"type,omitempty"`
100
101 // The attribute value.
102 // The type of value must match .type.
103 // Property is required and must be non-null.
104 //
105 Value interface{} `json:"value" yaml:"value" mapstructure:"value"`
106 }
107
108 type AttributeType string
109
110 const AttributeTypeBool AttributeType = "bool"
111 const AttributeTypeBoolArray AttributeType = "bool_array"
112 const AttributeTypeDouble AttributeType = "double"
113 const AttributeTypeDoubleArray AttributeType = "double_array"
114 const AttributeTypeInt AttributeType = "int"
115 const AttributeTypeIntArray AttributeType = "int_array"
116 const AttributeTypeString AttributeType = "string"
117 const AttributeTypeStringArray AttributeType = "string_array"
118
119 type B3MultiPropagator map[string]interface{}
120
121 type B3Propagator map[string]interface{}
122
123 type BaggagePropagator map[string]interface{}
124
125 type Base2ExponentialBucketHistogramAggregation struct {
126 // Configure the max scale factor.
127 // If omitted or null, 20 is used.
128 //
129 MaxScale Base2ExponentialBucketHistogramAggregationMaxScale `json:"max_scale,omitempty,omitzero" yaml:"max_scale,omitempty" mapstructure:"max_scale,omitempty"`
130
131 // Configure the maximum number of buckets in each of the positive and negative
132 // ranges, not counting the special zero bucket.
133 // If omitted or null, 160 is used.
134 //
135 MaxSize Base2ExponentialBucketHistogramAggregationMaxSize `json:"max_size,omitempty,omitzero" yaml:"max_size,omitempty" mapstructure:"max_size,omitempty"`
136
137 // Configure whether or not to record min and max.
138 // If omitted or null, true is used.
139 //
140 RecordMinMax Base2ExponentialBucketHistogramAggregationRecordMinMax `json:"record_min_max,omitempty,omitzero" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"`
141 }
142
143 // Configure the max scale factor.
144 // If omitted or null, 20 is used.
145 type Base2ExponentialBucketHistogramAggregationMaxScale *int
146
147 // Configure the maximum number of buckets in each of the positive and negative
148 // ranges, not counting the special zero bucket.
149 // If omitted or null, 160 is used.
150 type Base2ExponentialBucketHistogramAggregationMaxSize *int
151
152 // Configure whether or not to record min and max.
153 // If omitted or null, true is used.
154 type Base2ExponentialBucketHistogramAggregationRecordMinMax *bool
155
156 type BatchLogRecordProcessor struct {
157 // Configure maximum allowed time (in milliseconds) to export data.
158 // Value must be non-negative. A value of 0 indicates no limit (infinity).
159 // If omitted or null, 30000 is used.
160 //
161 ExportTimeout BatchLogRecordProcessorExportTimeout `json:"export_timeout,omitempty,omitzero" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"`
162
163 // Configure exporter.
164 // Property is required and must be non-null.
165 //
166 Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
167
168 // Configure maximum batch size. Value must be positive.
169 // If omitted or null, 512 is used.
170 //
171 MaxExportBatchSize BatchLogRecordProcessorMaxExportBatchSize `json:"max_export_batch_size,omitempty,omitzero" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"`
172
173 // Configure maximum queue size. Value must be positive.
174 // If omitted or null, 2048 is used.
175 //
176 MaxQueueSize BatchLogRecordProcessorMaxQueueSize `json:"max_queue_size,omitempty,omitzero" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"`
177
178 // Configure delay interval (in milliseconds) between two consecutive exports.
179 // Value must be non-negative.
180 // If omitted or null, 1000 is used.
181 //
182 ScheduleDelay BatchLogRecordProcessorScheduleDelay `json:"schedule_delay,omitempty,omitzero" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"`
183 }
184
185 // Configure maximum allowed time (in milliseconds) to export data.
186 // Value must be non-negative. A value of 0 indicates no limit (infinity).
187 // If omitted or null, 30000 is used.
188 type BatchLogRecordProcessorExportTimeout *int
189
190 // Configure maximum batch size. Value must be positive.
191 // If omitted or null, 512 is used.
192 type BatchLogRecordProcessorMaxExportBatchSize *int
193
194 // Configure maximum queue size. Value must be positive.
195 // If omitted or null, 2048 is used.
196 type BatchLogRecordProcessorMaxQueueSize *int
197
198 // Configure delay interval (in milliseconds) between two consecutive exports.
199 // Value must be non-negative.
200 // If omitted or null, 1000 is used.
201 type BatchLogRecordProcessorScheduleDelay *int
202
203 type BatchSpanProcessor struct {
204 // Configure maximum allowed time (in milliseconds) to export data.
205 // Value must be non-negative. A value of 0 indicates no limit (infinity).
206 // If omitted or null, 30000 is used.
207 //
208 ExportTimeout BatchSpanProcessorExportTimeout `json:"export_timeout,omitempty,omitzero" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"`
209
210 // Configure exporter.
211 // Property is required and must be non-null.
212 //
213 Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
214
215 // Configure maximum batch size. Value must be positive.
216 // If omitted or null, 512 is used.
217 //
218 MaxExportBatchSize BatchSpanProcessorMaxExportBatchSize `json:"max_export_batch_size,omitempty,omitzero" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"`
219
220 // Configure maximum queue size. Value must be positive.
221 // If omitted or null, 2048 is used.
222 //
223 MaxQueueSize BatchSpanProcessorMaxQueueSize `json:"max_queue_size,omitempty,omitzero" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"`
224
225 // Configure delay interval (in milliseconds) between two consecutive exports.
226 // Value must be non-negative.
227 // If omitted or null, 5000 is used.
228 //
229 ScheduleDelay BatchSpanProcessorScheduleDelay `json:"schedule_delay,omitempty,omitzero" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"`
230 }
231
232 // Configure maximum allowed time (in milliseconds) to export data.
233 // Value must be non-negative. A value of 0 indicates no limit (infinity).
234 // If omitted or null, 30000 is used.
235 type BatchSpanProcessorExportTimeout *int
236
237 // Configure maximum batch size. Value must be positive.
238 // If omitted or null, 512 is used.
239 type BatchSpanProcessorMaxExportBatchSize *int
240
241 // Configure maximum queue size. Value must be positive.
242 // If omitted or null, 2048 is used.
243 type BatchSpanProcessorMaxQueueSize *int
244
245 // Configure delay interval (in milliseconds) between two consecutive exports.
246 // Value must be non-negative.
247 // If omitted or null, 5000 is used.
248 type BatchSpanProcessorScheduleDelay *int
249
250 type CardinalityLimits struct {
251 // Configure default cardinality limit for counter instruments.
252 // If omitted or null, the value from .default is used.
253 //
254 Counter CardinalityLimitsCounter `json:"counter,omitempty,omitzero" yaml:"counter,omitempty" mapstructure:"counter,omitempty"`
255
256 // Configure default cardinality limit for all instrument types.
257 // Instrument-specific cardinality limits take priority.
258 // If omitted or null, 2000 is used.
259 //
260 Default CardinalityLimitsDefault `json:"default,omitempty,omitzero" yaml:"default,omitempty" mapstructure:"default,omitempty"`
261
262 // Configure default cardinality limit for gauge instruments.
263 // If omitted or null, the value from .default is used.
264 //
265 Gauge CardinalityLimitsGauge `json:"gauge,omitempty,omitzero" yaml:"gauge,omitempty" mapstructure:"gauge,omitempty"`
266
267 // Configure default cardinality limit for histogram instruments.
268 // If omitted or null, the value from .default is used.
269 //
270 Histogram CardinalityLimitsHistogram `json:"histogram,omitempty,omitzero" yaml:"histogram,omitempty" mapstructure:"histogram,omitempty"`
271
272 // Configure default cardinality limit for observable_counter instruments.
273 // If omitted or null, the value from .default is used.
274 //
275 ObservableCounter CardinalityLimitsObservableCounter `json:"observable_counter,omitempty,omitzero" yaml:"observable_counter,omitempty" mapstructure:"observable_counter,omitempty"`
276
277 // Configure default cardinality limit for observable_gauge instruments.
278 // If omitted or null, the value from .default is used.
279 //
280 ObservableGauge CardinalityLimitsObservableGauge `json:"observable_gauge,omitempty,omitzero" yaml:"observable_gauge,omitempty" mapstructure:"observable_gauge,omitempty"`
281
282 // Configure default cardinality limit for observable_up_down_counter instruments.
283 // If omitted or null, the value from .default is used.
284 //
285 ObservableUpDownCounter CardinalityLimitsObservableUpDownCounter `json:"observable_up_down_counter,omitempty,omitzero" yaml:"observable_up_down_counter,omitempty" mapstructure:"observable_up_down_counter,omitempty"`
286
287 // Configure default cardinality limit for up_down_counter instruments.
288 // If omitted or null, the value from .default is used.
289 //
290 UpDownCounter CardinalityLimitsUpDownCounter `json:"up_down_counter,omitempty,omitzero" yaml:"up_down_counter,omitempty" mapstructure:"up_down_counter,omitempty"`
291 }
292
293 // Configure default cardinality limit for counter instruments.
294 // If omitted or null, the value from .default is used.
295 type CardinalityLimitsCounter *int
296
297 // Configure default cardinality limit for all instrument types.
298 // Instrument-specific cardinality limits take priority.
299 // If omitted or null, 2000 is used.
300 type CardinalityLimitsDefault *int
301
302 // Configure default cardinality limit for gauge instruments.
303 // If omitted or null, the value from .default is used.
304 type CardinalityLimitsGauge *int
305
306 // Configure default cardinality limit for histogram instruments.
307 // If omitted or null, the value from .default is used.
308 type CardinalityLimitsHistogram *int
309
310 // Configure default cardinality limit for observable_counter instruments.
311 // If omitted or null, the value from .default is used.
312 type CardinalityLimitsObservableCounter *int
313
314 // Configure default cardinality limit for observable_gauge instruments.
315 // If omitted or null, the value from .default is used.
316 type CardinalityLimitsObservableGauge *int
317
318 // Configure default cardinality limit for observable_up_down_counter instruments.
319 // If omitted or null, the value from .default is used.
320 type CardinalityLimitsObservableUpDownCounter *int
321
322 // Configure default cardinality limit for up_down_counter instruments.
323 // If omitted or null, the value from .default is used.
324 type CardinalityLimitsUpDownCounter *int
325
326 type ConsoleExporter map[string]interface{}
327
328 type ConsoleMetricExporter struct {
329 // Configure default histogram aggregation.
330 // Values include:
331 // * base2_exponential_bucket_histogram: Use base2 exponential histogram as the
332 // default aggregation for histogram instruments.
333 // * explicit_bucket_histogram: Use explicit bucket histogram as the default
334 // aggregation for histogram instruments.
335 // If omitted, explicit_bucket_histogram is used.
336 //
337 DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"`
338
339 // Configure temporality preference.
340 // Values include:
341 // * cumulative: Use cumulative aggregation temporality for all instrument types.
342 // * delta: Use delta aggregation for all instrument types except up down counter
343 // and asynchronous up down counter.
344 // * low_memory: Use delta aggregation temporality for counter and histogram
345 // instrument types. Use cumulative aggregation temporality for all other
346 // instrument types.
347 // If omitted, cumulative is used.
348 //
349 TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"`
350 }
351
352 type DefaultAggregation map[string]interface{}
353
354 type Distribution map[string]map[string]interface{}
355
356 type DropAggregation map[string]interface{}
357
358 type ExemplarFilter string
359
360 const ExemplarFilterAlwaysOff ExemplarFilter = "always_off"
361 const ExemplarFilterAlwaysOn ExemplarFilter = "always_on"
362 const ExemplarFilterTraceBased ExemplarFilter = "trace_based"
363
364 type ExplicitBucketHistogramAggregation struct {
365 // Configure bucket boundaries.
366 // If omitted, [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500,
367 // 10000] is used.
368 //
369 Boundaries []float64 `json:"boundaries,omitempty,omitzero" yaml:"boundaries,omitempty" mapstructure:"boundaries,omitempty"`
370
371 // Configure record min and max.
372 // If omitted or null, true is used.
373 //
374 RecordMinMax ExplicitBucketHistogramAggregationRecordMinMax `json:"record_min_max,omitempty,omitzero" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"`
375 }
376
377 // Configure record min and max.
378 // If omitted or null, true is used.
379 type ExplicitBucketHistogramAggregationRecordMinMax *bool
380
381 type ExporterDefaultHistogramAggregation string
382
383 const ExporterDefaultHistogramAggregationBase2ExponentialBucketHistogram ExporterDefaultHistogramAggregation = "base2_exponential_bucket_histogram"
384 const ExporterDefaultHistogramAggregationExplicitBucketHistogram ExporterDefaultHistogramAggregation = "explicit_bucket_histogram"
385
386 type ExporterTemporalityPreference string
387
388 const ExporterTemporalityPreferenceCumulative ExporterTemporalityPreference = "cumulative"
389 const ExporterTemporalityPreferenceDelta ExporterTemporalityPreference = "delta"
390 const ExporterTemporalityPreferenceLowMemory ExporterTemporalityPreference = "low_memory"
391
392 type GrpcTls struct {
393 // Configure certificate used to verify a server's TLS credentials.
394 // Absolute path to certificate file in PEM format.
395 // If omitted or null, system default certificate verification is used for secure
396 // connections.
397 //
398 CaFile GrpcTlsCaFile `json:"ca_file,omitempty,omitzero" yaml:"ca_file,omitempty" mapstructure:"ca_file,omitempty"`
399
400 // Configure mTLS client certificate.
401 // Absolute path to client certificate file in PEM format. If set, .client_key
402 // must also be set.
403 // If omitted or null, mTLS is not used.
404 //
405 CertFile GrpcTlsCertFile `json:"cert_file,omitempty,omitzero" yaml:"cert_file,omitempty" mapstructure:"cert_file,omitempty"`
406
407 // Configure client transport security for the exporter's connection.
408 // Only applicable when .endpoint is provided without http or https scheme.
409 // Implementations may choose to ignore .insecure.
410 // If omitted or null, false is used.
411 //
412 Insecure GrpcTlsInsecure `json:"insecure,omitempty,omitzero" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"`
413
414 // Configure mTLS private client key.
415 // Absolute path to client key file in PEM format. If set, .client_certificate
416 // must also be set.
417 // If omitted or null, mTLS is not used.
418 //
419 KeyFile GrpcTlsKeyFile `json:"key_file,omitempty,omitzero" yaml:"key_file,omitempty" mapstructure:"key_file,omitempty"`
420 }
421
422 // Configure certificate used to verify a server's TLS credentials.
423 // Absolute path to certificate file in PEM format.
424 // If omitted or null, system default certificate verification is used for secure
425 // connections.
426 type GrpcTlsCaFile *string
427
428 // Configure mTLS client certificate.
429 // Absolute path to client certificate file in PEM format. If set, .client_key must
430 // also be set.
431 // If omitted or null, mTLS is not used.
432 type GrpcTlsCertFile *string
433
434 // Configure client transport security for the exporter's connection.
435 // Only applicable when .endpoint is provided without http or https scheme.
436 // Implementations may choose to ignore .insecure.
437 // If omitted or null, false is used.
438 type GrpcTlsInsecure *bool
439
440 // Configure mTLS private client key.
441 // Absolute path to client key file in PEM format. If set, .client_certificate must
442 // also be set.
443 // If omitted or null, mTLS is not used.
444 type GrpcTlsKeyFile *string
445
446 type HttpTls struct {
447 // Configure certificate used to verify a server's TLS credentials.
448 // Absolute path to certificate file in PEM format.
449 // If omitted or null, system default certificate verification is used for secure
450 // connections.
451 //
452 CaFile HttpTlsCaFile `json:"ca_file,omitempty,omitzero" yaml:"ca_file,omitempty" mapstructure:"ca_file,omitempty"`
453
454 // Configure mTLS client certificate.
455 // Absolute path to client certificate file in PEM format. If set, .client_key
456 // must also be set.
457 // If omitted or null, mTLS is not used.
458 //
459 CertFile HttpTlsCertFile `json:"cert_file,omitempty,omitzero" yaml:"cert_file,omitempty" mapstructure:"cert_file,omitempty"`
460
461 // Configure mTLS private client key.
462 // Absolute path to client key file in PEM format. If set, .client_certificate
463 // must also be set.
464 // If omitted or null, mTLS is not used.
465 //
466 KeyFile HttpTlsKeyFile `json:"key_file,omitempty,omitzero" yaml:"key_file,omitempty" mapstructure:"key_file,omitempty"`
467 }
468
469 // Configure certificate used to verify a server's TLS credentials.
470 // Absolute path to certificate file in PEM format.
471 // If omitted or null, system default certificate verification is used for secure
472 // connections.
473 type HttpTlsCaFile *string
474
475 // Configure mTLS client certificate.
476 // Absolute path to client certificate file in PEM format. If set, .client_key must
477 // also be set.
478 // If omitted or null, mTLS is not used.
479 type HttpTlsCertFile *string
480
481 // Configure mTLS private client key.
482 // Absolute path to client key file in PEM format. If set, .client_certificate must
483 // also be set.
484 // If omitted or null, mTLS is not used.
485 type HttpTlsKeyFile *string
486
487 type IncludeExclude struct {
488 // Configure list of value patterns to exclude. Applies after .included (i.e.
489 // excluded has higher priority than included).
490 // Values are evaluated to match as follows:
491 // * If the value exactly matches.
492 // * If the value matches the wildcard pattern, where '?' matches any single
493 // character and '*' matches any number of characters including none.
494 // If omitted, .included attributes are included.
495 //
496 Excluded []string `json:"excluded,omitempty,omitzero" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"`
497
498 // Configure list of value patterns to include.
499 // Values are evaluated to match as follows:
500 // * If the value exactly matches.
501 // * If the value matches the wildcard pattern, where '?' matches any single
502 // character and '*' matches any number of characters including none.
503 // If omitted, all values are included.
504 //
505 Included []string `json:"included,omitempty,omitzero" yaml:"included,omitempty" mapstructure:"included,omitempty"`
506 }
507
508 type InstrumentType string
509
510 const InstrumentTypeCounter InstrumentType = "counter"
511 const InstrumentTypeGauge InstrumentType = "gauge"
512 const InstrumentTypeHistogram InstrumentType = "histogram"
513 const InstrumentTypeObservableCounter InstrumentType = "observable_counter"
514 const InstrumentTypeObservableGauge InstrumentType = "observable_gauge"
515 const InstrumentTypeObservableUpDownCounter InstrumentType = "observable_up_down_counter"
516 const InstrumentTypeUpDownCounter InstrumentType = "up_down_counter"
517
518 type JaegerPropagator map[string]interface{}
519
520 type LastValueAggregation map[string]interface{}
521
522 type LogRecordExporter struct {
523 // Configure exporter to be console.
524 // If omitted, ignore.
525 //
526 Console ConsoleExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"`
527
528 // Configure exporter to be OTLP with gRPC transport.
529 // If omitted, ignore.
530 //
531 OTLPGrpc *OTLPGrpcExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"`
532
533 // Configure exporter to be OTLP with HTTP transport.
534 // If omitted, ignore.
535 //
536 OTLPHttp *OTLPHttpExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"`
537
538 AdditionalProperties interface{} `mapstructure:",remain"`
539 }
540
541 type LogRecordLimits struct {
542 // Configure max attribute count. Overrides
543 // .attribute_limits.attribute_count_limit.
544 // Value must be non-negative.
545 // If omitted or null, 128 is used.
546 //
547 AttributeCountLimit LogRecordLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
548
549 // Configure max attribute value size. Overrides
550 // .attribute_limits.attribute_value_length_limit.
551 // Value must be non-negative.
552 // If omitted or null, there is no limit.
553 //
554 AttributeValueLengthLimit LogRecordLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
555 }
556
557 // Configure max attribute count. Overrides
558 // .attribute_limits.attribute_count_limit.
559 // Value must be non-negative.
560 // If omitted or null, 128 is used.
561 type LogRecordLimitsAttributeCountLimit *int
562
563 // Configure max attribute value size. Overrides
564 // .attribute_limits.attribute_value_length_limit.
565 // Value must be non-negative.
566 // If omitted or null, there is no limit.
567 type LogRecordLimitsAttributeValueLengthLimit *int
568
569 type LogRecordProcessor struct {
570 // Configure a batch log record processor.
571 // If omitted, ignore.
572 //
573 Batch *BatchLogRecordProcessor `json:"batch,omitempty,omitzero" yaml:"batch,omitempty" mapstructure:"batch,omitempty"`
574
575 // Configure a simple log record processor.
576 // If omitted, ignore.
577 //
578 Simple *SimpleLogRecordProcessor `json:"simple,omitempty,omitzero" yaml:"simple,omitempty" mapstructure:"simple,omitempty"`
579
580 AdditionalProperties interface{} `mapstructure:",remain"`
581 }
582
583 type LoggerProvider struct {
584 // Configure log record limits. See also attribute_limits.
585 // If omitted, default values as described in LogRecordLimits are used.
586 //
587 Limits *LogRecordLimits `json:"limits,omitempty,omitzero" yaml:"limits,omitempty" mapstructure:"limits,omitempty"`
588
589 // Configure log record processors.
590 // Property is required and must be non-null.
591 //
592 Processors []LogRecordProcessor `json:"processors" yaml:"processors" mapstructure:"processors"`
593 }
594
595 type MeterProvider struct {
596 // Configure the exemplar filter.
597 // Values include:
598 // * always_off: ExemplarFilter which makes no measurements eligible for being an
599 // Exemplar.
600 // * always_on: ExemplarFilter which makes all measurements eligible for being an
601 // Exemplar.
602 // * trace_based: ExemplarFilter which makes measurements recorded in the context
603 // of a sampled parent span eligible for being an Exemplar.
604 // If omitted, trace_based is used.
605 //
606 ExemplarFilter *ExemplarFilter `json:"exemplar_filter,omitempty,omitzero" yaml:"exemplar_filter,omitempty" mapstructure:"exemplar_filter,omitempty"`
607
608 // Configure metric readers.
609 // Property is required and must be non-null.
610 //
611 Readers []MetricReader `json:"readers" yaml:"readers" mapstructure:"readers"`
612
613 // Configure views.
614 // Each view has a selector which determines the instrument(s) it applies to, and
615 // a configuration for the resulting stream(s).
616 // If omitted, no views are registered.
617 //
618 Views []View `json:"views,omitempty,omitzero" yaml:"views,omitempty" mapstructure:"views,omitempty"`
619 }
620
621 type MetricProducer struct {
622 // Configure metric producer to be opencensus.
623 // If omitted, ignore.
624 //
625 Opencensus OpenCensusMetricProducer `json:"opencensus,omitempty,omitzero" yaml:"opencensus,omitempty" mapstructure:"opencensus,omitempty"`
626
627 AdditionalProperties interface{} `mapstructure:",remain"`
628 }
629
630 type MetricReader struct {
631 // Configure a periodic metric reader.
632 // If omitted, ignore.
633 //
634 Periodic *PeriodicMetricReader `json:"periodic,omitempty,omitzero" yaml:"periodic,omitempty" mapstructure:"periodic,omitempty"`
635
636 // Configure a pull based metric reader.
637 // If omitted, ignore.
638 //
639 Pull *PullMetricReader `json:"pull,omitempty,omitzero" yaml:"pull,omitempty" mapstructure:"pull,omitempty"`
640 }
641
642 type NameStringValuePair struct {
643 // The name of the pair.
644 // Property is required and must be non-null.
645 //
646 Name string `json:"name" yaml:"name" mapstructure:"name"`
647
648 // The value of the pair.
649 // Property must be present, but if null the behavior is dependent on usage
650 // context.
651 //
652 Value NameStringValuePairValue `json:"value" yaml:"value" mapstructure:"value"`
653 }
654
655 // The value of the pair.
656 // Property must be present, but if null the behavior is dependent on usage
657 // context.
658 type NameStringValuePairValue *string
659
660 type OTLPGrpcExporter struct {
661 // Configure compression.
662 // Known values include: gzip, none. Implementations may support other compression
663 // algorithms.
664 // If omitted or null, none is used.
665 //
666 Compression OTLPGrpcExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
667
668 // Configure endpoint.
669 // If omitted or null, http://localhost:4317 is used.
670 //
671 Endpoint OTLPGrpcExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"`
672
673 // Configure headers. Entries have higher priority than entries from
674 // .headers_list.
675 // If an entry's .value is null, the entry is ignored.
676 // If omitted, no headers are added.
677 //
678 Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
679
680 // Configure headers. Entries have lower priority than entries from .headers.
681 // The value is a list of comma separated key-value pairs matching the format of
682 // OTEL_EXPORTER_OTLP_HEADERS. See
683 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
684 // for details.
685 // If omitted or null, no headers are added.
686 //
687 HeadersList OTLPGrpcExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
688
689 // Configure max time (in milliseconds) to wait for each export.
690 // Value must be non-negative. A value of 0 indicates no limit (infinity).
691 // If omitted or null, 10000 is used.
692 //
693 Timeout OTLPGrpcExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
694
695 // Configure TLS settings for the exporter.
696 // If omitted, system default TLS settings are used.
697 //
698 Tls *GrpcTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"`
699 }
700
701 // Configure compression.
702 // Known values include: gzip, none. Implementations may support other compression
703 // algorithms.
704 // If omitted or null, none is used.
705 type OTLPGrpcExporterCompression *string
706
707 // Configure endpoint.
708 // If omitted or null, http://localhost:4317 is used.
709 type OTLPGrpcExporterEndpoint *string
710
711 // Configure headers. Entries have lower priority than entries from .headers.
712 // The value is a list of comma separated key-value pairs matching the format of
713 // OTEL_EXPORTER_OTLP_HEADERS. See
714 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
715 // for details.
716 // If omitted or null, no headers are added.
717 type OTLPGrpcExporterHeadersList *string
718
719 // Configure max time (in milliseconds) to wait for each export.
720 // Value must be non-negative. A value of 0 indicates no limit (infinity).
721 // If omitted or null, 10000 is used.
722 type OTLPGrpcExporterTimeout *int
723
724 type OTLPGrpcMetricExporter struct {
725 // Configure compression.
726 // Known values include: gzip, none. Implementations may support other compression
727 // algorithms.
728 // If omitted or null, none is used.
729 //
730 Compression OTLPGrpcMetricExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
731
732 // Configure default histogram aggregation.
733 // Values include:
734 // * base2_exponential_bucket_histogram: Use base2 exponential histogram as the
735 // default aggregation for histogram instruments.
736 // * explicit_bucket_histogram: Use explicit bucket histogram as the default
737 // aggregation for histogram instruments.
738 // If omitted, explicit_bucket_histogram is used.
739 //
740 DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"`
741
742 // Configure endpoint.
743 // If omitted or null, http://localhost:4317 is used.
744 //
745 Endpoint OTLPGrpcMetricExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"`
746
747 // Configure headers. Entries have higher priority than entries from
748 // .headers_list.
749 // If an entry's .value is null, the entry is ignored.
750 // If omitted, no headers are added.
751 //
752 Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
753
754 // Configure headers. Entries have lower priority than entries from .headers.
755 // The value is a list of comma separated key-value pairs matching the format of
756 // OTEL_EXPORTER_OTLP_HEADERS. See
757 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
758 // for details.
759 // If omitted or null, no headers are added.
760 //
761 HeadersList OTLPGrpcMetricExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
762
763 // Configure temporality preference.
764 // Values include:
765 // * cumulative: Use cumulative aggregation temporality for all instrument types.
766 // * delta: Use delta aggregation for all instrument types except up down counter
767 // and asynchronous up down counter.
768 // * low_memory: Use delta aggregation temporality for counter and histogram
769 // instrument types. Use cumulative aggregation temporality for all other
770 // instrument types.
771 // If omitted, cumulative is used.
772 //
773 TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"`
774
775 // Configure max time (in milliseconds) to wait for each export.
776 // Value must be non-negative. A value of 0 indicates no limit (infinity).
777 // If omitted or null, 10000 is used.
778 //
779 Timeout OTLPGrpcMetricExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
780
781 // Configure TLS settings for the exporter.
782 // If omitted, system default TLS settings are used.
783 //
784 Tls *GrpcTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"`
785 }
786
787 // Configure compression.
788 // Known values include: gzip, none. Implementations may support other compression
789 // algorithms.
790 // If omitted or null, none is used.
791 type OTLPGrpcMetricExporterCompression *string
792
793 // Configure endpoint.
794 // If omitted or null, http://localhost:4317 is used.
795 type OTLPGrpcMetricExporterEndpoint *string
796
797 // Configure headers. Entries have lower priority than entries from .headers.
798 // The value is a list of comma separated key-value pairs matching the format of
799 // OTEL_EXPORTER_OTLP_HEADERS. See
800 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
801 // for details.
802 // If omitted or null, no headers are added.
803 type OTLPGrpcMetricExporterHeadersList *string
804
805 // Configure max time (in milliseconds) to wait for each export.
806 // Value must be non-negative. A value of 0 indicates no limit (infinity).
807 // If omitted or null, 10000 is used.
808 type OTLPGrpcMetricExporterTimeout *int
809
810 type OTLPHttpEncoding string
811
812 const OTLPHttpEncodingJson OTLPHttpEncoding = "json"
813 const OTLPHttpEncodingProtobuf OTLPHttpEncoding = "protobuf"
814
815 type OTLPHttpExporter struct {
816 // Configure compression.
817 // Known values include: gzip, none. Implementations may support other compression
818 // algorithms.
819 // If omitted or null, none is used.
820 //
821 Compression OTLPHttpExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
822
823 // Configure the encoding used for messages.
824 // Implementations may not support json.
825 // Values include:
826 // * json: Protobuf JSON encoding.
827 // * protobuf: Protobuf binary encoding.
828 // If omitted, protobuf is used.
829 //
830 Encoding *OTLPHttpEncoding `json:"encoding,omitempty,omitzero" yaml:"encoding,omitempty" mapstructure:"encoding,omitempty"`
831
832 // Configure endpoint, including the signal specific path.
833 // If omitted or null, the http://localhost:4318/v1/{signal} (where signal is
834 // 'traces', 'logs', or 'metrics') is used.
835 //
836 Endpoint OTLPHttpExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"`
837
838 // Configure headers. Entries have higher priority than entries from
839 // .headers_list.
840 // If an entry's .value is null, the entry is ignored.
841 // If omitted, no headers are added.
842 //
843 Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
844
845 // Configure headers. Entries have lower priority than entries from .headers.
846 // The value is a list of comma separated key-value pairs matching the format of
847 // OTEL_EXPORTER_OTLP_HEADERS. See
848 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
849 // for details.
850 // If omitted or null, no headers are added.
851 //
852 HeadersList OTLPHttpExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
853
854 // Configure max time (in milliseconds) to wait for each export.
855 // Value must be non-negative. A value of 0 indicates no limit (infinity).
856 // If omitted or null, 10000 is used.
857 //
858 Timeout OTLPHttpExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
859
860 // Configure TLS settings for the exporter.
861 // If omitted, system default TLS settings are used.
862 //
863 Tls *HttpTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"`
864 }
865
866 // Configure compression.
867 // Known values include: gzip, none. Implementations may support other compression
868 // algorithms.
869 // If omitted or null, none is used.
870 type OTLPHttpExporterCompression *string
871
872 // Configure endpoint, including the signal specific path.
873 // If omitted or null, the http://localhost:4318/v1/{signal} (where signal is
874 // 'traces', 'logs', or 'metrics') is used.
875 type OTLPHttpExporterEndpoint *string
876
877 // Configure headers. Entries have lower priority than entries from .headers.
878 // The value is a list of comma separated key-value pairs matching the format of
879 // OTEL_EXPORTER_OTLP_HEADERS. See
880 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
881 // for details.
882 // If omitted or null, no headers are added.
883 type OTLPHttpExporterHeadersList *string
884
885 // Configure max time (in milliseconds) to wait for each export.
886 // Value must be non-negative. A value of 0 indicates no limit (infinity).
887 // If omitted or null, 10000 is used.
888 type OTLPHttpExporterTimeout *int
889
890 type OTLPHttpMetricExporter struct {
891 // Configure compression.
892 // Known values include: gzip, none. Implementations may support other compression
893 // algorithms.
894 // If omitted or null, none is used.
895 //
896 Compression OTLPHttpMetricExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
897
898 // Configure default histogram aggregation.
899 // Values include:
900 // * base2_exponential_bucket_histogram: Use base2 exponential histogram as the
901 // default aggregation for histogram instruments.
902 // * explicit_bucket_histogram: Use explicit bucket histogram as the default
903 // aggregation for histogram instruments.
904 // If omitted, explicit_bucket_histogram is used.
905 //
906 DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"`
907
908 // Configure the encoding used for messages.
909 // Implementations may not support json.
910 // Values include:
911 // * json: Protobuf JSON encoding.
912 // * protobuf: Protobuf binary encoding.
913 // If omitted, protobuf is used.
914 //
915 Encoding *OTLPHttpEncoding `json:"encoding,omitempty,omitzero" yaml:"encoding,omitempty" mapstructure:"encoding,omitempty"`
916
917 // Configure endpoint.
918 // If omitted or null, http://localhost:4318/v1/metrics is used.
919 //
920 Endpoint OTLPHttpMetricExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"`
921
922 // Configure headers. Entries have higher priority than entries from
923 // .headers_list.
924 // If an entry's .value is null, the entry is ignored.
925 // If omitted, no headers are added.
926 //
927 Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
928
929 // Configure headers. Entries have lower priority than entries from .headers.
930 // The value is a list of comma separated key-value pairs matching the format of
931 // OTEL_EXPORTER_OTLP_HEADERS. See
932 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
933 // for details.
934 // If omitted or null, no headers are added.
935 //
936 HeadersList OTLPHttpMetricExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
937
938 // Configure temporality preference.
939 // Values include:
940 // * cumulative: Use cumulative aggregation temporality for all instrument types.
941 // * delta: Use delta aggregation for all instrument types except up down counter
942 // and asynchronous up down counter.
943 // * low_memory: Use delta aggregation temporality for counter and histogram
944 // instrument types. Use cumulative aggregation temporality for all other
945 // instrument types.
946 // If omitted, cumulative is used.
947 //
948 TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"`
949
950 // Configure max time (in milliseconds) to wait for each export.
951 // Value must be non-negative. A value of 0 indicates no limit (infinity).
952 // If omitted or null, 10000 is used.
953 //
954 Timeout OTLPHttpMetricExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
955
956 // Configure TLS settings for the exporter.
957 // If omitted, system default TLS settings are used.
958 //
959 Tls *HttpTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"`
960 }
961
962 // Configure compression.
963 // Known values include: gzip, none. Implementations may support other compression
964 // algorithms.
965 // If omitted or null, none is used.
966 type OTLPHttpMetricExporterCompression *string
967
968 // Configure endpoint.
969 // If omitted or null, http://localhost:4318/v1/metrics is used.
970 type OTLPHttpMetricExporterEndpoint *string
971
972 // Configure headers. Entries have lower priority than entries from .headers.
973 // The value is a list of comma separated key-value pairs matching the format of
974 // OTEL_EXPORTER_OTLP_HEADERS. See
975 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
976 // for details.
977 // If omitted or null, no headers are added.
978 type OTLPHttpMetricExporterHeadersList *string
979
980 // Configure max time (in milliseconds) to wait for each export.
981 // Value must be non-negative. A value of 0 indicates no limit (infinity).
982 // If omitted or null, 10000 is used.
983 type OTLPHttpMetricExporterTimeout *int
984
985 type OpenCensusMetricProducer map[string]interface{}
986
987 type OpenTelemetryConfiguration struct {
988 // Configure general attribute limits. See also tracer_provider.limits,
989 // logger_provider.limits.
990 // If omitted, default values as described in AttributeLimits are used.
991 //
992 AttributeLimits *AttributeLimits `json:"attribute_limits,omitempty,omitzero" yaml:"attribute_limits,omitempty" mapstructure:"attribute_limits,omitempty"`
993
994 // Configure if the SDK is disabled or not.
995 // If omitted or null, false is used.
996 //
997 Disabled OpenTelemetryConfigurationDisabled `json:"disabled,omitempty,omitzero" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"`
998
999 // Defines configuration parameters specific to a particular OpenTelemetry
1000 // distribution or vendor.
1001 // This section provides a standardized location for distribution-specific
1002 // settings
1003 // that are not part of the OpenTelemetry configuration model.
1004 // It allows vendors to expose their own extensions and general configuration
1005 // options.
1006 // If omitted, distribution defaults are used.
1007 //
1008 Distribution Distribution `json:"distribution,omitempty,omitzero" yaml:"distribution,omitempty" mapstructure:"distribution,omitempty"`
1009
1010 // The file format version.
1011 // Represented as a string including the semver major, minor version numbers (and
1012 // optionally the meta tag). For example: "0.4", "1.0-rc.2", "1.0" (after stable
1013 // release).
1014 // See
1015 // https://github.com/open-telemetry/opentelemetry-configuration/blob/main/VERSIONING.md
1016 // for more details.
1017 // The yaml format is documented at
1018 // https://github.com/open-telemetry/opentelemetry-configuration/tree/main/schema
1019 // Property is required and must be non-null.
1020 //
1021 FileFormat string `json:"file_format" yaml:"file_format" mapstructure:"file_format"`
1022
1023 // Configure the log level of the internal logger used by the SDK.
1024 // Values include:
1025 // * debug: debug, severity number 5.
1026 // * debug2: debug2, severity number 6.
1027 // * debug3: debug3, severity number 7.
1028 // * debug4: debug4, severity number 8.
1029 // * error: error, severity number 17.
1030 // * error2: error2, severity number 18.
1031 // * error3: error3, severity number 19.
1032 // * error4: error4, severity number 20.
1033 // * fatal: fatal, severity number 21.
1034 // * fatal2: fatal2, severity number 22.
1035 // * fatal3: fatal3, severity number 23.
1036 // * fatal4: fatal4, severity number 24.
1037 // * info: info, severity number 9.
1038 // * info2: info2, severity number 10.
1039 // * info3: info3, severity number 11.
1040 // * info4: info4, severity number 12.
1041 // * trace: trace, severity number 1.
1042 // * trace2: trace2, severity number 2.
1043 // * trace3: trace3, severity number 3.
1044 // * trace4: trace4, severity number 4.
1045 // * warn: warn, severity number 13.
1046 // * warn2: warn2, severity number 14.
1047 // * warn3: warn3, severity number 15.
1048 // * warn4: warn4, severity number 16.
1049 // If omitted, INFO is used.
1050 //
1051 LogLevel *SeverityNumber `json:"log_level,omitempty,omitzero" yaml:"log_level,omitempty" mapstructure:"log_level,omitempty"`
1052
1053 // Configure logger provider.
1054 // If omitted, a noop logger provider is used.
1055 //
1056 LoggerProvider *LoggerProvider `json:"logger_provider,omitempty,omitzero" yaml:"logger_provider,omitempty" mapstructure:"logger_provider,omitempty"`
1057
1058 // Configure meter provider.
1059 // If omitted, a noop meter provider is used.
1060 //
1061 MeterProvider *MeterProvider `json:"meter_provider,omitempty,omitzero" yaml:"meter_provider,omitempty" mapstructure:"meter_provider,omitempty"`
1062
1063 // Configure text map context propagators.
1064 // If omitted, a noop propagator is used.
1065 //
1066 Propagator *Propagator `json:"propagator,omitempty,omitzero" yaml:"propagator,omitempty" mapstructure:"propagator,omitempty"`
1067
1068 // Configure resource for all signals.
1069 // If omitted, the default resource is used.
1070 //
1071 Resource *Resource `json:"resource,omitempty,omitzero" yaml:"resource,omitempty" mapstructure:"resource,omitempty"`
1072
1073 // Configure tracer provider.
1074 // If omitted, a noop tracer provider is used.
1075 //
1076 TracerProvider *TracerProvider `json:"tracer_provider,omitempty,omitzero" yaml:"tracer_provider,omitempty" mapstructure:"tracer_provider,omitempty"`
1077
1078 AdditionalProperties interface{} `mapstructure:",remain"`
1079 }
1080
1081 // Configure if the SDK is disabled or not.
1082 // If omitted or null, false is used.
1083 type OpenTelemetryConfigurationDisabled *bool
1084
1085 type OpenTracingPropagator map[string]interface{}
1086
1087 type ParentBasedSampler struct {
1088 // Configure local_parent_not_sampled sampler.
1089 // If omitted, always_off is used.
1090 //
1091 LocalParentNotSampled *Sampler `json:"local_parent_not_sampled,omitempty,omitzero" yaml:"local_parent_not_sampled,omitempty" mapstructure:"local_parent_not_sampled,omitempty"`
1092
1093 // Configure local_parent_sampled sampler.
1094 // If omitted, always_on is used.
1095 //
1096 LocalParentSampled *Sampler `json:"local_parent_sampled,omitempty,omitzero" yaml:"local_parent_sampled,omitempty" mapstructure:"local_parent_sampled,omitempty"`
1097
1098 // Configure remote_parent_not_sampled sampler.
1099 // If omitted, always_off is used.
1100 //
1101 RemoteParentNotSampled *Sampler `json:"remote_parent_not_sampled,omitempty,omitzero" yaml:"remote_parent_not_sampled,omitempty" mapstructure:"remote_parent_not_sampled,omitempty"`
1102
1103 // Configure remote_parent_sampled sampler.
1104 // If omitted, always_on is used.
1105 //
1106 RemoteParentSampled *Sampler `json:"remote_parent_sampled,omitempty,omitzero" yaml:"remote_parent_sampled,omitempty" mapstructure:"remote_parent_sampled,omitempty"`
1107
1108 // Configure root sampler.
1109 // If omitted, always_on is used.
1110 //
1111 Root *Sampler `json:"root,omitempty,omitzero" yaml:"root,omitempty" mapstructure:"root,omitempty"`
1112 }
1113
1114 type PeriodicMetricReader struct {
1115 // Configure cardinality limits.
1116 // If omitted, default values as described in CardinalityLimits are used.
1117 //
1118 CardinalityLimits *CardinalityLimits `json:"cardinality_limits,omitempty,omitzero" yaml:"cardinality_limits,omitempty" mapstructure:"cardinality_limits,omitempty"`
1119
1120 // Configure exporter.
1121 // Property is required and must be non-null.
1122 //
1123 Exporter PushMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
1124
1125 // Configure delay interval (in milliseconds) between start of two consecutive
1126 // exports.
1127 // Value must be non-negative.
1128 // If omitted or null, 60000 is used.
1129 //
1130 Interval PeriodicMetricReaderInterval `json:"interval,omitempty,omitzero" yaml:"interval,omitempty" mapstructure:"interval,omitempty"`
1131
1132 // Configure metric producers.
1133 // If omitted, no metric producers are added.
1134 //
1135 Producers []MetricProducer `json:"producers,omitempty,omitzero" yaml:"producers,omitempty" mapstructure:"producers,omitempty"`
1136
1137 // Configure maximum allowed time (in milliseconds) to export data.
1138 // Value must be non-negative. A value of 0 indicates no limit (infinity).
1139 // If omitted or null, 30000 is used.
1140 //
1141 Timeout PeriodicMetricReaderTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
1142 }
1143
1144 // Configure delay interval (in milliseconds) between start of two consecutive
1145 // exports.
1146 // Value must be non-negative.
1147 // If omitted or null, 60000 is used.
1148 type PeriodicMetricReaderInterval *int
1149
1150 // Configure maximum allowed time (in milliseconds) to export data.
1151 // Value must be non-negative. A value of 0 indicates no limit (infinity).
1152 // If omitted or null, 30000 is used.
1153 type PeriodicMetricReaderTimeout *int
1154
1155 type Propagator struct {
1156 // Configure the propagators in the composite text map propagator. Entries from
1157 // .composite_list are appended to the list here with duplicates filtered out.
1158 // Built-in propagator keys include: tracecontext, baggage, b3, b3multi, jaeger,
1159 // ottrace. Known third party keys include: xray.
1160 // If omitted, and .composite_list is omitted or null, a noop propagator is used.
1161 //
1162 Composite []TextMapPropagator `json:"composite,omitempty,omitzero" yaml:"composite,omitempty" mapstructure:"composite,omitempty"`
1163
1164 // Configure the propagators in the composite text map propagator. Entries are
1165 // appended to .composite with duplicates filtered out.
1166 // The value is a comma separated list of propagator identifiers matching the
1167 // format of OTEL_PROPAGATORS. See
1168 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration
1169 // for details.
1170 // Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi,
1171 // jaeger, ottrace. Known third party identifiers include: xray.
1172 // If omitted or null, and .composite is omitted or null, a noop propagator is
1173 // used.
1174 //
1175 CompositeList PropagatorCompositeList `json:"composite_list,omitempty,omitzero" yaml:"composite_list,omitempty" mapstructure:"composite_list,omitempty"`
1176 }
1177
1178 // Configure the propagators in the composite text map propagator. Entries are
1179 // appended to .composite with duplicates filtered out.
1180 // The value is a comma separated list of propagator identifiers matching the
1181 // format of OTEL_PROPAGATORS. See
1182 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration
1183 // for details.
1184 // Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi,
1185 // jaeger, ottrace. Known third party identifiers include: xray.
1186 // If omitted or null, and .composite is omitted or null, a noop propagator is
1187 // used.
1188 type PropagatorCompositeList *string
1189
1190 type PullMetricExporter struct {
1191 AdditionalProperties interface{} `mapstructure:",remain"`
1192 }
1193
1194 type PullMetricReader struct {
1195 // Configure cardinality limits.
1196 // If omitted, default values as described in CardinalityLimits are used.
1197 //
1198 CardinalityLimits *CardinalityLimits `json:"cardinality_limits,omitempty,omitzero" yaml:"cardinality_limits,omitempty" mapstructure:"cardinality_limits,omitempty"`
1199
1200 // Configure exporter.
1201 // Property is required and must be non-null.
1202 //
1203 Exporter PullMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
1204
1205 // Configure metric producers.
1206 // If omitted, no metric producers are added.
1207 //
1208 Producers []MetricProducer `json:"producers,omitempty,omitzero" yaml:"producers,omitempty" mapstructure:"producers,omitempty"`
1209 }
1210
1211 type PushMetricExporter struct {
1212 // Configure exporter to be console.
1213 // If omitted, ignore.
1214 //
1215 Console *ConsoleMetricExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"`
1216
1217 // Configure exporter to be OTLP with gRPC transport.
1218 // If omitted, ignore.
1219 //
1220 OTLPGrpc *OTLPGrpcMetricExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"`
1221
1222 // Configure exporter to be OTLP with HTTP transport.
1223 // If omitted, ignore.
1224 //
1225 OTLPHttp *OTLPHttpMetricExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"`
1226
1227 AdditionalProperties interface{} `mapstructure:",remain"`
1228 }
1229
1230 type Resource struct {
1231 // Configure resource attributes. Entries have higher priority than entries from
1232 // .resource.attributes_list.
1233 // If omitted, no resource attributes are added.
1234 //
1235 Attributes []AttributeNameValue `json:"attributes,omitempty,omitzero" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"`
1236
1237 // Configure resource attributes. Entries have lower priority than entries from
1238 // .resource.attributes.
1239 // The value is a list of comma separated key-value pairs matching the format of
1240 // OTEL_RESOURCE_ATTRIBUTES. See
1241 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration
1242 // for details.
1243 // If omitted or null, no resource attributes are added.
1244 //
1245 AttributesList ResourceAttributesList `json:"attributes_list,omitempty,omitzero" yaml:"attributes_list,omitempty" mapstructure:"attributes_list,omitempty"`
1246
1247 // Configure resource schema URL.
1248 // If omitted or null, no schema URL is used.
1249 //
1250 SchemaUrl ResourceSchemaUrl `json:"schema_url,omitempty,omitzero" yaml:"schema_url,omitempty" mapstructure:"schema_url,omitempty"`
1251 }
1252
1253 // Configure resource attributes. Entries have lower priority than entries from
1254 // .resource.attributes.
1255 // The value is a list of comma separated key-value pairs matching the format of
1256 // OTEL_RESOURCE_ATTRIBUTES. See
1257 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration
1258 // for details.
1259 // If omitted or null, no resource attributes are added.
1260 type ResourceAttributesList *string
1261
1262 // Configure resource schema URL.
1263 // If omitted or null, no schema URL is used.
1264 type ResourceSchemaUrl *string
1265
1266 type Sampler struct {
1267 // Configure sampler to be always_off.
1268 // If omitted, ignore.
1269 //
1270 AlwaysOff AlwaysOffSampler `json:"always_off,omitempty,omitzero" yaml:"always_off,omitempty" mapstructure:"always_off,omitempty"`
1271
1272 // Configure sampler to be always_on.
1273 // If omitted, ignore.
1274 //
1275 AlwaysOn AlwaysOnSampler `json:"always_on,omitempty,omitzero" yaml:"always_on,omitempty" mapstructure:"always_on,omitempty"`
1276
1277 // Configure sampler to be parent_based.
1278 // If omitted, ignore.
1279 //
1280 ParentBased *ParentBasedSampler `json:"parent_based,omitempty,omitzero" yaml:"parent_based,omitempty" mapstructure:"parent_based,omitempty"`
1281
1282 // Configure sampler to be trace_id_ratio_based.
1283 // If omitted, ignore.
1284 //
1285 TraceIDRatioBased *TraceIDRatioBasedSampler `json:"trace_id_ratio_based,omitempty,omitzero" yaml:"trace_id_ratio_based,omitempty" mapstructure:"trace_id_ratio_based,omitempty"`
1286
1287 AdditionalProperties interface{} `mapstructure:",remain"`
1288 }
1289
1290 type SeverityNumber string
1291
1292 const SeverityNumberDebug SeverityNumber = "debug"
1293 const SeverityNumberDebug2 SeverityNumber = "debug2"
1294 const SeverityNumberDebug3 SeverityNumber = "debug3"
1295 const SeverityNumberDebug4 SeverityNumber = "debug4"
1296 const SeverityNumberError SeverityNumber = "error"
1297 const SeverityNumberError2 SeverityNumber = "error2"
1298 const SeverityNumberError3 SeverityNumber = "error3"
1299 const SeverityNumberError4 SeverityNumber = "error4"
1300 const SeverityNumberFatal SeverityNumber = "fatal"
1301 const SeverityNumberFatal2 SeverityNumber = "fatal2"
1302 const SeverityNumberFatal3 SeverityNumber = "fatal3"
1303 const SeverityNumberFatal4 SeverityNumber = "fatal4"
1304 const SeverityNumberInfo SeverityNumber = "info"
1305 const SeverityNumberInfo2 SeverityNumber = "info2"
1306 const SeverityNumberInfo3 SeverityNumber = "info3"
1307 const SeverityNumberInfo4 SeverityNumber = "info4"
1308 const SeverityNumberTrace SeverityNumber = "trace"
1309 const SeverityNumberTrace2 SeverityNumber = "trace2"
1310 const SeverityNumberTrace3 SeverityNumber = "trace3"
1311 const SeverityNumberTrace4 SeverityNumber = "trace4"
1312 const SeverityNumberWarn SeverityNumber = "warn"
1313 const SeverityNumberWarn2 SeverityNumber = "warn2"
1314 const SeverityNumberWarn3 SeverityNumber = "warn3"
1315 const SeverityNumberWarn4 SeverityNumber = "warn4"
1316
1317 type SimpleLogRecordProcessor struct {
1318 // Configure exporter.
1319 // Property is required and must be non-null.
1320 //
1321 Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
1322 }
1323
1324 type SimpleSpanProcessor struct {
1325 // Configure exporter.
1326 // Property is required and must be non-null.
1327 //
1328 Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
1329 }
1330
1331 type SpanExporter struct {
1332 // Configure exporter to be console.
1333 // If omitted, ignore.
1334 //
1335 Console ConsoleExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"`
1336
1337 // Configure exporter to be OTLP with gRPC transport.
1338 // If omitted, ignore.
1339 //
1340 OTLPGrpc *OTLPGrpcExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"`
1341
1342 // Configure exporter to be OTLP with HTTP transport.
1343 // If omitted, ignore.
1344 //
1345 OTLPHttp *OTLPHttpExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"`
1346
1347 AdditionalProperties interface{} `mapstructure:",remain"`
1348 }
1349
1350 type SpanKind string
1351
1352 const SpanKindClient SpanKind = "client"
1353 const SpanKindConsumer SpanKind = "consumer"
1354 const SpanKindInternal SpanKind = "internal"
1355 const SpanKindProducer SpanKind = "producer"
1356 const SpanKindServer SpanKind = "server"
1357
1358 type SpanLimits struct {
1359 // Configure max attribute count. Overrides
1360 // .attribute_limits.attribute_count_limit.
1361 // Value must be non-negative.
1362 // If omitted or null, 128 is used.
1363 //
1364 AttributeCountLimit SpanLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
1365
1366 // Configure max attribute value size. Overrides
1367 // .attribute_limits.attribute_value_length_limit.
1368 // Value must be non-negative.
1369 // If omitted or null, there is no limit.
1370 //
1371 AttributeValueLengthLimit SpanLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
1372
1373 // Configure max attributes per span event.
1374 // Value must be non-negative.
1375 // If omitted or null, 128 is used.
1376 //
1377 EventAttributeCountLimit SpanLimitsEventAttributeCountLimit `json:"event_attribute_count_limit,omitempty,omitzero" yaml:"event_attribute_count_limit,omitempty" mapstructure:"event_attribute_count_limit,omitempty"`
1378
1379 // Configure max span event count.
1380 // Value must be non-negative.
1381 // If omitted or null, 128 is used.
1382 //
1383 EventCountLimit SpanLimitsEventCountLimit `json:"event_count_limit,omitempty,omitzero" yaml:"event_count_limit,omitempty" mapstructure:"event_count_limit,omitempty"`
1384
1385 // Configure max attributes per span link.
1386 // Value must be non-negative.
1387 // If omitted or null, 128 is used.
1388 //
1389 LinkAttributeCountLimit SpanLimitsLinkAttributeCountLimit `json:"link_attribute_count_limit,omitempty,omitzero" yaml:"link_attribute_count_limit,omitempty" mapstructure:"link_attribute_count_limit,omitempty"`
1390
1391 // Configure max span link count.
1392 // Value must be non-negative.
1393 // If omitted or null, 128 is used.
1394 //
1395 LinkCountLimit SpanLimitsLinkCountLimit `json:"link_count_limit,omitempty,omitzero" yaml:"link_count_limit,omitempty" mapstructure:"link_count_limit,omitempty"`
1396 }
1397
1398 // Configure max attribute count. Overrides
1399 // .attribute_limits.attribute_count_limit.
1400 // Value must be non-negative.
1401 // If omitted or null, 128 is used.
1402 type SpanLimitsAttributeCountLimit *int
1403
1404 // Configure max attribute value size. Overrides
1405 // .attribute_limits.attribute_value_length_limit.
1406 // Value must be non-negative.
1407 // If omitted or null, there is no limit.
1408 type SpanLimitsAttributeValueLengthLimit *int
1409
1410 // Configure max attributes per span event.
1411 // Value must be non-negative.
1412 // If omitted or null, 128 is used.
1413 type SpanLimitsEventAttributeCountLimit *int
1414
1415 // Configure max span event count.
1416 // Value must be non-negative.
1417 // If omitted or null, 128 is used.
1418 type SpanLimitsEventCountLimit *int
1419
1420 // Configure max attributes per span link.
1421 // Value must be non-negative.
1422 // If omitted or null, 128 is used.
1423 type SpanLimitsLinkAttributeCountLimit *int
1424
1425 // Configure max span link count.
1426 // Value must be non-negative.
1427 // If omitted or null, 128 is used.
1428 type SpanLimitsLinkCountLimit *int
1429
1430 type SpanProcessor struct {
1431 // Configure a batch span processor.
1432 // If omitted, ignore.
1433 //
1434 Batch *BatchSpanProcessor `json:"batch,omitempty,omitzero" yaml:"batch,omitempty" mapstructure:"batch,omitempty"`
1435
1436 // Configure a simple span processor.
1437 // If omitted, ignore.
1438 //
1439 Simple *SimpleSpanProcessor `json:"simple,omitempty,omitzero" yaml:"simple,omitempty" mapstructure:"simple,omitempty"`
1440
1441 AdditionalProperties interface{} `mapstructure:",remain"`
1442 }
1443
1444 type SumAggregation map[string]interface{}
1445
1446 type TextMapPropagator struct {
1447 // Include the zipkin b3 propagator.
1448 // If omitted, ignore.
1449 //
1450 B3 B3Propagator `json:"b3,omitempty,omitzero" yaml:"b3,omitempty" mapstructure:"b3,omitempty"`
1451
1452 // Include the zipkin b3 multi propagator.
1453 // If omitted, ignore.
1454 //
1455 B3Multi B3MultiPropagator `json:"b3multi,omitempty,omitzero" yaml:"b3multi,omitempty" mapstructure:"b3multi,omitempty"`
1456
1457 // Include the w3c baggage propagator.
1458 // If omitted, ignore.
1459 //
1460 Baggage BaggagePropagator `json:"baggage,omitempty,omitzero" yaml:"baggage,omitempty" mapstructure:"baggage,omitempty"`
1461
1462 // Include the jaeger propagator.
1463 // If omitted, ignore.
1464 //
1465 Jaeger JaegerPropagator `json:"jaeger,omitempty,omitzero" yaml:"jaeger,omitempty" mapstructure:"jaeger,omitempty"`
1466
1467 // Include the opentracing propagator.
1468 // If omitted, ignore.
1469 //
1470 Ottrace OpenTracingPropagator `json:"ottrace,omitempty,omitzero" yaml:"ottrace,omitempty" mapstructure:"ottrace,omitempty"`
1471
1472 // Include the w3c trace context propagator.
1473 // If omitted, ignore.
1474 //
1475 Tracecontext TraceContextPropagator `json:"tracecontext,omitempty,omitzero" yaml:"tracecontext,omitempty" mapstructure:"tracecontext,omitempty"`
1476
1477 AdditionalProperties interface{} `mapstructure:",remain"`
1478 }
1479
1480 type TraceContextPropagator map[string]interface{}
1481
1482 type TraceIDRatioBasedSampler struct {
1483 // Configure trace_id_ratio.
1484 // If omitted or null, 1.0 is used.
1485 //
1486 Ratio TraceIDRatioBasedSamplerRatio `json:"ratio,omitempty,omitzero" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"`
1487 }
1488
1489 // Configure trace_id_ratio.
1490 // If omitted or null, 1.0 is used.
1491 type TraceIDRatioBasedSamplerRatio *float64
1492
1493 type TracerProvider struct {
1494 // Configure span limits. See also attribute_limits.
1495 // If omitted, default values as described in SpanLimits are used.
1496 //
1497 Limits *SpanLimits `json:"limits,omitempty,omitzero" yaml:"limits,omitempty" mapstructure:"limits,omitempty"`
1498
1499 // Configure span processors.
1500 // Property is required and must be non-null.
1501 //
1502 Processors []SpanProcessor `json:"processors" yaml:"processors" mapstructure:"processors"`
1503
1504 // Configure the sampler.
1505 // If omitted, parent based sampler with a root of always_on is used.
1506 //
1507 Sampler *Sampler `json:"sampler,omitempty,omitzero" yaml:"sampler,omitempty" mapstructure:"sampler,omitempty"`
1508 }
1509
1510 type View struct {
1511 // Configure view selector.
1512 // Selection criteria is additive as described in
1513 // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#instrument-selection-criteria.
1514 // Property is required and must be non-null.
1515 //
1516 Selector ViewSelector `json:"selector" yaml:"selector" mapstructure:"selector"`
1517
1518 // Configure view stream.
1519 // Property is required and must be non-null.
1520 //
1521 Stream ViewStream `json:"stream" yaml:"stream" mapstructure:"stream"`
1522 }
1523
1524 type ViewSelector struct {
1525 // Configure instrument name selection criteria.
1526 // If omitted or null, all instrument names match.
1527 //
1528 InstrumentName ViewSelectorInstrumentName `json:"instrument_name,omitempty,omitzero" yaml:"instrument_name,omitempty" mapstructure:"instrument_name,omitempty"`
1529
1530 // Configure instrument type selection criteria.
1531 // Values include:
1532 // * counter: Synchronous counter instruments.
1533 // * gauge: Synchronous gauge instruments.
1534 // * histogram: Synchronous histogram instruments.
1535 // * observable_counter: Asynchronous counter instruments.
1536 // * observable_gauge: Asynchronous gauge instruments.
1537 // * observable_up_down_counter: Asynchronous up down counter instruments.
1538 // * up_down_counter: Synchronous up down counter instruments.
1539 // If omitted, all instrument types match.
1540 //
1541 InstrumentType *InstrumentType `json:"instrument_type,omitempty,omitzero" yaml:"instrument_type,omitempty" mapstructure:"instrument_type,omitempty"`
1542
1543 // Configure meter name selection criteria.
1544 // If omitted or null, all meter names match.
1545 //
1546 MeterName ViewSelectorMeterName `json:"meter_name,omitempty,omitzero" yaml:"meter_name,omitempty" mapstructure:"meter_name,omitempty"`
1547
1548 // Configure meter schema url selection criteria.
1549 // If omitted or null, all meter schema URLs match.
1550 //
1551 MeterSchemaUrl ViewSelectorMeterSchemaUrl `json:"meter_schema_url,omitempty,omitzero" yaml:"meter_schema_url,omitempty" mapstructure:"meter_schema_url,omitempty"`
1552
1553 // Configure meter version selection criteria.
1554 // If omitted or null, all meter versions match.
1555 //
1556 MeterVersion ViewSelectorMeterVersion `json:"meter_version,omitempty,omitzero" yaml:"meter_version,omitempty" mapstructure:"meter_version,omitempty"`
1557
1558 // Configure the instrument unit selection criteria.
1559 // If omitted or null, all instrument units match.
1560 //
1561 Unit ViewSelectorUnit `json:"unit,omitempty,omitzero" yaml:"unit,omitempty" mapstructure:"unit,omitempty"`
1562 }
1563
1564 // Configure instrument name selection criteria.
1565 // If omitted or null, all instrument names match.
1566 type ViewSelectorInstrumentName *string
1567
1568 // Configure meter name selection criteria.
1569 // If omitted or null, all meter names match.
1570 type ViewSelectorMeterName *string
1571
1572 // Configure meter schema url selection criteria.
1573 // If omitted or null, all meter schema URLs match.
1574 type ViewSelectorMeterSchemaUrl *string
1575
1576 // Configure meter version selection criteria.
1577 // If omitted or null, all meter versions match.
1578 type ViewSelectorMeterVersion *string
1579
1580 // Configure the instrument unit selection criteria.
1581 // If omitted or null, all instrument units match.
1582 type ViewSelectorUnit *string
1583
1584 type ViewStream struct {
1585 // Configure aggregation of the resulting stream(s).
1586 // If omitted, default is used.
1587 //
1588 Aggregation *Aggregation `json:"aggregation,omitempty,omitzero" yaml:"aggregation,omitempty" mapstructure:"aggregation,omitempty"`
1589
1590 // Configure the aggregation cardinality limit.
1591 // If omitted or null, the metric reader's default cardinality limit is used.
1592 //
1593 AggregationCardinalityLimit ViewStreamAggregationCardinalityLimit `json:"aggregation_cardinality_limit,omitempty,omitzero" yaml:"aggregation_cardinality_limit,omitempty" mapstructure:"aggregation_cardinality_limit,omitempty"`
1594
1595 // Configure attribute keys retained in the resulting stream(s).
1596 // If omitted, all attribute keys are retained.
1597 //
1598 AttributeKeys *IncludeExclude `json:"attribute_keys,omitempty,omitzero" yaml:"attribute_keys,omitempty" mapstructure:"attribute_keys,omitempty"`
1599
1600 // Configure metric description of the resulting stream(s).
1601 // If omitted or null, the instrument's origin description is used.
1602 //
1603 Description ViewStreamDescription `json:"description,omitempty,omitzero" yaml:"description,omitempty" mapstructure:"description,omitempty"`
1604
1605 // Configure metric name of the resulting stream(s).
1606 // If omitted or null, the instrument's original name is used.
1607 //
1608 Name ViewStreamName `json:"name,omitempty,omitzero" yaml:"name,omitempty" mapstructure:"name,omitempty"`
1609 }
1610
1611 // Configure the aggregation cardinality limit.
1612 // If omitted or null, the metric reader's default cardinality limit is used.
1613 type ViewStreamAggregationCardinalityLimit *int
1614
1615 // Configure metric description of the resulting stream(s).
1616 // If omitted or null, the instrument's origin description is used.
1617 type ViewStreamDescription *string
1618
1619 // Configure metric name of the resulting stream(s).
1620 // If omitted or null, the instrument's original name is used.
1621 type ViewStreamName *string