Debian Codegraph @

otelconf/v0.3.0/generated_config.go

raw
1 // Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.
2
3 package otelconf
4
5 type AttributeLimits struct {
6 // AttributeCountLimit corresponds to the JSON schema field
7 // "attribute_count_limit".
8 AttributeCountLimit *int `json:"attribute_count_limit,omitempty" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
9
10 // AttributeValueLengthLimit corresponds to the JSON schema field
11 // "attribute_value_length_limit".
12 AttributeValueLengthLimit *int `json:"attribute_value_length_limit,omitempty" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
13
14 AdditionalProperties interface{} `mapstructure:",remain"`
15 }
16
17 type AttributeNameValue struct {
18 // Name corresponds to the JSON schema field "name".
19 Name string `json:"name" yaml:"name" mapstructure:"name"`
20
21 // Type corresponds to the JSON schema field "type".
22 Type *AttributeNameValueType `json:"type,omitempty" yaml:"type,omitempty" mapstructure:"type,omitempty"`
23
24 // Value corresponds to the JSON schema field "value".
25 Value interface{} `json:"value" yaml:"value" mapstructure:"value"`
26 }
27
28 type AttributeNameValueType struct {
29 Value interface{}
30 }
31
32 type BatchLogRecordProcessor struct {
33 // ExportTimeout corresponds to the JSON schema field "export_timeout".
34 ExportTimeout *int `json:"export_timeout,omitempty" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"`
35
36 // Exporter corresponds to the JSON schema field "exporter".
37 Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
38
39 // MaxExportBatchSize corresponds to the JSON schema field
40 // "max_export_batch_size".
41 MaxExportBatchSize *int `json:"max_export_batch_size,omitempty" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"`
42
43 // MaxQueueSize corresponds to the JSON schema field "max_queue_size".
44 MaxQueueSize *int `json:"max_queue_size,omitempty" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"`
45
46 // ScheduleDelay corresponds to the JSON schema field "schedule_delay".
47 ScheduleDelay *int `json:"schedule_delay,omitempty" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"`
48 }
49
50 type BatchSpanProcessor struct {
51 // ExportTimeout corresponds to the JSON schema field "export_timeout".
52 ExportTimeout *int `json:"export_timeout,omitempty" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"`
53
54 // Exporter corresponds to the JSON schema field "exporter".
55 Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
56
57 // MaxExportBatchSize corresponds to the JSON schema field
58 // "max_export_batch_size".
59 MaxExportBatchSize *int `json:"max_export_batch_size,omitempty" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"`
60
61 // MaxQueueSize corresponds to the JSON schema field "max_queue_size".
62 MaxQueueSize *int `json:"max_queue_size,omitempty" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"`
63
64 // ScheduleDelay corresponds to the JSON schema field "schedule_delay".
65 ScheduleDelay *int `json:"schedule_delay,omitempty" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"`
66 }
67
68 type Common map[string]interface{}
69
70 type Console map[string]interface{}
71
72 type Detectors struct {
73 // Attributes corresponds to the JSON schema field "attributes".
74 Attributes *DetectorsAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"`
75 }
76
77 type DetectorsAttributes struct {
78 // Excluded corresponds to the JSON schema field "excluded".
79 Excluded []string `json:"excluded,omitempty" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"`
80
81 // Included corresponds to the JSON schema field "included".
82 Included []string `json:"included,omitempty" yaml:"included,omitempty" mapstructure:"included,omitempty"`
83 }
84
85 type GeneralInstrumentation struct {
86 // Http corresponds to the JSON schema field "http".
87 Http *GeneralInstrumentationHttp `json:"http,omitempty" yaml:"http,omitempty" mapstructure:"http,omitempty"`
88
89 // Peer corresponds to the JSON schema field "peer".
90 Peer *GeneralInstrumentationPeer `json:"peer,omitempty" yaml:"peer,omitempty" mapstructure:"peer,omitempty"`
91 }
92
93 type GeneralInstrumentationHttp struct {
94 // Client corresponds to the JSON schema field "client".
95 Client *GeneralInstrumentationHttpClient `json:"client,omitempty" yaml:"client,omitempty" mapstructure:"client,omitempty"`
96
97 // Server corresponds to the JSON schema field "server".
98 Server *GeneralInstrumentationHttpServer `json:"server,omitempty" yaml:"server,omitempty" mapstructure:"server,omitempty"`
99 }
100
101 type GeneralInstrumentationHttpClient struct {
102 // RequestCapturedHeaders corresponds to the JSON schema field
103 // "request_captured_headers".
104 RequestCapturedHeaders []string `json:"request_captured_headers,omitempty" yaml:"request_captured_headers,omitempty" mapstructure:"request_captured_headers,omitempty"`
105
106 // ResponseCapturedHeaders corresponds to the JSON schema field
107 // "response_captured_headers".
108 ResponseCapturedHeaders []string `json:"response_captured_headers,omitempty" yaml:"response_captured_headers,omitempty" mapstructure:"response_captured_headers,omitempty"`
109 }
110
111 type GeneralInstrumentationHttpServer struct {
112 // RequestCapturedHeaders corresponds to the JSON schema field
113 // "request_captured_headers".
114 RequestCapturedHeaders []string `json:"request_captured_headers,omitempty" yaml:"request_captured_headers,omitempty" mapstructure:"request_captured_headers,omitempty"`
115
116 // ResponseCapturedHeaders corresponds to the JSON schema field
117 // "response_captured_headers".
118 ResponseCapturedHeaders []string `json:"response_captured_headers,omitempty" yaml:"response_captured_headers,omitempty" mapstructure:"response_captured_headers,omitempty"`
119 }
120
121 type GeneralInstrumentationPeer struct {
122 // ServiceMapping corresponds to the JSON schema field "service_mapping".
123 ServiceMapping []GeneralInstrumentationPeerServiceMappingElem `json:"service_mapping,omitempty" yaml:"service_mapping,omitempty" mapstructure:"service_mapping,omitempty"`
124 }
125
126 type GeneralInstrumentationPeerServiceMappingElem struct {
127 // Peer corresponds to the JSON schema field "peer".
128 Peer string `json:"peer" yaml:"peer" mapstructure:"peer"`
129
130 // Service corresponds to the JSON schema field "service".
131 Service string `json:"service" yaml:"service" mapstructure:"service"`
132 }
133
134 type IncludeExclude struct {
135 // Excluded corresponds to the JSON schema field "excluded".
136 Excluded []string `json:"excluded,omitempty" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"`
137
138 // Included corresponds to the JSON schema field "included".
139 Included []string `json:"included,omitempty" yaml:"included,omitempty" mapstructure:"included,omitempty"`
140 }
141
142 type Instrumentation struct {
143 // Cpp corresponds to the JSON schema field "cpp".
144 Cpp LanguageSpecificInstrumentation `json:"cpp,omitempty" yaml:"cpp,omitempty" mapstructure:"cpp,omitempty"`
145
146 // Dotnet corresponds to the JSON schema field "dotnet".
147 Dotnet LanguageSpecificInstrumentation `json:"dotnet,omitempty" yaml:"dotnet,omitempty" mapstructure:"dotnet,omitempty"`
148
149 // Erlang corresponds to the JSON schema field "erlang".
150 Erlang LanguageSpecificInstrumentation `json:"erlang,omitempty" yaml:"erlang,omitempty" mapstructure:"erlang,omitempty"`
151
152 // General corresponds to the JSON schema field "general".
153 General *GeneralInstrumentation `json:"general,omitempty" yaml:"general,omitempty" mapstructure:"general,omitempty"`
154
155 // Go corresponds to the JSON schema field "go".
156 Go LanguageSpecificInstrumentation `json:"go,omitempty" yaml:"go,omitempty" mapstructure:"go,omitempty"`
157
158 // Java corresponds to the JSON schema field "java".
159 Java LanguageSpecificInstrumentation `json:"java,omitempty" yaml:"java,omitempty" mapstructure:"java,omitempty"`
160
161 // Js corresponds to the JSON schema field "js".
162 Js LanguageSpecificInstrumentation `json:"js,omitempty" yaml:"js,omitempty" mapstructure:"js,omitempty"`
163
164 // Php corresponds to the JSON schema field "php".
165 Php LanguageSpecificInstrumentation `json:"php,omitempty" yaml:"php,omitempty" mapstructure:"php,omitempty"`
166
167 // Python corresponds to the JSON schema field "python".
168 Python LanguageSpecificInstrumentation `json:"python,omitempty" yaml:"python,omitempty" mapstructure:"python,omitempty"`
169
170 // Ruby corresponds to the JSON schema field "ruby".
171 Ruby LanguageSpecificInstrumentation `json:"ruby,omitempty" yaml:"ruby,omitempty" mapstructure:"ruby,omitempty"`
172
173 // Rust corresponds to the JSON schema field "rust".
174 Rust LanguageSpecificInstrumentation `json:"rust,omitempty" yaml:"rust,omitempty" mapstructure:"rust,omitempty"`
175
176 // Swift corresponds to the JSON schema field "swift".
177 Swift LanguageSpecificInstrumentation `json:"swift,omitempty" yaml:"swift,omitempty" mapstructure:"swift,omitempty"`
178 }
179
180 type LanguageSpecificInstrumentation map[string]interface{}
181
182 type LogRecordExporter struct {
183 // Console corresponds to the JSON schema field "console".
184 Console Console `json:"console,omitempty" yaml:"console,omitempty" mapstructure:"console,omitempty"`
185
186 // OTLP corresponds to the JSON schema field "otlp".
187 OTLP *OTLP `json:"otlp,omitempty" yaml:"otlp,omitempty" mapstructure:"otlp,omitempty"`
188
189 AdditionalProperties interface{} `mapstructure:",remain"`
190 }
191
192 type LogRecordLimits struct {
193 // AttributeCountLimit corresponds to the JSON schema field
194 // "attribute_count_limit".
195 AttributeCountLimit *int `json:"attribute_count_limit,omitempty" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
196
197 // AttributeValueLengthLimit corresponds to the JSON schema field
198 // "attribute_value_length_limit".
199 AttributeValueLengthLimit *int `json:"attribute_value_length_limit,omitempty" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
200 }
201
202 type LogRecordProcessor struct {
203 // Batch corresponds to the JSON schema field "batch".
204 Batch *BatchLogRecordProcessor `json:"batch,omitempty" yaml:"batch,omitempty" mapstructure:"batch,omitempty"`
205
206 // Simple corresponds to the JSON schema field "simple".
207 Simple *SimpleLogRecordProcessor `json:"simple,omitempty" yaml:"simple,omitempty" mapstructure:"simple,omitempty"`
208
209 AdditionalProperties interface{} `mapstructure:",remain"`
210 }
211
212 type LoggerProvider struct {
213 // Limits corresponds to the JSON schema field "limits".
214 Limits *LogRecordLimits `json:"limits,omitempty" yaml:"limits,omitempty" mapstructure:"limits,omitempty"`
215
216 // Processors corresponds to the JSON schema field "processors".
217 Processors []LogRecordProcessor `json:"processors,omitempty" yaml:"processors,omitempty" mapstructure:"processors,omitempty"`
218 }
219
220 type MeterProvider struct {
221 // Readers corresponds to the JSON schema field "readers".
222 Readers []MetricReader `json:"readers,omitempty" yaml:"readers,omitempty" mapstructure:"readers,omitempty"`
223
224 // Views corresponds to the JSON schema field "views".
225 Views []View `json:"views,omitempty" yaml:"views,omitempty" mapstructure:"views,omitempty"`
226 }
227
228 type MetricProducer struct {
229 // Opencensus corresponds to the JSON schema field "opencensus".
230 Opencensus MetricProducerOpencensus `json:"opencensus,omitempty" yaml:"opencensus,omitempty" mapstructure:"opencensus,omitempty"`
231
232 AdditionalProperties interface{} `mapstructure:",remain"`
233 }
234
235 type MetricProducerOpencensus map[string]interface{}
236
237 type MetricReader struct {
238 // Periodic corresponds to the JSON schema field "periodic".
239 Periodic *PeriodicMetricReader `json:"periodic,omitempty" yaml:"periodic,omitempty" mapstructure:"periodic,omitempty"`
240
241 // Producers corresponds to the JSON schema field "producers".
242 Producers []MetricProducer `json:"producers,omitempty" yaml:"producers,omitempty" mapstructure:"producers,omitempty"`
243
244 // Pull corresponds to the JSON schema field "pull".
245 Pull *PullMetricReader `json:"pull,omitempty" yaml:"pull,omitempty" mapstructure:"pull,omitempty"`
246 }
247
248 type NameStringValuePair struct {
249 // Name corresponds to the JSON schema field "name".
250 Name string `json:"name" yaml:"name" mapstructure:"name"`
251
252 // Value corresponds to the JSON schema field "value".
253 Value *string `json:"value" yaml:"value" mapstructure:"value"`
254 }
255
256 type OTLP struct {
257 // Certificate corresponds to the JSON schema field "certificate".
258 Certificate *string `json:"certificate,omitempty" yaml:"certificate,omitempty" mapstructure:"certificate,omitempty"`
259
260 // ClientCertificate corresponds to the JSON schema field "client_certificate".
261 ClientCertificate *string `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty" mapstructure:"client_certificate,omitempty"`
262
263 // ClientKey corresponds to the JSON schema field "client_key".
264 ClientKey *string `json:"client_key,omitempty" yaml:"client_key,omitempty" mapstructure:"client_key,omitempty"`
265
266 // Compression corresponds to the JSON schema field "compression".
267 Compression *string `json:"compression,omitempty" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
268
269 // Endpoint corresponds to the JSON schema field "endpoint".
270 Endpoint *string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
271
272 // Headers corresponds to the JSON schema field "headers".
273 Headers []NameStringValuePair `json:"headers,omitempty" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
274
275 // HeadersList corresponds to the JSON schema field "headers_list".
276 HeadersList *string `json:"headers_list,omitempty" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
277
278 // Insecure corresponds to the JSON schema field "insecure".
279 Insecure *bool `json:"insecure,omitempty" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"`
280
281 // Protocol corresponds to the JSON schema field "protocol".
282 Protocol *string `json:"protocol" yaml:"protocol" mapstructure:"protocol"`
283
284 // Timeout corresponds to the JSON schema field "timeout".
285 Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
286 }
287
288 type OTLPMetric struct {
289 // Certificate corresponds to the JSON schema field "certificate".
290 Certificate *string `json:"certificate,omitempty" yaml:"certificate,omitempty" mapstructure:"certificate,omitempty"`
291
292 // ClientCertificate corresponds to the JSON schema field "client_certificate".
293 ClientCertificate *string `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty" mapstructure:"client_certificate,omitempty"`
294
295 // ClientKey corresponds to the JSON schema field "client_key".
296 ClientKey *string `json:"client_key,omitempty" yaml:"client_key,omitempty" mapstructure:"client_key,omitempty"`
297
298 // Compression corresponds to the JSON schema field "compression".
299 Compression *string `json:"compression,omitempty" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
300
301 // DefaultHistogramAggregation corresponds to the JSON schema field
302 // "default_histogram_aggregation".
303 DefaultHistogramAggregation *OTLPMetricDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"`
304
305 // Endpoint corresponds to the JSON schema field "endpoint".
306 Endpoint *string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
307
308 // Headers corresponds to the JSON schema field "headers".
309 Headers []NameStringValuePair `json:"headers,omitempty" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
310
311 // HeadersList corresponds to the JSON schema field "headers_list".
312 HeadersList *string `json:"headers_list,omitempty" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
313
314 // Insecure corresponds to the JSON schema field "insecure".
315 Insecure *bool `json:"insecure,omitempty" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"`
316
317 // Protocol corresponds to the JSON schema field "protocol".
318 Protocol *string `json:"protocol" yaml:"protocol" mapstructure:"protocol"`
319
320 // TemporalityPreference corresponds to the JSON schema field
321 // "temporality_preference".
322 TemporalityPreference *string `json:"temporality_preference,omitempty" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"`
323
324 // Timeout corresponds to the JSON schema field "timeout".
325 Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
326 }
327
328 type OTLPMetricDefaultHistogramAggregation string
329
330 const OTLPMetricDefaultHistogramAggregationBase2ExponentialBucketHistogram OTLPMetricDefaultHistogramAggregation = "base2_exponential_bucket_histogram"
331 const OTLPMetricDefaultHistogramAggregationExplicitBucketHistogram OTLPMetricDefaultHistogramAggregation = "explicit_bucket_histogram"
332
333 type OpenTelemetryConfiguration struct {
334 // AttributeLimits corresponds to the JSON schema field "attribute_limits".
335 AttributeLimits *AttributeLimits `json:"attribute_limits,omitempty" yaml:"attribute_limits,omitempty" mapstructure:"attribute_limits,omitempty"`
336
337 // Disabled corresponds to the JSON schema field "disabled".
338 Disabled *bool `json:"disabled,omitempty" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"`
339
340 // FileFormat corresponds to the JSON schema field "file_format".
341 FileFormat *string `json:"file_format" yaml:"file_format" mapstructure:"file_format"`
342
343 // Instrumentation corresponds to the JSON schema field "instrumentation".
344 Instrumentation *Instrumentation `json:"instrumentation,omitempty" yaml:"instrumentation,omitempty" mapstructure:"instrumentation,omitempty"`
345
346 // LoggerProvider corresponds to the JSON schema field "logger_provider".
347 LoggerProvider *LoggerProvider `json:"logger_provider,omitempty" yaml:"logger_provider,omitempty" mapstructure:"logger_provider,omitempty"`
348
349 // MeterProvider corresponds to the JSON schema field "meter_provider".
350 MeterProvider *MeterProvider `json:"meter_provider,omitempty" yaml:"meter_provider,omitempty" mapstructure:"meter_provider,omitempty"`
351
352 // Propagator corresponds to the JSON schema field "propagator".
353 Propagator *Propagator `json:"propagator,omitempty" yaml:"propagator,omitempty" mapstructure:"propagator,omitempty"`
354
355 // Resource corresponds to the JSON schema field "resource".
356 Resource *Resource `json:"resource,omitempty" yaml:"resource,omitempty" mapstructure:"resource,omitempty"`
357
358 // TracerProvider corresponds to the JSON schema field "tracer_provider".
359 TracerProvider *TracerProvider `json:"tracer_provider,omitempty" yaml:"tracer_provider,omitempty" mapstructure:"tracer_provider,omitempty"`
360
361 AdditionalProperties interface{} `mapstructure:",remain"`
362 }
363
364 type PeriodicMetricReader struct {
365 // Exporter corresponds to the JSON schema field "exporter".
366 Exporter PushMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
367
368 // Interval corresponds to the JSON schema field "interval".
369 Interval *int `json:"interval,omitempty" yaml:"interval,omitempty" mapstructure:"interval,omitempty"`
370
371 // Timeout corresponds to the JSON schema field "timeout".
372 Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
373 }
374
375 type Prometheus struct {
376 // Host corresponds to the JSON schema field "host".
377 Host *string `json:"host,omitempty" yaml:"host,omitempty" mapstructure:"host,omitempty"`
378
379 // Port corresponds to the JSON schema field "port".
380 Port *int `json:"port,omitempty" yaml:"port,omitempty" mapstructure:"port,omitempty"`
381
382 // WithResourceConstantLabels corresponds to the JSON schema field
383 // "with_resource_constant_labels".
384 WithResourceConstantLabels *IncludeExclude `json:"with_resource_constant_labels,omitempty" yaml:"with_resource_constant_labels,omitempty" mapstructure:"with_resource_constant_labels,omitempty"`
385
386 // WithoutScopeInfo corresponds to the JSON schema field "without_scope_info".
387 WithoutScopeInfo *bool `json:"without_scope_info,omitempty" yaml:"without_scope_info,omitempty" mapstructure:"without_scope_info,omitempty"`
388
389 // WithoutTypeSuffix corresponds to the JSON schema field "without_type_suffix".
390 WithoutTypeSuffix *bool `json:"without_type_suffix,omitempty" yaml:"without_type_suffix,omitempty" mapstructure:"without_type_suffix,omitempty"`
391
392 // WithoutUnits corresponds to the JSON schema field "without_units".
393 WithoutUnits *bool `json:"without_units,omitempty" yaml:"without_units,omitempty" mapstructure:"without_units,omitempty"`
394 }
395
396 type Propagator struct {
397 // Composite corresponds to the JSON schema field "composite".
398 Composite []*string `json:"composite,omitempty" yaml:"composite,omitempty" mapstructure:"composite,omitempty"`
399
400 AdditionalProperties interface{} `mapstructure:",remain"`
401 }
402
403 type PullMetricExporter struct {
404 // Prometheus corresponds to the JSON schema field "prometheus".
405 Prometheus *Prometheus `json:"prometheus,omitempty" yaml:"prometheus,omitempty" mapstructure:"prometheus,omitempty"`
406
407 AdditionalProperties interface{} `mapstructure:",remain"`
408 }
409
410 type PullMetricReader struct {
411 // Exporter corresponds to the JSON schema field "exporter".
412 Exporter PullMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
413 }
414
415 type PushMetricExporter struct {
416 // Console corresponds to the JSON schema field "console".
417 Console Console `json:"console,omitempty" yaml:"console,omitempty" mapstructure:"console,omitempty"`
418
419 // OTLP corresponds to the JSON schema field "otlp".
420 OTLP *OTLPMetric `json:"otlp,omitempty" yaml:"otlp,omitempty" mapstructure:"otlp,omitempty"`
421
422 AdditionalProperties interface{} `mapstructure:",remain"`
423 }
424
425 type Resource struct {
426 // Attributes corresponds to the JSON schema field "attributes".
427 Attributes []AttributeNameValue `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"`
428
429 // AttributesList corresponds to the JSON schema field "attributes_list".
430 AttributesList *string `json:"attributes_list,omitempty" yaml:"attributes_list,omitempty" mapstructure:"attributes_list,omitempty"`
431
432 // Detectors corresponds to the JSON schema field "detectors".
433 Detectors *Detectors `json:"detectors,omitempty" yaml:"detectors,omitempty" mapstructure:"detectors,omitempty"`
434
435 // SchemaUrl corresponds to the JSON schema field "schema_url".
436 SchemaUrl *string `json:"schema_url,omitempty" yaml:"schema_url,omitempty" mapstructure:"schema_url,omitempty"`
437 }
438
439 type Sampler struct {
440 // AlwaysOff corresponds to the JSON schema field "always_off".
441 AlwaysOff SamplerAlwaysOff `json:"always_off,omitempty" yaml:"always_off,omitempty" mapstructure:"always_off,omitempty"`
442
443 // AlwaysOn corresponds to the JSON schema field "always_on".
444 AlwaysOn SamplerAlwaysOn `json:"always_on,omitempty" yaml:"always_on,omitempty" mapstructure:"always_on,omitempty"`
445
446 // JaegerRemote corresponds to the JSON schema field "jaeger_remote".
447 JaegerRemote *SamplerJaegerRemote `json:"jaeger_remote,omitempty" yaml:"jaeger_remote,omitempty" mapstructure:"jaeger_remote,omitempty"`
448
449 // ParentBased corresponds to the JSON schema field "parent_based".
450 ParentBased *SamplerParentBased `json:"parent_based,omitempty" yaml:"parent_based,omitempty" mapstructure:"parent_based,omitempty"`
451
452 // TraceIDRatioBased corresponds to the JSON schema field "trace_id_ratio_based".
453 TraceIDRatioBased *SamplerTraceIDRatioBased `json:"trace_id_ratio_based,omitempty" yaml:"trace_id_ratio_based,omitempty" mapstructure:"trace_id_ratio_based,omitempty"`
454
455 AdditionalProperties interface{} `mapstructure:",remain"`
456 }
457
458 type SamplerAlwaysOff map[string]interface{}
459
460 type SamplerAlwaysOn map[string]interface{}
461
462 type SamplerJaegerRemote struct {
463 // Endpoint corresponds to the JSON schema field "endpoint".
464 Endpoint *string `json:"endpoint,omitempty" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"`
465
466 // InitialSampler corresponds to the JSON schema field "initial_sampler".
467 InitialSampler *Sampler `json:"initial_sampler,omitempty" yaml:"initial_sampler,omitempty" mapstructure:"initial_sampler,omitempty"`
468
469 // Interval corresponds to the JSON schema field "interval".
470 Interval *int `json:"interval,omitempty" yaml:"interval,omitempty" mapstructure:"interval,omitempty"`
471 }
472
473 type SamplerParentBased struct {
474 // LocalParentNotSampled corresponds to the JSON schema field
475 // "local_parent_not_sampled".
476 LocalParentNotSampled *Sampler `json:"local_parent_not_sampled,omitempty" yaml:"local_parent_not_sampled,omitempty" mapstructure:"local_parent_not_sampled,omitempty"`
477
478 // LocalParentSampled corresponds to the JSON schema field "local_parent_sampled".
479 LocalParentSampled *Sampler `json:"local_parent_sampled,omitempty" yaml:"local_parent_sampled,omitempty" mapstructure:"local_parent_sampled,omitempty"`
480
481 // RemoteParentNotSampled corresponds to the JSON schema field
482 // "remote_parent_not_sampled".
483 RemoteParentNotSampled *Sampler `json:"remote_parent_not_sampled,omitempty" yaml:"remote_parent_not_sampled,omitempty" mapstructure:"remote_parent_not_sampled,omitempty"`
484
485 // RemoteParentSampled corresponds to the JSON schema field
486 // "remote_parent_sampled".
487 RemoteParentSampled *Sampler `json:"remote_parent_sampled,omitempty" yaml:"remote_parent_sampled,omitempty" mapstructure:"remote_parent_sampled,omitempty"`
488
489 // Root corresponds to the JSON schema field "root".
490 Root *Sampler `json:"root,omitempty" yaml:"root,omitempty" mapstructure:"root,omitempty"`
491 }
492
493 type SamplerTraceIDRatioBased struct {
494 // Ratio corresponds to the JSON schema field "ratio".
495 Ratio *float64 `json:"ratio,omitempty" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"`
496 }
497
498 type SimpleLogRecordProcessor struct {
499 // Exporter corresponds to the JSON schema field "exporter".
500 Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
501 }
502
503 type SimpleSpanProcessor struct {
504 // Exporter corresponds to the JSON schema field "exporter".
505 Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
506 }
507
508 type SpanExporter struct {
509 // Console corresponds to the JSON schema field "console".
510 Console Console `json:"console,omitempty" yaml:"console,omitempty" mapstructure:"console,omitempty"`
511
512 // OTLP corresponds to the JSON schema field "otlp".
513 OTLP *OTLP `json:"otlp,omitempty" yaml:"otlp,omitempty" mapstructure:"otlp,omitempty"`
514
515 // Zipkin corresponds to the JSON schema field "zipkin".
516 Zipkin *Zipkin `json:"zipkin,omitempty" yaml:"zipkin,omitempty" mapstructure:"zipkin,omitempty"`
517
518 AdditionalProperties interface{} `mapstructure:",remain"`
519 }
520
521 type SpanLimits struct {
522 // AttributeCountLimit corresponds to the JSON schema field
523 // "attribute_count_limit".
524 AttributeCountLimit *int `json:"attribute_count_limit,omitempty" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
525
526 // AttributeValueLengthLimit corresponds to the JSON schema field
527 // "attribute_value_length_limit".
528 AttributeValueLengthLimit *int `json:"attribute_value_length_limit,omitempty" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
529
530 // EventAttributeCountLimit corresponds to the JSON schema field
531 // "event_attribute_count_limit".
532 EventAttributeCountLimit *int `json:"event_attribute_count_limit,omitempty" yaml:"event_attribute_count_limit,omitempty" mapstructure:"event_attribute_count_limit,omitempty"`
533
534 // EventCountLimit corresponds to the JSON schema field "event_count_limit".
535 EventCountLimit *int `json:"event_count_limit,omitempty" yaml:"event_count_limit,omitempty" mapstructure:"event_count_limit,omitempty"`
536
537 // LinkAttributeCountLimit corresponds to the JSON schema field
538 // "link_attribute_count_limit".
539 LinkAttributeCountLimit *int `json:"link_attribute_count_limit,omitempty" yaml:"link_attribute_count_limit,omitempty" mapstructure:"link_attribute_count_limit,omitempty"`
540
541 // LinkCountLimit corresponds to the JSON schema field "link_count_limit".
542 LinkCountLimit *int `json:"link_count_limit,omitempty" yaml:"link_count_limit,omitempty" mapstructure:"link_count_limit,omitempty"`
543 }
544
545 type SpanProcessor struct {
546 // Batch corresponds to the JSON schema field "batch".
547 Batch *BatchSpanProcessor `json:"batch,omitempty" yaml:"batch,omitempty" mapstructure:"batch,omitempty"`
548
549 // Simple corresponds to the JSON schema field "simple".
550 Simple *SimpleSpanProcessor `json:"simple,omitempty" yaml:"simple,omitempty" mapstructure:"simple,omitempty"`
551
552 AdditionalProperties interface{} `mapstructure:",remain"`
553 }
554
555 type TracerProvider struct {
556 // Limits corresponds to the JSON schema field "limits".
557 Limits *SpanLimits `json:"limits,omitempty" yaml:"limits,omitempty" mapstructure:"limits,omitempty"`
558
559 // Processors corresponds to the JSON schema field "processors".
560 Processors []SpanProcessor `json:"processors,omitempty" yaml:"processors,omitempty" mapstructure:"processors,omitempty"`
561
562 // Sampler corresponds to the JSON schema field "sampler".
563 Sampler *Sampler `json:"sampler,omitempty" yaml:"sampler,omitempty" mapstructure:"sampler,omitempty"`
564 }
565
566 type View struct {
567 // Selector corresponds to the JSON schema field "selector".
568 Selector *ViewSelector `json:"selector,omitempty" yaml:"selector,omitempty" mapstructure:"selector,omitempty"`
569
570 // Stream corresponds to the JSON schema field "stream".
571 Stream *ViewStream `json:"stream,omitempty" yaml:"stream,omitempty" mapstructure:"stream,omitempty"`
572 }
573
574 type ViewSelector struct {
575 // InstrumentName corresponds to the JSON schema field "instrument_name".
576 InstrumentName *string `json:"instrument_name,omitempty" yaml:"instrument_name,omitempty" mapstructure:"instrument_name,omitempty"`
577
578 // InstrumentType corresponds to the JSON schema field "instrument_type".
579 InstrumentType *ViewSelectorInstrumentType `json:"instrument_type,omitempty" yaml:"instrument_type,omitempty" mapstructure:"instrument_type,omitempty"`
580
581 // MeterName corresponds to the JSON schema field "meter_name".
582 MeterName *string `json:"meter_name,omitempty" yaml:"meter_name,omitempty" mapstructure:"meter_name,omitempty"`
583
584 // MeterSchemaUrl corresponds to the JSON schema field "meter_schema_url".
585 MeterSchemaUrl *string `json:"meter_schema_url,omitempty" yaml:"meter_schema_url,omitempty" mapstructure:"meter_schema_url,omitempty"`
586
587 // MeterVersion corresponds to the JSON schema field "meter_version".
588 MeterVersion *string `json:"meter_version,omitempty" yaml:"meter_version,omitempty" mapstructure:"meter_version,omitempty"`
589
590 // Unit corresponds to the JSON schema field "unit".
591 Unit *string `json:"unit,omitempty" yaml:"unit,omitempty" mapstructure:"unit,omitempty"`
592 }
593
594 type ViewSelectorInstrumentType string
595
596 const ViewSelectorInstrumentTypeCounter ViewSelectorInstrumentType = "counter"
597 const ViewSelectorInstrumentTypeHistogram ViewSelectorInstrumentType = "histogram"
598 const ViewSelectorInstrumentTypeObservableCounter ViewSelectorInstrumentType = "observable_counter"
599 const ViewSelectorInstrumentTypeObservableGauge ViewSelectorInstrumentType = "observable_gauge"
600 const ViewSelectorInstrumentTypeObservableUpDownCounter ViewSelectorInstrumentType = "observable_up_down_counter"
601 const ViewSelectorInstrumentTypeUpDownCounter ViewSelectorInstrumentType = "up_down_counter"
602
603 type ViewStream struct {
604 // Aggregation corresponds to the JSON schema field "aggregation".
605 Aggregation *ViewStreamAggregation `json:"aggregation,omitempty" yaml:"aggregation,omitempty" mapstructure:"aggregation,omitempty"`
606
607 // AttributeKeys corresponds to the JSON schema field "attribute_keys".
608 AttributeKeys *IncludeExclude `json:"attribute_keys,omitempty" yaml:"attribute_keys,omitempty" mapstructure:"attribute_keys,omitempty"`
609
610 // Description corresponds to the JSON schema field "description".
611 Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"`
612
613 // Name corresponds to the JSON schema field "name".
614 Name *string `json:"name,omitempty" yaml:"name,omitempty" mapstructure:"name,omitempty"`
615 }
616
617 type ViewStreamAggregation struct {
618 // Base2ExponentialBucketHistogram corresponds to the JSON schema field
619 // "base2_exponential_bucket_histogram".
620 Base2ExponentialBucketHistogram *ViewStreamAggregationBase2ExponentialBucketHistogram `json:"base2_exponential_bucket_histogram,omitempty" yaml:"base2_exponential_bucket_histogram,omitempty" mapstructure:"base2_exponential_bucket_histogram,omitempty"`
621
622 // Default corresponds to the JSON schema field "default".
623 Default ViewStreamAggregationDefault `json:"default,omitempty" yaml:"default,omitempty" mapstructure:"default,omitempty"`
624
625 // Drop corresponds to the JSON schema field "drop".
626 Drop ViewStreamAggregationDrop `json:"drop,omitempty" yaml:"drop,omitempty" mapstructure:"drop,omitempty"`
627
628 // ExplicitBucketHistogram corresponds to the JSON schema field
629 // "explicit_bucket_histogram".
630 ExplicitBucketHistogram *ViewStreamAggregationExplicitBucketHistogram `json:"explicit_bucket_histogram,omitempty" yaml:"explicit_bucket_histogram,omitempty" mapstructure:"explicit_bucket_histogram,omitempty"`
631
632 // LastValue corresponds to the JSON schema field "last_value".
633 LastValue ViewStreamAggregationLastValue `json:"last_value,omitempty" yaml:"last_value,omitempty" mapstructure:"last_value,omitempty"`
634
635 // Sum corresponds to the JSON schema field "sum".
636 Sum ViewStreamAggregationSum `json:"sum,omitempty" yaml:"sum,omitempty" mapstructure:"sum,omitempty"`
637 }
638
639 type ViewStreamAggregationBase2ExponentialBucketHistogram struct {
640 // MaxScale corresponds to the JSON schema field "max_scale".
641 MaxScale *int `json:"max_scale,omitempty" yaml:"max_scale,omitempty" mapstructure:"max_scale,omitempty"`
642
643 // MaxSize corresponds to the JSON schema field "max_size".
644 MaxSize *int `json:"max_size,omitempty" yaml:"max_size,omitempty" mapstructure:"max_size,omitempty"`
645
646 // RecordMinMax corresponds to the JSON schema field "record_min_max".
647 RecordMinMax *bool `json:"record_min_max,omitempty" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"`
648 }
649
650 type ViewStreamAggregationDefault map[string]interface{}
651
652 type ViewStreamAggregationDrop map[string]interface{}
653
654 type ViewStreamAggregationExplicitBucketHistogram struct {
655 // Boundaries corresponds to the JSON schema field "boundaries".
656 Boundaries []float64 `json:"boundaries,omitempty" yaml:"boundaries,omitempty" mapstructure:"boundaries,omitempty"`
657
658 // RecordMinMax corresponds to the JSON schema field "record_min_max".
659 RecordMinMax *bool `json:"record_min_max,omitempty" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"`
660 }
661
662 type ViewStreamAggregationLastValue map[string]interface{}
663
664 type ViewStreamAggregationSum map[string]interface{}
665
666 type Zipkin struct {
667 // Endpoint corresponds to the JSON schema field "endpoint".
668 Endpoint *string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
669
670 // Timeout corresponds to the JSON schema field "timeout".
671 Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
672 }