// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. package otelconf type Aggregation struct { // Configures the stream to collect data for the exponential histogram metric // point, which uses a base-2 exponential formula to determine bucket boundaries // and an integer scale parameter to control resolution. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#base2-exponential-bucket-histogram-aggregation // for details. // If omitted, ignore. // Base2ExponentialBucketHistogram *Base2ExponentialBucketHistogramAggregation `json:"base2_exponential_bucket_histogram,omitempty,omitzero" yaml:"base2_exponential_bucket_histogram,omitempty" mapstructure:"base2_exponential_bucket_histogram,omitempty"` // Configures the stream to use the instrument kind to select an aggregation and // advisory parameters to influence aggregation configuration parameters. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#default-aggregation // for details. // If omitted, ignore. // Default DefaultAggregation `json:"default,omitempty,omitzero" yaml:"default,omitempty" mapstructure:"default,omitempty"` // Configures the stream to ignore/drop all instrument measurements. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#drop-aggregation // for details. // If omitted, ignore. // Drop DropAggregation `json:"drop,omitempty,omitzero" yaml:"drop,omitempty" mapstructure:"drop,omitempty"` // Configures the stream to collect data for the histogram metric point using a // set of explicit boundary values for histogram bucketing. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#explicit-bucket-histogram-aggregation // for details // If omitted, ignore. // ExplicitBucketHistogram *ExplicitBucketHistogramAggregation `json:"explicit_bucket_histogram,omitempty,omitzero" yaml:"explicit_bucket_histogram,omitempty" mapstructure:"explicit_bucket_histogram,omitempty"` // Configures the stream to collect data using the last measurement. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#last-value-aggregation // for details. // If omitted, ignore. // LastValue LastValueAggregation `json:"last_value,omitempty,omitzero" yaml:"last_value,omitempty" mapstructure:"last_value,omitempty"` // Configures the stream to collect the arithmetic sum of measurement values. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#sum-aggregation // for details. // If omitted, ignore. // Sum SumAggregation `json:"sum,omitempty,omitzero" yaml:"sum,omitempty" mapstructure:"sum,omitempty"` } type AlwaysOffSampler map[string]interface{} type AlwaysOnSampler map[string]interface{} type AttributeLimits struct { // Configure max attribute count. // Value must be non-negative. // If omitted or null, 128 is used. // AttributeCountLimit AttributeLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"` // Configure max attribute value size. // Value must be non-negative. // If omitted or null, there is no limit. // AttributeValueLengthLimit AttributeLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"` } // Configure max attribute count. // Value must be non-negative. // If omitted or null, 128 is used. type AttributeLimitsAttributeCountLimit *int // Configure max attribute value size. // Value must be non-negative. // If omitted or null, there is no limit. type AttributeLimitsAttributeValueLengthLimit *int type AttributeNameValue struct { // The attribute name. // Property is required and must be non-null. // Name string `json:"name" yaml:"name" mapstructure:"name"` // The attribute type. // Values include: // * bool: Boolean attribute value. // * bool_array: Boolean array attribute value. // * double: Double attribute value. // * double_array: Double array attribute value. // * int: Integer attribute value. // * int_array: Integer array attribute value. // * string: String attribute value. // * string_array: String array attribute value. // If omitted, string is used. // Type *AttributeType `json:"type,omitempty,omitzero" yaml:"type,omitempty" mapstructure:"type,omitempty"` // The attribute value. // The type of value must match .type. // Property is required and must be non-null. // Value interface{} `json:"value" yaml:"value" mapstructure:"value"` } type AttributeType string const AttributeTypeBool AttributeType = "bool" const AttributeTypeBoolArray AttributeType = "bool_array" const AttributeTypeDouble AttributeType = "double" const AttributeTypeDoubleArray AttributeType = "double_array" const AttributeTypeInt AttributeType = "int" const AttributeTypeIntArray AttributeType = "int_array" const AttributeTypeString AttributeType = "string" const AttributeTypeStringArray AttributeType = "string_array" type B3MultiPropagator map[string]interface{} type B3Propagator map[string]interface{} type BaggagePropagator map[string]interface{} type Base2ExponentialBucketHistogramAggregation struct { // Configure the max scale factor. // If omitted or null, 20 is used. // MaxScale Base2ExponentialBucketHistogramAggregationMaxScale `json:"max_scale,omitempty,omitzero" yaml:"max_scale,omitempty" mapstructure:"max_scale,omitempty"` // Configure the maximum number of buckets in each of the positive and negative // ranges, not counting the special zero bucket. // If omitted or null, 160 is used. // MaxSize Base2ExponentialBucketHistogramAggregationMaxSize `json:"max_size,omitempty,omitzero" yaml:"max_size,omitempty" mapstructure:"max_size,omitempty"` // Configure whether or not to record min and max. // If omitted or null, true is used. // RecordMinMax Base2ExponentialBucketHistogramAggregationRecordMinMax `json:"record_min_max,omitempty,omitzero" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"` } // Configure the max scale factor. // If omitted or null, 20 is used. type Base2ExponentialBucketHistogramAggregationMaxScale *int // Configure the maximum number of buckets in each of the positive and negative // ranges, not counting the special zero bucket. // If omitted or null, 160 is used. type Base2ExponentialBucketHistogramAggregationMaxSize *int // Configure whether or not to record min and max. // If omitted or null, true is used. type Base2ExponentialBucketHistogramAggregationRecordMinMax *bool type BatchLogRecordProcessor struct { // Configure maximum allowed time (in milliseconds) to export data. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 30000 is used. // ExportTimeout BatchLogRecordProcessorExportTimeout `json:"export_timeout,omitempty,omitzero" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"` // Configure exporter. // Property is required and must be non-null. // Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` // Configure maximum batch size. Value must be positive. // If omitted or null, 512 is used. // MaxExportBatchSize BatchLogRecordProcessorMaxExportBatchSize `json:"max_export_batch_size,omitempty,omitzero" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"` // Configure maximum queue size. Value must be positive. // If omitted or null, 2048 is used. // MaxQueueSize BatchLogRecordProcessorMaxQueueSize `json:"max_queue_size,omitempty,omitzero" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"` // Configure delay interval (in milliseconds) between two consecutive exports. // Value must be non-negative. // If omitted or null, 1000 is used. // ScheduleDelay BatchLogRecordProcessorScheduleDelay `json:"schedule_delay,omitempty,omitzero" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"` } // Configure maximum allowed time (in milliseconds) to export data. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 30000 is used. type BatchLogRecordProcessorExportTimeout *int // Configure maximum batch size. Value must be positive. // If omitted or null, 512 is used. type BatchLogRecordProcessorMaxExportBatchSize *int // Configure maximum queue size. Value must be positive. // If omitted or null, 2048 is used. type BatchLogRecordProcessorMaxQueueSize *int // Configure delay interval (in milliseconds) between two consecutive exports. // Value must be non-negative. // If omitted or null, 1000 is used. type BatchLogRecordProcessorScheduleDelay *int type BatchSpanProcessor struct { // Configure maximum allowed time (in milliseconds) to export data. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 30000 is used. // ExportTimeout BatchSpanProcessorExportTimeout `json:"export_timeout,omitempty,omitzero" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"` // Configure exporter. // Property is required and must be non-null. // Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` // Configure maximum batch size. Value must be positive. // If omitted or null, 512 is used. // MaxExportBatchSize BatchSpanProcessorMaxExportBatchSize `json:"max_export_batch_size,omitempty,omitzero" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"` // Configure maximum queue size. Value must be positive. // If omitted or null, 2048 is used. // MaxQueueSize BatchSpanProcessorMaxQueueSize `json:"max_queue_size,omitempty,omitzero" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"` // Configure delay interval (in milliseconds) between two consecutive exports. // Value must be non-negative. // If omitted or null, 5000 is used. // ScheduleDelay BatchSpanProcessorScheduleDelay `json:"schedule_delay,omitempty,omitzero" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"` } // Configure maximum allowed time (in milliseconds) to export data. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 30000 is used. type BatchSpanProcessorExportTimeout *int // Configure maximum batch size. Value must be positive. // If omitted or null, 512 is used. type BatchSpanProcessorMaxExportBatchSize *int // Configure maximum queue size. Value must be positive. // If omitted or null, 2048 is used. type BatchSpanProcessorMaxQueueSize *int // Configure delay interval (in milliseconds) between two consecutive exports. // Value must be non-negative. // If omitted or null, 5000 is used. type BatchSpanProcessorScheduleDelay *int type CardinalityLimits struct { // Configure default cardinality limit for counter instruments. // If omitted or null, the value from .default is used. // Counter CardinalityLimitsCounter `json:"counter,omitempty,omitzero" yaml:"counter,omitempty" mapstructure:"counter,omitempty"` // Configure default cardinality limit for all instrument types. // Instrument-specific cardinality limits take priority. // If omitted or null, 2000 is used. // Default CardinalityLimitsDefault `json:"default,omitempty,omitzero" yaml:"default,omitempty" mapstructure:"default,omitempty"` // Configure default cardinality limit for gauge instruments. // If omitted or null, the value from .default is used. // Gauge CardinalityLimitsGauge `json:"gauge,omitempty,omitzero" yaml:"gauge,omitempty" mapstructure:"gauge,omitempty"` // Configure default cardinality limit for histogram instruments. // If omitted or null, the value from .default is used. // Histogram CardinalityLimitsHistogram `json:"histogram,omitempty,omitzero" yaml:"histogram,omitempty" mapstructure:"histogram,omitempty"` // Configure default cardinality limit for observable_counter instruments. // If omitted or null, the value from .default is used. // ObservableCounter CardinalityLimitsObservableCounter `json:"observable_counter,omitempty,omitzero" yaml:"observable_counter,omitempty" mapstructure:"observable_counter,omitempty"` // Configure default cardinality limit for observable_gauge instruments. // If omitted or null, the value from .default is used. // ObservableGauge CardinalityLimitsObservableGauge `json:"observable_gauge,omitempty,omitzero" yaml:"observable_gauge,omitempty" mapstructure:"observable_gauge,omitempty"` // Configure default cardinality limit for observable_up_down_counter instruments. // If omitted or null, the value from .default is used. // ObservableUpDownCounter CardinalityLimitsObservableUpDownCounter `json:"observable_up_down_counter,omitempty,omitzero" yaml:"observable_up_down_counter,omitempty" mapstructure:"observable_up_down_counter,omitempty"` // Configure default cardinality limit for up_down_counter instruments. // If omitted or null, the value from .default is used. // UpDownCounter CardinalityLimitsUpDownCounter `json:"up_down_counter,omitempty,omitzero" yaml:"up_down_counter,omitempty" mapstructure:"up_down_counter,omitempty"` } // Configure default cardinality limit for counter instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsCounter *int // Configure default cardinality limit for all instrument types. // Instrument-specific cardinality limits take priority. // If omitted or null, 2000 is used. type CardinalityLimitsDefault *int // Configure default cardinality limit for gauge instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsGauge *int // Configure default cardinality limit for histogram instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsHistogram *int // Configure default cardinality limit for observable_counter instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsObservableCounter *int // Configure default cardinality limit for observable_gauge instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsObservableGauge *int // Configure default cardinality limit for observable_up_down_counter instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsObservableUpDownCounter *int // Configure default cardinality limit for up_down_counter instruments. // If omitted or null, the value from .default is used. type CardinalityLimitsUpDownCounter *int type ConsoleExporter map[string]interface{} type ConsoleMetricExporter struct { // Configure default histogram aggregation. // Values include: // * base2_exponential_bucket_histogram: Use base2 exponential histogram as the // default aggregation for histogram instruments. // * explicit_bucket_histogram: Use explicit bucket histogram as the default // aggregation for histogram instruments. // If omitted, explicit_bucket_histogram is used. // DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` // Configure temporality preference. // Values include: // * cumulative: Use cumulative aggregation temporality for all instrument types. // * delta: Use delta aggregation for all instrument types except up down counter // and asynchronous up down counter. // * low_memory: Use delta aggregation temporality for counter and histogram // instrument types. Use cumulative aggregation temporality for all other // instrument types. // If omitted, cumulative is used. // TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` } type DefaultAggregation map[string]interface{} type Distribution map[string]map[string]interface{} type DropAggregation map[string]interface{} type ExemplarFilter string const ExemplarFilterAlwaysOff ExemplarFilter = "always_off" const ExemplarFilterAlwaysOn ExemplarFilter = "always_on" const ExemplarFilterTraceBased ExemplarFilter = "trace_based" type ExplicitBucketHistogramAggregation struct { // Configure bucket boundaries. // If omitted, [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, // 10000] is used. // Boundaries []float64 `json:"boundaries,omitempty,omitzero" yaml:"boundaries,omitempty" mapstructure:"boundaries,omitempty"` // Configure record min and max. // If omitted or null, true is used. // RecordMinMax ExplicitBucketHistogramAggregationRecordMinMax `json:"record_min_max,omitempty,omitzero" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"` } // Configure record min and max. // If omitted or null, true is used. type ExplicitBucketHistogramAggregationRecordMinMax *bool type ExporterDefaultHistogramAggregation string const ExporterDefaultHistogramAggregationBase2ExponentialBucketHistogram ExporterDefaultHistogramAggregation = "base2_exponential_bucket_histogram" const ExporterDefaultHistogramAggregationExplicitBucketHistogram ExporterDefaultHistogramAggregation = "explicit_bucket_histogram" type ExporterTemporalityPreference string const ExporterTemporalityPreferenceCumulative ExporterTemporalityPreference = "cumulative" const ExporterTemporalityPreferenceDelta ExporterTemporalityPreference = "delta" const ExporterTemporalityPreferenceLowMemory ExporterTemporalityPreference = "low_memory" type GrpcTls struct { // Configure certificate used to verify a server's TLS credentials. // Absolute path to certificate file in PEM format. // If omitted or null, system default certificate verification is used for secure // connections. // CaFile GrpcTlsCaFile `json:"ca_file,omitempty,omitzero" yaml:"ca_file,omitempty" mapstructure:"ca_file,omitempty"` // Configure mTLS client certificate. // Absolute path to client certificate file in PEM format. If set, .client_key // must also be set. // If omitted or null, mTLS is not used. // CertFile GrpcTlsCertFile `json:"cert_file,omitempty,omitzero" yaml:"cert_file,omitempty" mapstructure:"cert_file,omitempty"` // Configure client transport security for the exporter's connection. // Only applicable when .endpoint is provided without http or https scheme. // Implementations may choose to ignore .insecure. // If omitted or null, false is used. // Insecure GrpcTlsInsecure `json:"insecure,omitempty,omitzero" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"` // Configure mTLS private client key. // Absolute path to client key file in PEM format. If set, .client_certificate // must also be set. // If omitted or null, mTLS is not used. // KeyFile GrpcTlsKeyFile `json:"key_file,omitempty,omitzero" yaml:"key_file,omitempty" mapstructure:"key_file,omitempty"` } // Configure certificate used to verify a server's TLS credentials. // Absolute path to certificate file in PEM format. // If omitted or null, system default certificate verification is used for secure // connections. type GrpcTlsCaFile *string // Configure mTLS client certificate. // Absolute path to client certificate file in PEM format. If set, .client_key must // also be set. // If omitted or null, mTLS is not used. type GrpcTlsCertFile *string // Configure client transport security for the exporter's connection. // Only applicable when .endpoint is provided without http or https scheme. // Implementations may choose to ignore .insecure. // If omitted or null, false is used. type GrpcTlsInsecure *bool // Configure mTLS private client key. // Absolute path to client key file in PEM format. If set, .client_certificate must // also be set. // If omitted or null, mTLS is not used. type GrpcTlsKeyFile *string type HttpTls struct { // Configure certificate used to verify a server's TLS credentials. // Absolute path to certificate file in PEM format. // If omitted or null, system default certificate verification is used for secure // connections. // CaFile HttpTlsCaFile `json:"ca_file,omitempty,omitzero" yaml:"ca_file,omitempty" mapstructure:"ca_file,omitempty"` // Configure mTLS client certificate. // Absolute path to client certificate file in PEM format. If set, .client_key // must also be set. // If omitted or null, mTLS is not used. // CertFile HttpTlsCertFile `json:"cert_file,omitempty,omitzero" yaml:"cert_file,omitempty" mapstructure:"cert_file,omitempty"` // Configure mTLS private client key. // Absolute path to client key file in PEM format. If set, .client_certificate // must also be set. // If omitted or null, mTLS is not used. // KeyFile HttpTlsKeyFile `json:"key_file,omitempty,omitzero" yaml:"key_file,omitempty" mapstructure:"key_file,omitempty"` } // Configure certificate used to verify a server's TLS credentials. // Absolute path to certificate file in PEM format. // If omitted or null, system default certificate verification is used for secure // connections. type HttpTlsCaFile *string // Configure mTLS client certificate. // Absolute path to client certificate file in PEM format. If set, .client_key must // also be set. // If omitted or null, mTLS is not used. type HttpTlsCertFile *string // Configure mTLS private client key. // Absolute path to client key file in PEM format. If set, .client_certificate must // also be set. // If omitted or null, mTLS is not used. type HttpTlsKeyFile *string type IncludeExclude struct { // Configure list of value patterns to exclude. Applies after .included (i.e. // excluded has higher priority than included). // Values are evaluated to match as follows: // * If the value exactly matches. // * If the value matches the wildcard pattern, where '?' matches any single // character and '*' matches any number of characters including none. // If omitted, .included attributes are included. // Excluded []string `json:"excluded,omitempty,omitzero" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"` // Configure list of value patterns to include. // Values are evaluated to match as follows: // * If the value exactly matches. // * If the value matches the wildcard pattern, where '?' matches any single // character and '*' matches any number of characters including none. // If omitted, all values are included. // Included []string `json:"included,omitempty,omitzero" yaml:"included,omitempty" mapstructure:"included,omitempty"` } type InstrumentType string const InstrumentTypeCounter InstrumentType = "counter" const InstrumentTypeGauge InstrumentType = "gauge" const InstrumentTypeHistogram InstrumentType = "histogram" const InstrumentTypeObservableCounter InstrumentType = "observable_counter" const InstrumentTypeObservableGauge InstrumentType = "observable_gauge" const InstrumentTypeObservableUpDownCounter InstrumentType = "observable_up_down_counter" const InstrumentTypeUpDownCounter InstrumentType = "up_down_counter" type JaegerPropagator map[string]interface{} type LastValueAggregation map[string]interface{} type LogRecordExporter struct { // Configure exporter to be console. // If omitted, ignore. // Console ConsoleExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"` // Configure exporter to be OTLP with gRPC transport. // If omitted, ignore. // OTLPGrpc *OTLPGrpcExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"` // Configure exporter to be OTLP with HTTP transport. // If omitted, ignore. // OTLPHttp *OTLPHttpExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type LogRecordLimits struct { // Configure max attribute count. Overrides // .attribute_limits.attribute_count_limit. // Value must be non-negative. // If omitted or null, 128 is used. // AttributeCountLimit LogRecordLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"` // Configure max attribute value size. Overrides // .attribute_limits.attribute_value_length_limit. // Value must be non-negative. // If omitted or null, there is no limit. // AttributeValueLengthLimit LogRecordLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"` } // Configure max attribute count. Overrides // .attribute_limits.attribute_count_limit. // Value must be non-negative. // If omitted or null, 128 is used. type LogRecordLimitsAttributeCountLimit *int // Configure max attribute value size. Overrides // .attribute_limits.attribute_value_length_limit. // Value must be non-negative. // If omitted or null, there is no limit. type LogRecordLimitsAttributeValueLengthLimit *int type LogRecordProcessor struct { // Configure a batch log record processor. // If omitted, ignore. // Batch *BatchLogRecordProcessor `json:"batch,omitempty,omitzero" yaml:"batch,omitempty" mapstructure:"batch,omitempty"` // Configure a simple log record processor. // If omitted, ignore. // Simple *SimpleLogRecordProcessor `json:"simple,omitempty,omitzero" yaml:"simple,omitempty" mapstructure:"simple,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type LoggerProvider struct { // Configure log record limits. See also attribute_limits. // If omitted, default values as described in LogRecordLimits are used. // Limits *LogRecordLimits `json:"limits,omitempty,omitzero" yaml:"limits,omitempty" mapstructure:"limits,omitempty"` // Configure log record processors. // Property is required and must be non-null. // Processors []LogRecordProcessor `json:"processors" yaml:"processors" mapstructure:"processors"` } type MeterProvider struct { // Configure the exemplar filter. // Values include: // * always_off: ExemplarFilter which makes no measurements eligible for being an // Exemplar. // * always_on: ExemplarFilter which makes all measurements eligible for being an // Exemplar. // * trace_based: ExemplarFilter which makes measurements recorded in the context // of a sampled parent span eligible for being an Exemplar. // If omitted, trace_based is used. // ExemplarFilter *ExemplarFilter `json:"exemplar_filter,omitempty,omitzero" yaml:"exemplar_filter,omitempty" mapstructure:"exemplar_filter,omitempty"` // Configure metric readers. // Property is required and must be non-null. // Readers []MetricReader `json:"readers" yaml:"readers" mapstructure:"readers"` // Configure views. // Each view has a selector which determines the instrument(s) it applies to, and // a configuration for the resulting stream(s). // If omitted, no views are registered. // Views []View `json:"views,omitempty,omitzero" yaml:"views,omitempty" mapstructure:"views,omitempty"` } type MetricProducer struct { // Configure metric producer to be opencensus. // If omitted, ignore. // Opencensus OpenCensusMetricProducer `json:"opencensus,omitempty,omitzero" yaml:"opencensus,omitempty" mapstructure:"opencensus,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type MetricReader struct { // Configure a periodic metric reader. // If omitted, ignore. // Periodic *PeriodicMetricReader `json:"periodic,omitempty,omitzero" yaml:"periodic,omitempty" mapstructure:"periodic,omitempty"` // Configure a pull based metric reader. // If omitted, ignore. // Pull *PullMetricReader `json:"pull,omitempty,omitzero" yaml:"pull,omitempty" mapstructure:"pull,omitempty"` } type NameStringValuePair struct { // The name of the pair. // Property is required and must be non-null. // Name string `json:"name" yaml:"name" mapstructure:"name"` // The value of the pair. // Property must be present, but if null the behavior is dependent on usage // context. // Value NameStringValuePairValue `json:"value" yaml:"value" mapstructure:"value"` } // The value of the pair. // Property must be present, but if null the behavior is dependent on usage // context. type NameStringValuePairValue *string type OTLPGrpcExporter struct { // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. // Compression OTLPGrpcExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` // Configure endpoint. // If omitted or null, http://localhost:4317 is used. // Endpoint OTLPGrpcExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` // Configure headers. Entries have higher priority than entries from // .headers_list. // If an entry's .value is null, the entry is ignored. // If omitted, no headers are added. // Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. // HeadersList OTLPGrpcExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. // Timeout OTLPGrpcExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` // Configure TLS settings for the exporter. // If omitted, system default TLS settings are used. // Tls *GrpcTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` } // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. type OTLPGrpcExporterCompression *string // Configure endpoint. // If omitted or null, http://localhost:4317 is used. type OTLPGrpcExporterEndpoint *string // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. type OTLPGrpcExporterHeadersList *string // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. type OTLPGrpcExporterTimeout *int type OTLPGrpcMetricExporter struct { // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. // Compression OTLPGrpcMetricExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` // Configure default histogram aggregation. // Values include: // * base2_exponential_bucket_histogram: Use base2 exponential histogram as the // default aggregation for histogram instruments. // * explicit_bucket_histogram: Use explicit bucket histogram as the default // aggregation for histogram instruments. // If omitted, explicit_bucket_histogram is used. // DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` // Configure endpoint. // If omitted or null, http://localhost:4317 is used. // Endpoint OTLPGrpcMetricExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` // Configure headers. Entries have higher priority than entries from // .headers_list. // If an entry's .value is null, the entry is ignored. // If omitted, no headers are added. // Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. // HeadersList OTLPGrpcMetricExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` // Configure temporality preference. // Values include: // * cumulative: Use cumulative aggregation temporality for all instrument types. // * delta: Use delta aggregation for all instrument types except up down counter // and asynchronous up down counter. // * low_memory: Use delta aggregation temporality for counter and histogram // instrument types. Use cumulative aggregation temporality for all other // instrument types. // If omitted, cumulative is used. // TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. // Timeout OTLPGrpcMetricExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` // Configure TLS settings for the exporter. // If omitted, system default TLS settings are used. // Tls *GrpcTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` } // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. type OTLPGrpcMetricExporterCompression *string // Configure endpoint. // If omitted or null, http://localhost:4317 is used. type OTLPGrpcMetricExporterEndpoint *string // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. type OTLPGrpcMetricExporterHeadersList *string // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. type OTLPGrpcMetricExporterTimeout *int type OTLPHttpEncoding string const OTLPHttpEncodingJson OTLPHttpEncoding = "json" const OTLPHttpEncodingProtobuf OTLPHttpEncoding = "protobuf" type OTLPHttpExporter struct { // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. // Compression OTLPHttpExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` // Configure the encoding used for messages. // Implementations may not support json. // Values include: // * json: Protobuf JSON encoding. // * protobuf: Protobuf binary encoding. // If omitted, protobuf is used. // Encoding *OTLPHttpEncoding `json:"encoding,omitempty,omitzero" yaml:"encoding,omitempty" mapstructure:"encoding,omitempty"` // Configure endpoint, including the signal specific path. // If omitted or null, the http://localhost:4318/v1/{signal} (where signal is // 'traces', 'logs', or 'metrics') is used. // Endpoint OTLPHttpExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` // Configure headers. Entries have higher priority than entries from // .headers_list. // If an entry's .value is null, the entry is ignored. // If omitted, no headers are added. // Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. // HeadersList OTLPHttpExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. // Timeout OTLPHttpExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` // Configure TLS settings for the exporter. // If omitted, system default TLS settings are used. // Tls *HttpTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` } // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. type OTLPHttpExporterCompression *string // Configure endpoint, including the signal specific path. // If omitted or null, the http://localhost:4318/v1/{signal} (where signal is // 'traces', 'logs', or 'metrics') is used. type OTLPHttpExporterEndpoint *string // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. type OTLPHttpExporterHeadersList *string // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. type OTLPHttpExporterTimeout *int type OTLPHttpMetricExporter struct { // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. // Compression OTLPHttpMetricExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` // Configure default histogram aggregation. // Values include: // * base2_exponential_bucket_histogram: Use base2 exponential histogram as the // default aggregation for histogram instruments. // * explicit_bucket_histogram: Use explicit bucket histogram as the default // aggregation for histogram instruments. // If omitted, explicit_bucket_histogram is used. // DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` // Configure the encoding used for messages. // Implementations may not support json. // Values include: // * json: Protobuf JSON encoding. // * protobuf: Protobuf binary encoding. // If omitted, protobuf is used. // Encoding *OTLPHttpEncoding `json:"encoding,omitempty,omitzero" yaml:"encoding,omitempty" mapstructure:"encoding,omitempty"` // Configure endpoint. // If omitted or null, http://localhost:4318/v1/metrics is used. // Endpoint OTLPHttpMetricExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` // Configure headers. Entries have higher priority than entries from // .headers_list. // If an entry's .value is null, the entry is ignored. // If omitted, no headers are added. // Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. // HeadersList OTLPHttpMetricExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` // Configure temporality preference. // Values include: // * cumulative: Use cumulative aggregation temporality for all instrument types. // * delta: Use delta aggregation for all instrument types except up down counter // and asynchronous up down counter. // * low_memory: Use delta aggregation temporality for counter and histogram // instrument types. Use cumulative aggregation temporality for all other // instrument types. // If omitted, cumulative is used. // TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. // Timeout OTLPHttpMetricExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` // Configure TLS settings for the exporter. // If omitted, system default TLS settings are used. // Tls *HttpTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` } // Configure compression. // Known values include: gzip, none. Implementations may support other compression // algorithms. // If omitted or null, none is used. type OTLPHttpMetricExporterCompression *string // Configure endpoint. // If omitted or null, http://localhost:4318/v1/metrics is used. type OTLPHttpMetricExporterEndpoint *string // Configure headers. Entries have lower priority than entries from .headers. // The value is a list of comma separated key-value pairs matching the format of // OTEL_EXPORTER_OTLP_HEADERS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options // for details. // If omitted or null, no headers are added. type OTLPHttpMetricExporterHeadersList *string // Configure max time (in milliseconds) to wait for each export. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 10000 is used. type OTLPHttpMetricExporterTimeout *int type OpenCensusMetricProducer map[string]interface{} type OpenTelemetryConfiguration struct { // Configure general attribute limits. See also tracer_provider.limits, // logger_provider.limits. // If omitted, default values as described in AttributeLimits are used. // AttributeLimits *AttributeLimits `json:"attribute_limits,omitempty,omitzero" yaml:"attribute_limits,omitempty" mapstructure:"attribute_limits,omitempty"` // Configure if the SDK is disabled or not. // If omitted or null, false is used. // Disabled OpenTelemetryConfigurationDisabled `json:"disabled,omitempty,omitzero" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"` // Defines configuration parameters specific to a particular OpenTelemetry // distribution or vendor. // This section provides a standardized location for distribution-specific // settings // that are not part of the OpenTelemetry configuration model. // It allows vendors to expose their own extensions and general configuration // options. // If omitted, distribution defaults are used. // Distribution Distribution `json:"distribution,omitempty,omitzero" yaml:"distribution,omitempty" mapstructure:"distribution,omitempty"` // The file format version. // Represented as a string including the semver major, minor version numbers (and // optionally the meta tag). For example: "0.4", "1.0-rc.2", "1.0" (after stable // release). // See // https://github.com/open-telemetry/opentelemetry-configuration/blob/main/VERSIONING.md // for more details. // The yaml format is documented at // https://github.com/open-telemetry/opentelemetry-configuration/tree/main/schema // Property is required and must be non-null. // FileFormat string `json:"file_format" yaml:"file_format" mapstructure:"file_format"` // Configure the log level of the internal logger used by the SDK. // Values include: // * debug: debug, severity number 5. // * debug2: debug2, severity number 6. // * debug3: debug3, severity number 7. // * debug4: debug4, severity number 8. // * error: error, severity number 17. // * error2: error2, severity number 18. // * error3: error3, severity number 19. // * error4: error4, severity number 20. // * fatal: fatal, severity number 21. // * fatal2: fatal2, severity number 22. // * fatal3: fatal3, severity number 23. // * fatal4: fatal4, severity number 24. // * info: info, severity number 9. // * info2: info2, severity number 10. // * info3: info3, severity number 11. // * info4: info4, severity number 12. // * trace: trace, severity number 1. // * trace2: trace2, severity number 2. // * trace3: trace3, severity number 3. // * trace4: trace4, severity number 4. // * warn: warn, severity number 13. // * warn2: warn2, severity number 14. // * warn3: warn3, severity number 15. // * warn4: warn4, severity number 16. // If omitted, INFO is used. // LogLevel *SeverityNumber `json:"log_level,omitempty,omitzero" yaml:"log_level,omitempty" mapstructure:"log_level,omitempty"` // Configure logger provider. // If omitted, a noop logger provider is used. // LoggerProvider *LoggerProvider `json:"logger_provider,omitempty,omitzero" yaml:"logger_provider,omitempty" mapstructure:"logger_provider,omitempty"` // Configure meter provider. // If omitted, a noop meter provider is used. // MeterProvider *MeterProvider `json:"meter_provider,omitempty,omitzero" yaml:"meter_provider,omitempty" mapstructure:"meter_provider,omitempty"` // Configure text map context propagators. // If omitted, a noop propagator is used. // Propagator *Propagator `json:"propagator,omitempty,omitzero" yaml:"propagator,omitempty" mapstructure:"propagator,omitempty"` // Configure resource for all signals. // If omitted, the default resource is used. // Resource *Resource `json:"resource,omitempty,omitzero" yaml:"resource,omitempty" mapstructure:"resource,omitempty"` // Configure tracer provider. // If omitted, a noop tracer provider is used. // TracerProvider *TracerProvider `json:"tracer_provider,omitempty,omitzero" yaml:"tracer_provider,omitempty" mapstructure:"tracer_provider,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } // Configure if the SDK is disabled or not. // If omitted or null, false is used. type OpenTelemetryConfigurationDisabled *bool type OpenTracingPropagator map[string]interface{} type ParentBasedSampler struct { // Configure local_parent_not_sampled sampler. // If omitted, always_off is used. // LocalParentNotSampled *Sampler `json:"local_parent_not_sampled,omitempty,omitzero" yaml:"local_parent_not_sampled,omitempty" mapstructure:"local_parent_not_sampled,omitempty"` // Configure local_parent_sampled sampler. // If omitted, always_on is used. // LocalParentSampled *Sampler `json:"local_parent_sampled,omitempty,omitzero" yaml:"local_parent_sampled,omitempty" mapstructure:"local_parent_sampled,omitempty"` // Configure remote_parent_not_sampled sampler. // If omitted, always_off is used. // RemoteParentNotSampled *Sampler `json:"remote_parent_not_sampled,omitempty,omitzero" yaml:"remote_parent_not_sampled,omitempty" mapstructure:"remote_parent_not_sampled,omitempty"` // Configure remote_parent_sampled sampler. // If omitted, always_on is used. // RemoteParentSampled *Sampler `json:"remote_parent_sampled,omitempty,omitzero" yaml:"remote_parent_sampled,omitempty" mapstructure:"remote_parent_sampled,omitempty"` // Configure root sampler. // If omitted, always_on is used. // Root *Sampler `json:"root,omitempty,omitzero" yaml:"root,omitempty" mapstructure:"root,omitempty"` } type PeriodicMetricReader struct { // Configure cardinality limits. // If omitted, default values as described in CardinalityLimits are used. // CardinalityLimits *CardinalityLimits `json:"cardinality_limits,omitempty,omitzero" yaml:"cardinality_limits,omitempty" mapstructure:"cardinality_limits,omitempty"` // Configure exporter. // Property is required and must be non-null. // Exporter PushMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` // Configure delay interval (in milliseconds) between start of two consecutive // exports. // Value must be non-negative. // If omitted or null, 60000 is used. // Interval PeriodicMetricReaderInterval `json:"interval,omitempty,omitzero" yaml:"interval,omitempty" mapstructure:"interval,omitempty"` // Configure metric producers. // If omitted, no metric producers are added. // Producers []MetricProducer `json:"producers,omitempty,omitzero" yaml:"producers,omitempty" mapstructure:"producers,omitempty"` // Configure maximum allowed time (in milliseconds) to export data. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 30000 is used. // Timeout PeriodicMetricReaderTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` } // Configure delay interval (in milliseconds) between start of two consecutive // exports. // Value must be non-negative. // If omitted or null, 60000 is used. type PeriodicMetricReaderInterval *int // Configure maximum allowed time (in milliseconds) to export data. // Value must be non-negative. A value of 0 indicates no limit (infinity). // If omitted or null, 30000 is used. type PeriodicMetricReaderTimeout *int type Propagator struct { // Configure the propagators in the composite text map propagator. Entries from // .composite_list are appended to the list here with duplicates filtered out. // Built-in propagator keys include: tracecontext, baggage, b3, b3multi, jaeger, // ottrace. Known third party keys include: xray. // If omitted, and .composite_list is omitted or null, a noop propagator is used. // Composite []TextMapPropagator `json:"composite,omitempty,omitzero" yaml:"composite,omitempty" mapstructure:"composite,omitempty"` // Configure the propagators in the composite text map propagator. Entries are // appended to .composite with duplicates filtered out. // The value is a comma separated list of propagator identifiers matching the // format of OTEL_PROPAGATORS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration // for details. // Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi, // jaeger, ottrace. Known third party identifiers include: xray. // If omitted or null, and .composite is omitted or null, a noop propagator is // used. // CompositeList PropagatorCompositeList `json:"composite_list,omitempty,omitzero" yaml:"composite_list,omitempty" mapstructure:"composite_list,omitempty"` } // Configure the propagators in the composite text map propagator. Entries are // appended to .composite with duplicates filtered out. // The value is a comma separated list of propagator identifiers matching the // format of OTEL_PROPAGATORS. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration // for details. // Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi, // jaeger, ottrace. Known third party identifiers include: xray. // If omitted or null, and .composite is omitted or null, a noop propagator is // used. type PropagatorCompositeList *string type PullMetricExporter struct { AdditionalProperties interface{} `mapstructure:",remain"` } type PullMetricReader struct { // Configure cardinality limits. // If omitted, default values as described in CardinalityLimits are used. // CardinalityLimits *CardinalityLimits `json:"cardinality_limits,omitempty,omitzero" yaml:"cardinality_limits,omitempty" mapstructure:"cardinality_limits,omitempty"` // Configure exporter. // Property is required and must be non-null. // Exporter PullMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` // Configure metric producers. // If omitted, no metric producers are added. // Producers []MetricProducer `json:"producers,omitempty,omitzero" yaml:"producers,omitempty" mapstructure:"producers,omitempty"` } type PushMetricExporter struct { // Configure exporter to be console. // If omitted, ignore. // Console *ConsoleMetricExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"` // Configure exporter to be OTLP with gRPC transport. // If omitted, ignore. // OTLPGrpc *OTLPGrpcMetricExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"` // Configure exporter to be OTLP with HTTP transport. // If omitted, ignore. // OTLPHttp *OTLPHttpMetricExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type Resource struct { // Configure resource attributes. Entries have higher priority than entries from // .resource.attributes_list. // If omitted, no resource attributes are added. // Attributes []AttributeNameValue `json:"attributes,omitempty,omitzero" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` // Configure resource attributes. Entries have lower priority than entries from // .resource.attributes. // The value is a list of comma separated key-value pairs matching the format of // OTEL_RESOURCE_ATTRIBUTES. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration // for details. // If omitted or null, no resource attributes are added. // AttributesList ResourceAttributesList `json:"attributes_list,omitempty,omitzero" yaml:"attributes_list,omitempty" mapstructure:"attributes_list,omitempty"` // Configure resource schema URL. // If omitted or null, no schema URL is used. // SchemaUrl ResourceSchemaUrl `json:"schema_url,omitempty,omitzero" yaml:"schema_url,omitempty" mapstructure:"schema_url,omitempty"` } // Configure resource attributes. Entries have lower priority than entries from // .resource.attributes. // The value is a list of comma separated key-value pairs matching the format of // OTEL_RESOURCE_ATTRIBUTES. See // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration // for details. // If omitted or null, no resource attributes are added. type ResourceAttributesList *string // Configure resource schema URL. // If omitted or null, no schema URL is used. type ResourceSchemaUrl *string type Sampler struct { // Configure sampler to be always_off. // If omitted, ignore. // AlwaysOff AlwaysOffSampler `json:"always_off,omitempty,omitzero" yaml:"always_off,omitempty" mapstructure:"always_off,omitempty"` // Configure sampler to be always_on. // If omitted, ignore. // AlwaysOn AlwaysOnSampler `json:"always_on,omitempty,omitzero" yaml:"always_on,omitempty" mapstructure:"always_on,omitempty"` // Configure sampler to be parent_based. // If omitted, ignore. // ParentBased *ParentBasedSampler `json:"parent_based,omitempty,omitzero" yaml:"parent_based,omitempty" mapstructure:"parent_based,omitempty"` // Configure sampler to be trace_id_ratio_based. // If omitted, ignore. // TraceIDRatioBased *TraceIDRatioBasedSampler `json:"trace_id_ratio_based,omitempty,omitzero" yaml:"trace_id_ratio_based,omitempty" mapstructure:"trace_id_ratio_based,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type SeverityNumber string const SeverityNumberDebug SeverityNumber = "debug" const SeverityNumberDebug2 SeverityNumber = "debug2" const SeverityNumberDebug3 SeverityNumber = "debug3" const SeverityNumberDebug4 SeverityNumber = "debug4" const SeverityNumberError SeverityNumber = "error" const SeverityNumberError2 SeverityNumber = "error2" const SeverityNumberError3 SeverityNumber = "error3" const SeverityNumberError4 SeverityNumber = "error4" const SeverityNumberFatal SeverityNumber = "fatal" const SeverityNumberFatal2 SeverityNumber = "fatal2" const SeverityNumberFatal3 SeverityNumber = "fatal3" const SeverityNumberFatal4 SeverityNumber = "fatal4" const SeverityNumberInfo SeverityNumber = "info" const SeverityNumberInfo2 SeverityNumber = "info2" const SeverityNumberInfo3 SeverityNumber = "info3" const SeverityNumberInfo4 SeverityNumber = "info4" const SeverityNumberTrace SeverityNumber = "trace" const SeverityNumberTrace2 SeverityNumber = "trace2" const SeverityNumberTrace3 SeverityNumber = "trace3" const SeverityNumberTrace4 SeverityNumber = "trace4" const SeverityNumberWarn SeverityNumber = "warn" const SeverityNumberWarn2 SeverityNumber = "warn2" const SeverityNumberWarn3 SeverityNumber = "warn3" const SeverityNumberWarn4 SeverityNumber = "warn4" type SimpleLogRecordProcessor struct { // Configure exporter. // Property is required and must be non-null. // Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` } type SimpleSpanProcessor struct { // Configure exporter. // Property is required and must be non-null. // Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` } type SpanExporter struct { // Configure exporter to be console. // If omitted, ignore. // Console ConsoleExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"` // Configure exporter to be OTLP with gRPC transport. // If omitted, ignore. // OTLPGrpc *OTLPGrpcExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"` // Configure exporter to be OTLP with HTTP transport. // If omitted, ignore. // OTLPHttp *OTLPHttpExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type SpanKind string const SpanKindClient SpanKind = "client" const SpanKindConsumer SpanKind = "consumer" const SpanKindInternal SpanKind = "internal" const SpanKindProducer SpanKind = "producer" const SpanKindServer SpanKind = "server" type SpanLimits struct { // Configure max attribute count. Overrides // .attribute_limits.attribute_count_limit. // Value must be non-negative. // If omitted or null, 128 is used. // AttributeCountLimit SpanLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"` // Configure max attribute value size. Overrides // .attribute_limits.attribute_value_length_limit. // Value must be non-negative. // If omitted or null, there is no limit. // AttributeValueLengthLimit SpanLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"` // Configure max attributes per span event. // Value must be non-negative. // If omitted or null, 128 is used. // EventAttributeCountLimit SpanLimitsEventAttributeCountLimit `json:"event_attribute_count_limit,omitempty,omitzero" yaml:"event_attribute_count_limit,omitempty" mapstructure:"event_attribute_count_limit,omitempty"` // Configure max span event count. // Value must be non-negative. // If omitted or null, 128 is used. // EventCountLimit SpanLimitsEventCountLimit `json:"event_count_limit,omitempty,omitzero" yaml:"event_count_limit,omitempty" mapstructure:"event_count_limit,omitempty"` // Configure max attributes per span link. // Value must be non-negative. // If omitted or null, 128 is used. // LinkAttributeCountLimit SpanLimitsLinkAttributeCountLimit `json:"link_attribute_count_limit,omitempty,omitzero" yaml:"link_attribute_count_limit,omitempty" mapstructure:"link_attribute_count_limit,omitempty"` // Configure max span link count. // Value must be non-negative. // If omitted or null, 128 is used. // LinkCountLimit SpanLimitsLinkCountLimit `json:"link_count_limit,omitempty,omitzero" yaml:"link_count_limit,omitempty" mapstructure:"link_count_limit,omitempty"` } // Configure max attribute count. Overrides // .attribute_limits.attribute_count_limit. // Value must be non-negative. // If omitted or null, 128 is used. type SpanLimitsAttributeCountLimit *int // Configure max attribute value size. Overrides // .attribute_limits.attribute_value_length_limit. // Value must be non-negative. // If omitted or null, there is no limit. type SpanLimitsAttributeValueLengthLimit *int // Configure max attributes per span event. // Value must be non-negative. // If omitted or null, 128 is used. type SpanLimitsEventAttributeCountLimit *int // Configure max span event count. // Value must be non-negative. // If omitted or null, 128 is used. type SpanLimitsEventCountLimit *int // Configure max attributes per span link. // Value must be non-negative. // If omitted or null, 128 is used. type SpanLimitsLinkAttributeCountLimit *int // Configure max span link count. // Value must be non-negative. // If omitted or null, 128 is used. type SpanLimitsLinkCountLimit *int type SpanProcessor struct { // Configure a batch span processor. // If omitted, ignore. // Batch *BatchSpanProcessor `json:"batch,omitempty,omitzero" yaml:"batch,omitempty" mapstructure:"batch,omitempty"` // Configure a simple span processor. // If omitted, ignore. // Simple *SimpleSpanProcessor `json:"simple,omitempty,omitzero" yaml:"simple,omitempty" mapstructure:"simple,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type SumAggregation map[string]interface{} type TextMapPropagator struct { // Include the zipkin b3 propagator. // If omitted, ignore. // B3 B3Propagator `json:"b3,omitempty,omitzero" yaml:"b3,omitempty" mapstructure:"b3,omitempty"` // Include the zipkin b3 multi propagator. // If omitted, ignore. // B3Multi B3MultiPropagator `json:"b3multi,omitempty,omitzero" yaml:"b3multi,omitempty" mapstructure:"b3multi,omitempty"` // Include the w3c baggage propagator. // If omitted, ignore. // Baggage BaggagePropagator `json:"baggage,omitempty,omitzero" yaml:"baggage,omitempty" mapstructure:"baggage,omitempty"` // Include the jaeger propagator. // If omitted, ignore. // Jaeger JaegerPropagator `json:"jaeger,omitempty,omitzero" yaml:"jaeger,omitempty" mapstructure:"jaeger,omitempty"` // Include the opentracing propagator. // If omitted, ignore. // Ottrace OpenTracingPropagator `json:"ottrace,omitempty,omitzero" yaml:"ottrace,omitempty" mapstructure:"ottrace,omitempty"` // Include the w3c trace context propagator. // If omitted, ignore. // Tracecontext TraceContextPropagator `json:"tracecontext,omitempty,omitzero" yaml:"tracecontext,omitempty" mapstructure:"tracecontext,omitempty"` AdditionalProperties interface{} `mapstructure:",remain"` } type TraceContextPropagator map[string]interface{} type TraceIDRatioBasedSampler struct { // Configure trace_id_ratio. // If omitted or null, 1.0 is used. // Ratio TraceIDRatioBasedSamplerRatio `json:"ratio,omitempty,omitzero" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"` } // Configure trace_id_ratio. // If omitted or null, 1.0 is used. type TraceIDRatioBasedSamplerRatio *float64 type TracerProvider struct { // Configure span limits. See also attribute_limits. // If omitted, default values as described in SpanLimits are used. // Limits *SpanLimits `json:"limits,omitempty,omitzero" yaml:"limits,omitempty" mapstructure:"limits,omitempty"` // Configure span processors. // Property is required and must be non-null. // Processors []SpanProcessor `json:"processors" yaml:"processors" mapstructure:"processors"` // Configure the sampler. // If omitted, parent based sampler with a root of always_on is used. // Sampler *Sampler `json:"sampler,omitempty,omitzero" yaml:"sampler,omitempty" mapstructure:"sampler,omitempty"` } type View struct { // Configure view selector. // Selection criteria is additive as described in // https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#instrument-selection-criteria. // Property is required and must be non-null. // Selector ViewSelector `json:"selector" yaml:"selector" mapstructure:"selector"` // Configure view stream. // Property is required and must be non-null. // Stream ViewStream `json:"stream" yaml:"stream" mapstructure:"stream"` } type ViewSelector struct { // Configure instrument name selection criteria. // If omitted or null, all instrument names match. // InstrumentName ViewSelectorInstrumentName `json:"instrument_name,omitempty,omitzero" yaml:"instrument_name,omitempty" mapstructure:"instrument_name,omitempty"` // Configure instrument type selection criteria. // Values include: // * counter: Synchronous counter instruments. // * gauge: Synchronous gauge instruments. // * histogram: Synchronous histogram instruments. // * observable_counter: Asynchronous counter instruments. // * observable_gauge: Asynchronous gauge instruments. // * observable_up_down_counter: Asynchronous up down counter instruments. // * up_down_counter: Synchronous up down counter instruments. // If omitted, all instrument types match. // InstrumentType *InstrumentType `json:"instrument_type,omitempty,omitzero" yaml:"instrument_type,omitempty" mapstructure:"instrument_type,omitempty"` // Configure meter name selection criteria. // If omitted or null, all meter names match. // MeterName ViewSelectorMeterName `json:"meter_name,omitempty,omitzero" yaml:"meter_name,omitempty" mapstructure:"meter_name,omitempty"` // Configure meter schema url selection criteria. // If omitted or null, all meter schema URLs match. // MeterSchemaUrl ViewSelectorMeterSchemaUrl `json:"meter_schema_url,omitempty,omitzero" yaml:"meter_schema_url,omitempty" mapstructure:"meter_schema_url,omitempty"` // Configure meter version selection criteria. // If omitted or null, all meter versions match. // MeterVersion ViewSelectorMeterVersion `json:"meter_version,omitempty,omitzero" yaml:"meter_version,omitempty" mapstructure:"meter_version,omitempty"` // Configure the instrument unit selection criteria. // If omitted or null, all instrument units match. // Unit ViewSelectorUnit `json:"unit,omitempty,omitzero" yaml:"unit,omitempty" mapstructure:"unit,omitempty"` } // Configure instrument name selection criteria. // If omitted or null, all instrument names match. type ViewSelectorInstrumentName *string // Configure meter name selection criteria. // If omitted or null, all meter names match. type ViewSelectorMeterName *string // Configure meter schema url selection criteria. // If omitted or null, all meter schema URLs match. type ViewSelectorMeterSchemaUrl *string // Configure meter version selection criteria. // If omitted or null, all meter versions match. type ViewSelectorMeterVersion *string // Configure the instrument unit selection criteria. // If omitted or null, all instrument units match. type ViewSelectorUnit *string type ViewStream struct { // Configure aggregation of the resulting stream(s). // If omitted, default is used. // Aggregation *Aggregation `json:"aggregation,omitempty,omitzero" yaml:"aggregation,omitempty" mapstructure:"aggregation,omitempty"` // Configure the aggregation cardinality limit. // If omitted or null, the metric reader's default cardinality limit is used. // AggregationCardinalityLimit ViewStreamAggregationCardinalityLimit `json:"aggregation_cardinality_limit,omitempty,omitzero" yaml:"aggregation_cardinality_limit,omitempty" mapstructure:"aggregation_cardinality_limit,omitempty"` // Configure attribute keys retained in the resulting stream(s). // If omitted, all attribute keys are retained. // AttributeKeys *IncludeExclude `json:"attribute_keys,omitempty,omitzero" yaml:"attribute_keys,omitempty" mapstructure:"attribute_keys,omitempty"` // Configure metric description of the resulting stream(s). // If omitted or null, the instrument's origin description is used. // Description ViewStreamDescription `json:"description,omitempty,omitzero" yaml:"description,omitempty" mapstructure:"description,omitempty"` // Configure metric name of the resulting stream(s). // If omitted or null, the instrument's original name is used. // Name ViewStreamName `json:"name,omitempty,omitzero" yaml:"name,omitempty" mapstructure:"name,omitempty"` } // Configure the aggregation cardinality limit. // If omitted or null, the metric reader's default cardinality limit is used. type ViewStreamAggregationCardinalityLimit *int // Configure metric description of the resulting stream(s). // If omitted or null, the instrument's origin description is used. type ViewStreamDescription *string // Configure metric name of the resulting stream(s). // If omitted or null, the instrument's original name is used. type ViewStreamName *string