mirror of
https://github.com/hanzoai/traces.git
synced 2026-11-03 04:05:45 +00:00
* update otel * update otel-collector-contrib * rollback upgrade of jaegerreceiver and kafkareceiver * fix go.sum * update opentelemetry-collector-contrib and jaegertracing * fix factory initialization * fix e2e * use the new jaeger definitions * fix factory initialization for otelexporter * use proper prefix * fix metric matcher for integration tests * changelog
673 lines
34 KiB
Go
673 lines
34 KiB
Go
// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT.
|
|
|
|
package otelconf
|
|
|
|
type AttributeLimits struct {
|
|
// AttributeCountLimit corresponds to the JSON schema field
|
|
// "attribute_count_limit".
|
|
AttributeCountLimit *int `json:"attribute_count_limit,omitempty" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
|
|
|
|
// AttributeValueLengthLimit corresponds to the JSON schema field
|
|
// "attribute_value_length_limit".
|
|
AttributeValueLengthLimit *int `json:"attribute_value_length_limit,omitempty" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type AttributeNameValue struct {
|
|
// Name corresponds to the JSON schema field "name".
|
|
Name string `json:"name" yaml:"name" mapstructure:"name"`
|
|
|
|
// Type corresponds to the JSON schema field "type".
|
|
Type *AttributeNameValueType `json:"type,omitempty" yaml:"type,omitempty" mapstructure:"type,omitempty"`
|
|
|
|
// Value corresponds to the JSON schema field "value".
|
|
Value interface{} `json:"value" yaml:"value" mapstructure:"value"`
|
|
}
|
|
|
|
type AttributeNameValueType struct {
|
|
Value interface{}
|
|
}
|
|
|
|
type BatchLogRecordProcessor struct {
|
|
// ExportTimeout corresponds to the JSON schema field "export_timeout".
|
|
ExportTimeout *int `json:"export_timeout,omitempty" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"`
|
|
|
|
// Exporter corresponds to the JSON schema field "exporter".
|
|
Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
|
|
|
|
// MaxExportBatchSize corresponds to the JSON schema field
|
|
// "max_export_batch_size".
|
|
MaxExportBatchSize *int `json:"max_export_batch_size,omitempty" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"`
|
|
|
|
// MaxQueueSize corresponds to the JSON schema field "max_queue_size".
|
|
MaxQueueSize *int `json:"max_queue_size,omitempty" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"`
|
|
|
|
// ScheduleDelay corresponds to the JSON schema field "schedule_delay".
|
|
ScheduleDelay *int `json:"schedule_delay,omitempty" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"`
|
|
}
|
|
|
|
type BatchSpanProcessor struct {
|
|
// ExportTimeout corresponds to the JSON schema field "export_timeout".
|
|
ExportTimeout *int `json:"export_timeout,omitempty" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"`
|
|
|
|
// Exporter corresponds to the JSON schema field "exporter".
|
|
Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
|
|
|
|
// MaxExportBatchSize corresponds to the JSON schema field
|
|
// "max_export_batch_size".
|
|
MaxExportBatchSize *int `json:"max_export_batch_size,omitempty" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"`
|
|
|
|
// MaxQueueSize corresponds to the JSON schema field "max_queue_size".
|
|
MaxQueueSize *int `json:"max_queue_size,omitempty" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"`
|
|
|
|
// ScheduleDelay corresponds to the JSON schema field "schedule_delay".
|
|
ScheduleDelay *int `json:"schedule_delay,omitempty" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"`
|
|
}
|
|
|
|
type Common map[string]interface{}
|
|
|
|
type Console map[string]interface{}
|
|
|
|
type Detectors struct {
|
|
// Attributes corresponds to the JSON schema field "attributes".
|
|
Attributes *DetectorsAttributes `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"`
|
|
}
|
|
|
|
type DetectorsAttributes struct {
|
|
// Excluded corresponds to the JSON schema field "excluded".
|
|
Excluded []string `json:"excluded,omitempty" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"`
|
|
|
|
// Included corresponds to the JSON schema field "included".
|
|
Included []string `json:"included,omitempty" yaml:"included,omitempty" mapstructure:"included,omitempty"`
|
|
}
|
|
|
|
type GeneralInstrumentation struct {
|
|
// Http corresponds to the JSON schema field "http".
|
|
Http *GeneralInstrumentationHttp `json:"http,omitempty" yaml:"http,omitempty" mapstructure:"http,omitempty"`
|
|
|
|
// Peer corresponds to the JSON schema field "peer".
|
|
Peer *GeneralInstrumentationPeer `json:"peer,omitempty" yaml:"peer,omitempty" mapstructure:"peer,omitempty"`
|
|
}
|
|
|
|
type GeneralInstrumentationHttp struct {
|
|
// Client corresponds to the JSON schema field "client".
|
|
Client *GeneralInstrumentationHttpClient `json:"client,omitempty" yaml:"client,omitempty" mapstructure:"client,omitempty"`
|
|
|
|
// Server corresponds to the JSON schema field "server".
|
|
Server *GeneralInstrumentationHttpServer `json:"server,omitempty" yaml:"server,omitempty" mapstructure:"server,omitempty"`
|
|
}
|
|
|
|
type GeneralInstrumentationHttpClient struct {
|
|
// RequestCapturedHeaders corresponds to the JSON schema field
|
|
// "request_captured_headers".
|
|
RequestCapturedHeaders []string `json:"request_captured_headers,omitempty" yaml:"request_captured_headers,omitempty" mapstructure:"request_captured_headers,omitempty"`
|
|
|
|
// ResponseCapturedHeaders corresponds to the JSON schema field
|
|
// "response_captured_headers".
|
|
ResponseCapturedHeaders []string `json:"response_captured_headers,omitempty" yaml:"response_captured_headers,omitempty" mapstructure:"response_captured_headers,omitempty"`
|
|
}
|
|
|
|
type GeneralInstrumentationHttpServer struct {
|
|
// RequestCapturedHeaders corresponds to the JSON schema field
|
|
// "request_captured_headers".
|
|
RequestCapturedHeaders []string `json:"request_captured_headers,omitempty" yaml:"request_captured_headers,omitempty" mapstructure:"request_captured_headers,omitempty"`
|
|
|
|
// ResponseCapturedHeaders corresponds to the JSON schema field
|
|
// "response_captured_headers".
|
|
ResponseCapturedHeaders []string `json:"response_captured_headers,omitempty" yaml:"response_captured_headers,omitempty" mapstructure:"response_captured_headers,omitempty"`
|
|
}
|
|
|
|
type GeneralInstrumentationPeer struct {
|
|
// ServiceMapping corresponds to the JSON schema field "service_mapping".
|
|
ServiceMapping []GeneralInstrumentationPeerServiceMappingElem `json:"service_mapping,omitempty" yaml:"service_mapping,omitempty" mapstructure:"service_mapping,omitempty"`
|
|
}
|
|
|
|
type GeneralInstrumentationPeerServiceMappingElem struct {
|
|
// Peer corresponds to the JSON schema field "peer".
|
|
Peer string `json:"peer" yaml:"peer" mapstructure:"peer"`
|
|
|
|
// Service corresponds to the JSON schema field "service".
|
|
Service string `json:"service" yaml:"service" mapstructure:"service"`
|
|
}
|
|
|
|
type IncludeExclude struct {
|
|
// Excluded corresponds to the JSON schema field "excluded".
|
|
Excluded []string `json:"excluded,omitempty" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"`
|
|
|
|
// Included corresponds to the JSON schema field "included".
|
|
Included []string `json:"included,omitempty" yaml:"included,omitempty" mapstructure:"included,omitempty"`
|
|
}
|
|
|
|
type Instrumentation struct {
|
|
// Cpp corresponds to the JSON schema field "cpp".
|
|
Cpp LanguageSpecificInstrumentation `json:"cpp,omitempty" yaml:"cpp,omitempty" mapstructure:"cpp,omitempty"`
|
|
|
|
// Dotnet corresponds to the JSON schema field "dotnet".
|
|
Dotnet LanguageSpecificInstrumentation `json:"dotnet,omitempty" yaml:"dotnet,omitempty" mapstructure:"dotnet,omitempty"`
|
|
|
|
// Erlang corresponds to the JSON schema field "erlang".
|
|
Erlang LanguageSpecificInstrumentation `json:"erlang,omitempty" yaml:"erlang,omitempty" mapstructure:"erlang,omitempty"`
|
|
|
|
// General corresponds to the JSON schema field "general".
|
|
General *GeneralInstrumentation `json:"general,omitempty" yaml:"general,omitempty" mapstructure:"general,omitempty"`
|
|
|
|
// Go corresponds to the JSON schema field "go".
|
|
Go LanguageSpecificInstrumentation `json:"go,omitempty" yaml:"go,omitempty" mapstructure:"go,omitempty"`
|
|
|
|
// Java corresponds to the JSON schema field "java".
|
|
Java LanguageSpecificInstrumentation `json:"java,omitempty" yaml:"java,omitempty" mapstructure:"java,omitempty"`
|
|
|
|
// Js corresponds to the JSON schema field "js".
|
|
Js LanguageSpecificInstrumentation `json:"js,omitempty" yaml:"js,omitempty" mapstructure:"js,omitempty"`
|
|
|
|
// Php corresponds to the JSON schema field "php".
|
|
Php LanguageSpecificInstrumentation `json:"php,omitempty" yaml:"php,omitempty" mapstructure:"php,omitempty"`
|
|
|
|
// Python corresponds to the JSON schema field "python".
|
|
Python LanguageSpecificInstrumentation `json:"python,omitempty" yaml:"python,omitempty" mapstructure:"python,omitempty"`
|
|
|
|
// Ruby corresponds to the JSON schema field "ruby".
|
|
Ruby LanguageSpecificInstrumentation `json:"ruby,omitempty" yaml:"ruby,omitempty" mapstructure:"ruby,omitempty"`
|
|
|
|
// Rust corresponds to the JSON schema field "rust".
|
|
Rust LanguageSpecificInstrumentation `json:"rust,omitempty" yaml:"rust,omitempty" mapstructure:"rust,omitempty"`
|
|
|
|
// Swift corresponds to the JSON schema field "swift".
|
|
Swift LanguageSpecificInstrumentation `json:"swift,omitempty" yaml:"swift,omitempty" mapstructure:"swift,omitempty"`
|
|
}
|
|
|
|
type LanguageSpecificInstrumentation map[string]interface{}
|
|
|
|
type LogRecordExporter struct {
|
|
// Console corresponds to the JSON schema field "console".
|
|
Console Console `json:"console,omitempty" yaml:"console,omitempty" mapstructure:"console,omitempty"`
|
|
|
|
// OTLP corresponds to the JSON schema field "otlp".
|
|
OTLP *OTLP `json:"otlp,omitempty" yaml:"otlp,omitempty" mapstructure:"otlp,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type LogRecordLimits struct {
|
|
// AttributeCountLimit corresponds to the JSON schema field
|
|
// "attribute_count_limit".
|
|
AttributeCountLimit *int `json:"attribute_count_limit,omitempty" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
|
|
|
|
// AttributeValueLengthLimit corresponds to the JSON schema field
|
|
// "attribute_value_length_limit".
|
|
AttributeValueLengthLimit *int `json:"attribute_value_length_limit,omitempty" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
|
|
}
|
|
|
|
type LogRecordProcessor struct {
|
|
// Batch corresponds to the JSON schema field "batch".
|
|
Batch *BatchLogRecordProcessor `json:"batch,omitempty" yaml:"batch,omitempty" mapstructure:"batch,omitempty"`
|
|
|
|
// Simple corresponds to the JSON schema field "simple".
|
|
Simple *SimpleLogRecordProcessor `json:"simple,omitempty" yaml:"simple,omitempty" mapstructure:"simple,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type LoggerProvider struct {
|
|
// Limits corresponds to the JSON schema field "limits".
|
|
Limits *LogRecordLimits `json:"limits,omitempty" yaml:"limits,omitempty" mapstructure:"limits,omitempty"`
|
|
|
|
// Processors corresponds to the JSON schema field "processors".
|
|
Processors []LogRecordProcessor `json:"processors,omitempty" yaml:"processors,omitempty" mapstructure:"processors,omitempty"`
|
|
}
|
|
|
|
type MeterProvider struct {
|
|
// Readers corresponds to the JSON schema field "readers".
|
|
Readers []MetricReader `json:"readers,omitempty" yaml:"readers,omitempty" mapstructure:"readers,omitempty"`
|
|
|
|
// Views corresponds to the JSON schema field "views".
|
|
Views []View `json:"views,omitempty" yaml:"views,omitempty" mapstructure:"views,omitempty"`
|
|
}
|
|
|
|
type MetricProducer struct {
|
|
// Opencensus corresponds to the JSON schema field "opencensus".
|
|
Opencensus MetricProducerOpencensus `json:"opencensus,omitempty" yaml:"opencensus,omitempty" mapstructure:"opencensus,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type MetricProducerOpencensus map[string]interface{}
|
|
|
|
type MetricReader struct {
|
|
// Periodic corresponds to the JSON schema field "periodic".
|
|
Periodic *PeriodicMetricReader `json:"periodic,omitempty" yaml:"periodic,omitempty" mapstructure:"periodic,omitempty"`
|
|
|
|
// Producers corresponds to the JSON schema field "producers".
|
|
Producers []MetricProducer `json:"producers,omitempty" yaml:"producers,omitempty" mapstructure:"producers,omitempty"`
|
|
|
|
// Pull corresponds to the JSON schema field "pull".
|
|
Pull *PullMetricReader `json:"pull,omitempty" yaml:"pull,omitempty" mapstructure:"pull,omitempty"`
|
|
}
|
|
|
|
type NameStringValuePair struct {
|
|
// Name corresponds to the JSON schema field "name".
|
|
Name string `json:"name" yaml:"name" mapstructure:"name"`
|
|
|
|
// Value corresponds to the JSON schema field "value".
|
|
Value *string `json:"value" yaml:"value" mapstructure:"value"`
|
|
}
|
|
|
|
type OTLP struct {
|
|
// Certificate corresponds to the JSON schema field "certificate".
|
|
Certificate *string `json:"certificate,omitempty" yaml:"certificate,omitempty" mapstructure:"certificate,omitempty"`
|
|
|
|
// ClientCertificate corresponds to the JSON schema field "client_certificate".
|
|
ClientCertificate *string `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty" mapstructure:"client_certificate,omitempty"`
|
|
|
|
// ClientKey corresponds to the JSON schema field "client_key".
|
|
ClientKey *string `json:"client_key,omitempty" yaml:"client_key,omitempty" mapstructure:"client_key,omitempty"`
|
|
|
|
// Compression corresponds to the JSON schema field "compression".
|
|
Compression *string `json:"compression,omitempty" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
|
|
|
|
// Endpoint corresponds to the JSON schema field "endpoint".
|
|
Endpoint *string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
|
|
|
|
// Headers corresponds to the JSON schema field "headers".
|
|
Headers []NameStringValuePair `json:"headers,omitempty" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
|
|
|
|
// HeadersList corresponds to the JSON schema field "headers_list".
|
|
HeadersList *string `json:"headers_list,omitempty" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
|
|
|
|
// Insecure corresponds to the JSON schema field "insecure".
|
|
Insecure *bool `json:"insecure,omitempty" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"`
|
|
|
|
// Protocol corresponds to the JSON schema field "protocol".
|
|
Protocol *string `json:"protocol" yaml:"protocol" mapstructure:"protocol"`
|
|
|
|
// Timeout corresponds to the JSON schema field "timeout".
|
|
Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
|
|
}
|
|
|
|
type OTLPMetric struct {
|
|
// Certificate corresponds to the JSON schema field "certificate".
|
|
Certificate *string `json:"certificate,omitempty" yaml:"certificate,omitempty" mapstructure:"certificate,omitempty"`
|
|
|
|
// ClientCertificate corresponds to the JSON schema field "client_certificate".
|
|
ClientCertificate *string `json:"client_certificate,omitempty" yaml:"client_certificate,omitempty" mapstructure:"client_certificate,omitempty"`
|
|
|
|
// ClientKey corresponds to the JSON schema field "client_key".
|
|
ClientKey *string `json:"client_key,omitempty" yaml:"client_key,omitempty" mapstructure:"client_key,omitempty"`
|
|
|
|
// Compression corresponds to the JSON schema field "compression".
|
|
Compression *string `json:"compression,omitempty" yaml:"compression,omitempty" mapstructure:"compression,omitempty"`
|
|
|
|
// DefaultHistogramAggregation corresponds to the JSON schema field
|
|
// "default_histogram_aggregation".
|
|
DefaultHistogramAggregation *OTLPMetricDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"`
|
|
|
|
// Endpoint corresponds to the JSON schema field "endpoint".
|
|
Endpoint *string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
|
|
|
|
// Headers corresponds to the JSON schema field "headers".
|
|
Headers []NameStringValuePair `json:"headers,omitempty" yaml:"headers,omitempty" mapstructure:"headers,omitempty"`
|
|
|
|
// HeadersList corresponds to the JSON schema field "headers_list".
|
|
HeadersList *string `json:"headers_list,omitempty" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"`
|
|
|
|
// Insecure corresponds to the JSON schema field "insecure".
|
|
Insecure *bool `json:"insecure,omitempty" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"`
|
|
|
|
// Protocol corresponds to the JSON schema field "protocol".
|
|
Protocol *string `json:"protocol" yaml:"protocol" mapstructure:"protocol"`
|
|
|
|
// TemporalityPreference corresponds to the JSON schema field
|
|
// "temporality_preference".
|
|
TemporalityPreference *string `json:"temporality_preference,omitempty" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"`
|
|
|
|
// Timeout corresponds to the JSON schema field "timeout".
|
|
Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
|
|
}
|
|
|
|
type OTLPMetricDefaultHistogramAggregation string
|
|
|
|
const OTLPMetricDefaultHistogramAggregationBase2ExponentialBucketHistogram OTLPMetricDefaultHistogramAggregation = "base2_exponential_bucket_histogram"
|
|
const OTLPMetricDefaultHistogramAggregationExplicitBucketHistogram OTLPMetricDefaultHistogramAggregation = "explicit_bucket_histogram"
|
|
|
|
type OpenTelemetryConfiguration struct {
|
|
// AttributeLimits corresponds to the JSON schema field "attribute_limits".
|
|
AttributeLimits *AttributeLimits `json:"attribute_limits,omitempty" yaml:"attribute_limits,omitempty" mapstructure:"attribute_limits,omitempty"`
|
|
|
|
// Disabled corresponds to the JSON schema field "disabled".
|
|
Disabled *bool `json:"disabled,omitempty" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"`
|
|
|
|
// FileFormat corresponds to the JSON schema field "file_format".
|
|
FileFormat *string `json:"file_format" yaml:"file_format" mapstructure:"file_format"`
|
|
|
|
// Instrumentation corresponds to the JSON schema field "instrumentation".
|
|
Instrumentation *Instrumentation `json:"instrumentation,omitempty" yaml:"instrumentation,omitempty" mapstructure:"instrumentation,omitempty"`
|
|
|
|
// LoggerProvider corresponds to the JSON schema field "logger_provider".
|
|
LoggerProvider *LoggerProvider `json:"logger_provider,omitempty" yaml:"logger_provider,omitempty" mapstructure:"logger_provider,omitempty"`
|
|
|
|
// MeterProvider corresponds to the JSON schema field "meter_provider".
|
|
MeterProvider *MeterProvider `json:"meter_provider,omitempty" yaml:"meter_provider,omitempty" mapstructure:"meter_provider,omitempty"`
|
|
|
|
// Propagator corresponds to the JSON schema field "propagator".
|
|
Propagator *Propagator `json:"propagator,omitempty" yaml:"propagator,omitempty" mapstructure:"propagator,omitempty"`
|
|
|
|
// Resource corresponds to the JSON schema field "resource".
|
|
Resource *Resource `json:"resource,omitempty" yaml:"resource,omitempty" mapstructure:"resource,omitempty"`
|
|
|
|
// TracerProvider corresponds to the JSON schema field "tracer_provider".
|
|
TracerProvider *TracerProvider `json:"tracer_provider,omitempty" yaml:"tracer_provider,omitempty" mapstructure:"tracer_provider,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type PeriodicMetricReader struct {
|
|
// Exporter corresponds to the JSON schema field "exporter".
|
|
Exporter PushMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
|
|
|
|
// Interval corresponds to the JSON schema field "interval".
|
|
Interval *int `json:"interval,omitempty" yaml:"interval,omitempty" mapstructure:"interval,omitempty"`
|
|
|
|
// Timeout corresponds to the JSON schema field "timeout".
|
|
Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
|
|
}
|
|
|
|
type Prometheus struct {
|
|
// Host corresponds to the JSON schema field "host".
|
|
Host *string `json:"host,omitempty" yaml:"host,omitempty" mapstructure:"host,omitempty"`
|
|
|
|
// Port corresponds to the JSON schema field "port".
|
|
Port *int `json:"port,omitempty" yaml:"port,omitempty" mapstructure:"port,omitempty"`
|
|
|
|
// WithResourceConstantLabels corresponds to the JSON schema field
|
|
// "with_resource_constant_labels".
|
|
WithResourceConstantLabels *IncludeExclude `json:"with_resource_constant_labels,omitempty" yaml:"with_resource_constant_labels,omitempty" mapstructure:"with_resource_constant_labels,omitempty"`
|
|
|
|
// WithoutScopeInfo corresponds to the JSON schema field "without_scope_info".
|
|
WithoutScopeInfo *bool `json:"without_scope_info,omitempty" yaml:"without_scope_info,omitempty" mapstructure:"without_scope_info,omitempty"`
|
|
|
|
// WithoutTypeSuffix corresponds to the JSON schema field "without_type_suffix".
|
|
WithoutTypeSuffix *bool `json:"without_type_suffix,omitempty" yaml:"without_type_suffix,omitempty" mapstructure:"without_type_suffix,omitempty"`
|
|
|
|
// WithoutUnits corresponds to the JSON schema field "without_units".
|
|
WithoutUnits *bool `json:"without_units,omitempty" yaml:"without_units,omitempty" mapstructure:"without_units,omitempty"`
|
|
}
|
|
|
|
type Propagator struct {
|
|
// Composite corresponds to the JSON schema field "composite".
|
|
Composite []*string `json:"composite,omitempty" yaml:"composite,omitempty" mapstructure:"composite,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type PullMetricExporter struct {
|
|
// Prometheus corresponds to the JSON schema field "prometheus".
|
|
Prometheus *Prometheus `json:"prometheus,omitempty" yaml:"prometheus,omitempty" mapstructure:"prometheus,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type PullMetricReader struct {
|
|
// Exporter corresponds to the JSON schema field "exporter".
|
|
Exporter PullMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
|
|
}
|
|
|
|
type PushMetricExporter struct {
|
|
// Console corresponds to the JSON schema field "console".
|
|
Console Console `json:"console,omitempty" yaml:"console,omitempty" mapstructure:"console,omitempty"`
|
|
|
|
// OTLP corresponds to the JSON schema field "otlp".
|
|
OTLP *OTLPMetric `json:"otlp,omitempty" yaml:"otlp,omitempty" mapstructure:"otlp,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type Resource struct {
|
|
// Attributes corresponds to the JSON schema field "attributes".
|
|
Attributes []AttributeNameValue `json:"attributes,omitempty" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"`
|
|
|
|
// AttributesList corresponds to the JSON schema field "attributes_list".
|
|
AttributesList *string `json:"attributes_list,omitempty" yaml:"attributes_list,omitempty" mapstructure:"attributes_list,omitempty"`
|
|
|
|
// Detectors corresponds to the JSON schema field "detectors".
|
|
Detectors *Detectors `json:"detectors,omitempty" yaml:"detectors,omitempty" mapstructure:"detectors,omitempty"`
|
|
|
|
// SchemaUrl corresponds to the JSON schema field "schema_url".
|
|
SchemaUrl *string `json:"schema_url,omitempty" yaml:"schema_url,omitempty" mapstructure:"schema_url,omitempty"`
|
|
}
|
|
|
|
type Sampler struct {
|
|
// AlwaysOff corresponds to the JSON schema field "always_off".
|
|
AlwaysOff SamplerAlwaysOff `json:"always_off,omitempty" yaml:"always_off,omitempty" mapstructure:"always_off,omitempty"`
|
|
|
|
// AlwaysOn corresponds to the JSON schema field "always_on".
|
|
AlwaysOn SamplerAlwaysOn `json:"always_on,omitempty" yaml:"always_on,omitempty" mapstructure:"always_on,omitempty"`
|
|
|
|
// JaegerRemote corresponds to the JSON schema field "jaeger_remote".
|
|
JaegerRemote *SamplerJaegerRemote `json:"jaeger_remote,omitempty" yaml:"jaeger_remote,omitempty" mapstructure:"jaeger_remote,omitempty"`
|
|
|
|
// ParentBased corresponds to the JSON schema field "parent_based".
|
|
ParentBased *SamplerParentBased `json:"parent_based,omitempty" yaml:"parent_based,omitempty" mapstructure:"parent_based,omitempty"`
|
|
|
|
// TraceIDRatioBased corresponds to the JSON schema field "trace_id_ratio_based".
|
|
TraceIDRatioBased *SamplerTraceIDRatioBased `json:"trace_id_ratio_based,omitempty" yaml:"trace_id_ratio_based,omitempty" mapstructure:"trace_id_ratio_based,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type SamplerAlwaysOff map[string]interface{}
|
|
|
|
type SamplerAlwaysOn map[string]interface{}
|
|
|
|
type SamplerJaegerRemote struct {
|
|
// Endpoint corresponds to the JSON schema field "endpoint".
|
|
Endpoint *string `json:"endpoint,omitempty" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"`
|
|
|
|
// InitialSampler corresponds to the JSON schema field "initial_sampler".
|
|
InitialSampler *Sampler `json:"initial_sampler,omitempty" yaml:"initial_sampler,omitempty" mapstructure:"initial_sampler,omitempty"`
|
|
|
|
// Interval corresponds to the JSON schema field "interval".
|
|
Interval *int `json:"interval,omitempty" yaml:"interval,omitempty" mapstructure:"interval,omitempty"`
|
|
}
|
|
|
|
type SamplerParentBased struct {
|
|
// LocalParentNotSampled corresponds to the JSON schema field
|
|
// "local_parent_not_sampled".
|
|
LocalParentNotSampled *Sampler `json:"local_parent_not_sampled,omitempty" yaml:"local_parent_not_sampled,omitempty" mapstructure:"local_parent_not_sampled,omitempty"`
|
|
|
|
// LocalParentSampled corresponds to the JSON schema field "local_parent_sampled".
|
|
LocalParentSampled *Sampler `json:"local_parent_sampled,omitempty" yaml:"local_parent_sampled,omitempty" mapstructure:"local_parent_sampled,omitempty"`
|
|
|
|
// RemoteParentNotSampled corresponds to the JSON schema field
|
|
// "remote_parent_not_sampled".
|
|
RemoteParentNotSampled *Sampler `json:"remote_parent_not_sampled,omitempty" yaml:"remote_parent_not_sampled,omitempty" mapstructure:"remote_parent_not_sampled,omitempty"`
|
|
|
|
// RemoteParentSampled corresponds to the JSON schema field
|
|
// "remote_parent_sampled".
|
|
RemoteParentSampled *Sampler `json:"remote_parent_sampled,omitempty" yaml:"remote_parent_sampled,omitempty" mapstructure:"remote_parent_sampled,omitempty"`
|
|
|
|
// Root corresponds to the JSON schema field "root".
|
|
Root *Sampler `json:"root,omitempty" yaml:"root,omitempty" mapstructure:"root,omitempty"`
|
|
}
|
|
|
|
type SamplerTraceIDRatioBased struct {
|
|
// Ratio corresponds to the JSON schema field "ratio".
|
|
Ratio *float64 `json:"ratio,omitempty" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"`
|
|
}
|
|
|
|
type SimpleLogRecordProcessor struct {
|
|
// Exporter corresponds to the JSON schema field "exporter".
|
|
Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
|
|
}
|
|
|
|
type SimpleSpanProcessor struct {
|
|
// Exporter corresponds to the JSON schema field "exporter".
|
|
Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"`
|
|
}
|
|
|
|
type SpanExporter struct {
|
|
// Console corresponds to the JSON schema field "console".
|
|
Console Console `json:"console,omitempty" yaml:"console,omitempty" mapstructure:"console,omitempty"`
|
|
|
|
// OTLP corresponds to the JSON schema field "otlp".
|
|
OTLP *OTLP `json:"otlp,omitempty" yaml:"otlp,omitempty" mapstructure:"otlp,omitempty"`
|
|
|
|
// Zipkin corresponds to the JSON schema field "zipkin".
|
|
Zipkin *Zipkin `json:"zipkin,omitempty" yaml:"zipkin,omitempty" mapstructure:"zipkin,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type SpanLimits struct {
|
|
// AttributeCountLimit corresponds to the JSON schema field
|
|
// "attribute_count_limit".
|
|
AttributeCountLimit *int `json:"attribute_count_limit,omitempty" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"`
|
|
|
|
// AttributeValueLengthLimit corresponds to the JSON schema field
|
|
// "attribute_value_length_limit".
|
|
AttributeValueLengthLimit *int `json:"attribute_value_length_limit,omitempty" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"`
|
|
|
|
// EventAttributeCountLimit corresponds to the JSON schema field
|
|
// "event_attribute_count_limit".
|
|
EventAttributeCountLimit *int `json:"event_attribute_count_limit,omitempty" yaml:"event_attribute_count_limit,omitempty" mapstructure:"event_attribute_count_limit,omitempty"`
|
|
|
|
// EventCountLimit corresponds to the JSON schema field "event_count_limit".
|
|
EventCountLimit *int `json:"event_count_limit,omitempty" yaml:"event_count_limit,omitempty" mapstructure:"event_count_limit,omitempty"`
|
|
|
|
// LinkAttributeCountLimit corresponds to the JSON schema field
|
|
// "link_attribute_count_limit".
|
|
LinkAttributeCountLimit *int `json:"link_attribute_count_limit,omitempty" yaml:"link_attribute_count_limit,omitempty" mapstructure:"link_attribute_count_limit,omitempty"`
|
|
|
|
// LinkCountLimit corresponds to the JSON schema field "link_count_limit".
|
|
LinkCountLimit *int `json:"link_count_limit,omitempty" yaml:"link_count_limit,omitempty" mapstructure:"link_count_limit,omitempty"`
|
|
}
|
|
|
|
type SpanProcessor struct {
|
|
// Batch corresponds to the JSON schema field "batch".
|
|
Batch *BatchSpanProcessor `json:"batch,omitempty" yaml:"batch,omitempty" mapstructure:"batch,omitempty"`
|
|
|
|
// Simple corresponds to the JSON schema field "simple".
|
|
Simple *SimpleSpanProcessor `json:"simple,omitempty" yaml:"simple,omitempty" mapstructure:"simple,omitempty"`
|
|
|
|
AdditionalProperties interface{} `mapstructure:",remain"`
|
|
}
|
|
|
|
type TracerProvider struct {
|
|
// Limits corresponds to the JSON schema field "limits".
|
|
Limits *SpanLimits `json:"limits,omitempty" yaml:"limits,omitempty" mapstructure:"limits,omitempty"`
|
|
|
|
// Processors corresponds to the JSON schema field "processors".
|
|
Processors []SpanProcessor `json:"processors,omitempty" yaml:"processors,omitempty" mapstructure:"processors,omitempty"`
|
|
|
|
// Sampler corresponds to the JSON schema field "sampler".
|
|
Sampler *Sampler `json:"sampler,omitempty" yaml:"sampler,omitempty" mapstructure:"sampler,omitempty"`
|
|
}
|
|
|
|
type View struct {
|
|
// Selector corresponds to the JSON schema field "selector".
|
|
Selector *ViewSelector `json:"selector,omitempty" yaml:"selector,omitempty" mapstructure:"selector,omitempty"`
|
|
|
|
// Stream corresponds to the JSON schema field "stream".
|
|
Stream *ViewStream `json:"stream,omitempty" yaml:"stream,omitempty" mapstructure:"stream,omitempty"`
|
|
}
|
|
|
|
type ViewSelector struct {
|
|
// InstrumentName corresponds to the JSON schema field "instrument_name".
|
|
InstrumentName *string `json:"instrument_name,omitempty" yaml:"instrument_name,omitempty" mapstructure:"instrument_name,omitempty"`
|
|
|
|
// InstrumentType corresponds to the JSON schema field "instrument_type".
|
|
InstrumentType *ViewSelectorInstrumentType `json:"instrument_type,omitempty" yaml:"instrument_type,omitempty" mapstructure:"instrument_type,omitempty"`
|
|
|
|
// MeterName corresponds to the JSON schema field "meter_name".
|
|
MeterName *string `json:"meter_name,omitempty" yaml:"meter_name,omitempty" mapstructure:"meter_name,omitempty"`
|
|
|
|
// MeterSchemaUrl corresponds to the JSON schema field "meter_schema_url".
|
|
MeterSchemaUrl *string `json:"meter_schema_url,omitempty" yaml:"meter_schema_url,omitempty" mapstructure:"meter_schema_url,omitempty"`
|
|
|
|
// MeterVersion corresponds to the JSON schema field "meter_version".
|
|
MeterVersion *string `json:"meter_version,omitempty" yaml:"meter_version,omitempty" mapstructure:"meter_version,omitempty"`
|
|
|
|
// Unit corresponds to the JSON schema field "unit".
|
|
Unit *string `json:"unit,omitempty" yaml:"unit,omitempty" mapstructure:"unit,omitempty"`
|
|
}
|
|
|
|
type ViewSelectorInstrumentType string
|
|
|
|
const ViewSelectorInstrumentTypeCounter ViewSelectorInstrumentType = "counter"
|
|
const ViewSelectorInstrumentTypeHistogram ViewSelectorInstrumentType = "histogram"
|
|
const ViewSelectorInstrumentTypeObservableCounter ViewSelectorInstrumentType = "observable_counter"
|
|
const ViewSelectorInstrumentTypeObservableGauge ViewSelectorInstrumentType = "observable_gauge"
|
|
const ViewSelectorInstrumentTypeObservableUpDownCounter ViewSelectorInstrumentType = "observable_up_down_counter"
|
|
const ViewSelectorInstrumentTypeUpDownCounter ViewSelectorInstrumentType = "up_down_counter"
|
|
|
|
type ViewStream struct {
|
|
// Aggregation corresponds to the JSON schema field "aggregation".
|
|
Aggregation *ViewStreamAggregation `json:"aggregation,omitempty" yaml:"aggregation,omitempty" mapstructure:"aggregation,omitempty"`
|
|
|
|
// AttributeKeys corresponds to the JSON schema field "attribute_keys".
|
|
AttributeKeys *IncludeExclude `json:"attribute_keys,omitempty" yaml:"attribute_keys,omitempty" mapstructure:"attribute_keys,omitempty"`
|
|
|
|
// Description corresponds to the JSON schema field "description".
|
|
Description *string `json:"description,omitempty" yaml:"description,omitempty" mapstructure:"description,omitempty"`
|
|
|
|
// Name corresponds to the JSON schema field "name".
|
|
Name *string `json:"name,omitempty" yaml:"name,omitempty" mapstructure:"name,omitempty"`
|
|
}
|
|
|
|
type ViewStreamAggregation struct {
|
|
// Base2ExponentialBucketHistogram corresponds to the JSON schema field
|
|
// "base2_exponential_bucket_histogram".
|
|
Base2ExponentialBucketHistogram *ViewStreamAggregationBase2ExponentialBucketHistogram `json:"base2_exponential_bucket_histogram,omitempty" yaml:"base2_exponential_bucket_histogram,omitempty" mapstructure:"base2_exponential_bucket_histogram,omitempty"`
|
|
|
|
// Default corresponds to the JSON schema field "default".
|
|
Default ViewStreamAggregationDefault `json:"default,omitempty" yaml:"default,omitempty" mapstructure:"default,omitempty"`
|
|
|
|
// Drop corresponds to the JSON schema field "drop".
|
|
Drop ViewStreamAggregationDrop `json:"drop,omitempty" yaml:"drop,omitempty" mapstructure:"drop,omitempty"`
|
|
|
|
// ExplicitBucketHistogram corresponds to the JSON schema field
|
|
// "explicit_bucket_histogram".
|
|
ExplicitBucketHistogram *ViewStreamAggregationExplicitBucketHistogram `json:"explicit_bucket_histogram,omitempty" yaml:"explicit_bucket_histogram,omitempty" mapstructure:"explicit_bucket_histogram,omitempty"`
|
|
|
|
// LastValue corresponds to the JSON schema field "last_value".
|
|
LastValue ViewStreamAggregationLastValue `json:"last_value,omitempty" yaml:"last_value,omitempty" mapstructure:"last_value,omitempty"`
|
|
|
|
// Sum corresponds to the JSON schema field "sum".
|
|
Sum ViewStreamAggregationSum `json:"sum,omitempty" yaml:"sum,omitempty" mapstructure:"sum,omitempty"`
|
|
}
|
|
|
|
type ViewStreamAggregationBase2ExponentialBucketHistogram struct {
|
|
// MaxScale corresponds to the JSON schema field "max_scale".
|
|
MaxScale *int `json:"max_scale,omitempty" yaml:"max_scale,omitempty" mapstructure:"max_scale,omitempty"`
|
|
|
|
// MaxSize corresponds to the JSON schema field "max_size".
|
|
MaxSize *int `json:"max_size,omitempty" yaml:"max_size,omitempty" mapstructure:"max_size,omitempty"`
|
|
|
|
// RecordMinMax corresponds to the JSON schema field "record_min_max".
|
|
RecordMinMax *bool `json:"record_min_max,omitempty" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"`
|
|
}
|
|
|
|
type ViewStreamAggregationDefault map[string]interface{}
|
|
|
|
type ViewStreamAggregationDrop map[string]interface{}
|
|
|
|
type ViewStreamAggregationExplicitBucketHistogram struct {
|
|
// Boundaries corresponds to the JSON schema field "boundaries".
|
|
Boundaries []float64 `json:"boundaries,omitempty" yaml:"boundaries,omitempty" mapstructure:"boundaries,omitempty"`
|
|
|
|
// RecordMinMax corresponds to the JSON schema field "record_min_max".
|
|
RecordMinMax *bool `json:"record_min_max,omitempty" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"`
|
|
}
|
|
|
|
type ViewStreamAggregationLastValue map[string]interface{}
|
|
|
|
type ViewStreamAggregationSum map[string]interface{}
|
|
|
|
type Zipkin struct {
|
|
// Endpoint corresponds to the JSON schema field "endpoint".
|
|
Endpoint *string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
|
|
|
|
// Timeout corresponds to the JSON schema field "timeout".
|
|
Timeout *int `json:"timeout,omitempty" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"`
|
|
}
|