| 1 |
// Code generated by github.com/atombender/go-jsonschema, DO NOT EDIT. |
| 2 |
|
| 3 |
package x |
| 4 |
|
| 5 |
type Aggregation struct { |
| 6 |
// Configures the stream to collect data for the exponential histogram metric |
| 7 |
// point, which uses a base-2 exponential formula to determine bucket boundaries |
| 8 |
// and an integer scale parameter to control resolution. See |
| 9 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#base2-exponential-bucket-histogram-aggregation |
| 10 |
// for details. |
| 11 |
// If omitted, ignore. |
| 12 |
// |
| 13 |
Base2ExponentialBucketHistogram *Base2ExponentialBucketHistogramAggregation `json:"base2_exponential_bucket_histogram,omitempty,omitzero" yaml:"base2_exponential_bucket_histogram,omitempty" mapstructure:"base2_exponential_bucket_histogram,omitempty"` |
| 14 |
|
| 15 |
// Configures the stream to use the instrument kind to select an aggregation and |
| 16 |
// advisory parameters to influence aggregation configuration parameters. See |
| 17 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#default-aggregation |
| 18 |
// for details. |
| 19 |
// If omitted, ignore. |
| 20 |
// |
| 21 |
Default DefaultAggregation `json:"default,omitempty,omitzero" yaml:"default,omitempty" mapstructure:"default,omitempty"` |
| 22 |
|
| 23 |
// Configures the stream to ignore/drop all instrument measurements. See |
| 24 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#drop-aggregation |
| 25 |
// for details. |
| 26 |
// If omitted, ignore. |
| 27 |
// |
| 28 |
Drop DropAggregation `json:"drop,omitempty,omitzero" yaml:"drop,omitempty" mapstructure:"drop,omitempty"` |
| 29 |
|
| 30 |
// Configures the stream to collect data for the histogram metric point using a |
| 31 |
// set of explicit boundary values for histogram bucketing. See |
| 32 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#explicit-bucket-histogram-aggregation |
| 33 |
// for details |
| 34 |
// If omitted, ignore. |
| 35 |
// |
| 36 |
ExplicitBucketHistogram *ExplicitBucketHistogramAggregation `json:"explicit_bucket_histogram,omitempty,omitzero" yaml:"explicit_bucket_histogram,omitempty" mapstructure:"explicit_bucket_histogram,omitempty"` |
| 37 |
|
| 38 |
// Configures the stream to collect data using the last measurement. See |
| 39 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#last-value-aggregation |
| 40 |
// for details. |
| 41 |
// If omitted, ignore. |
| 42 |
// |
| 43 |
LastValue LastValueAggregation `json:"last_value,omitempty,omitzero" yaml:"last_value,omitempty" mapstructure:"last_value,omitempty"` |
| 44 |
|
| 45 |
// Configures the stream to collect the arithmetic sum of measurement values. See |
| 46 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#sum-aggregation |
| 47 |
// for details. |
| 48 |
// If omitted, ignore. |
| 49 |
// |
| 50 |
Sum SumAggregation `json:"sum,omitempty,omitzero" yaml:"sum,omitempty" mapstructure:"sum,omitempty"` |
| 51 |
} |
| 52 |
|
| 53 |
type AlwaysOffSampler map[string]interface{} |
| 54 |
|
| 55 |
type AlwaysOnSampler map[string]interface{} |
| 56 |
|
| 57 |
type AttributeLimits struct { |
| 58 |
// Configure max attribute count. |
| 59 |
// Value must be non-negative. |
| 60 |
// If omitted or null, 128 is used. |
| 61 |
// |
| 62 |
AttributeCountLimit AttributeLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"` |
| 63 |
|
| 64 |
// Configure max attribute value size. |
| 65 |
// Value must be non-negative. |
| 66 |
// If omitted or null, there is no limit. |
| 67 |
// |
| 68 |
AttributeValueLengthLimit AttributeLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"` |
| 69 |
} |
| 70 |
|
| 71 |
// Configure max attribute count. |
| 72 |
// Value must be non-negative. |
| 73 |
// If omitted or null, 128 is used. |
| 74 |
type AttributeLimitsAttributeCountLimit *int |
| 75 |
|
| 76 |
// Configure max attribute value size. |
| 77 |
// Value must be non-negative. |
| 78 |
// If omitted or null, there is no limit. |
| 79 |
type AttributeLimitsAttributeValueLengthLimit *int |
| 80 |
|
| 81 |
type AttributeNameValue struct { |
| 82 |
// The attribute name. |
| 83 |
// Property is required and must be non-null. |
| 84 |
// |
| 85 |
Name string `json:"name" yaml:"name" mapstructure:"name"` |
| 86 |
|
| 87 |
// The attribute type. |
| 88 |
// Values include: |
| 89 |
// * bool: Boolean attribute value. |
| 90 |
// * bool_array: Boolean array attribute value. |
| 91 |
// * double: Double attribute value. |
| 92 |
// * double_array: Double array attribute value. |
| 93 |
// * int: Integer attribute value. |
| 94 |
// * int_array: Integer array attribute value. |
| 95 |
// * string: String attribute value. |
| 96 |
// * string_array: String array attribute value. |
| 97 |
// If omitted, string is used. |
| 98 |
// |
| 99 |
Type *AttributeType `json:"type,omitempty,omitzero" yaml:"type,omitempty" mapstructure:"type,omitempty"` |
| 100 |
|
| 101 |
// The attribute value. |
| 102 |
// The type of value must match .type. |
| 103 |
// Property is required and must be non-null. |
| 104 |
// |
| 105 |
Value interface{} `json:"value" yaml:"value" mapstructure:"value"` |
| 106 |
} |
| 107 |
|
| 108 |
type AttributeType string |
| 109 |
|
| 110 |
const AttributeTypeBool AttributeType = "bool" |
| 111 |
const AttributeTypeBoolArray AttributeType = "bool_array" |
| 112 |
const AttributeTypeDouble AttributeType = "double" |
| 113 |
const AttributeTypeDoubleArray AttributeType = "double_array" |
| 114 |
const AttributeTypeInt AttributeType = "int" |
| 115 |
const AttributeTypeIntArray AttributeType = "int_array" |
| 116 |
const AttributeTypeString AttributeType = "string" |
| 117 |
const AttributeTypeStringArray AttributeType = "string_array" |
| 118 |
|
| 119 |
type B3MultiPropagator map[string]interface{} |
| 120 |
|
| 121 |
type B3Propagator map[string]interface{} |
| 122 |
|
| 123 |
type BaggagePropagator map[string]interface{} |
| 124 |
|
| 125 |
type Base2ExponentialBucketHistogramAggregation struct { |
| 126 |
// Configure the max scale factor. |
| 127 |
// If omitted or null, 20 is used. |
| 128 |
// |
| 129 |
MaxScale Base2ExponentialBucketHistogramAggregationMaxScale `json:"max_scale,omitempty,omitzero" yaml:"max_scale,omitempty" mapstructure:"max_scale,omitempty"` |
| 130 |
|
| 131 |
// Configure the maximum number of buckets in each of the positive and negative |
| 132 |
// ranges, not counting the special zero bucket. |
| 133 |
// If omitted or null, 160 is used. |
| 134 |
// |
| 135 |
MaxSize Base2ExponentialBucketHistogramAggregationMaxSize `json:"max_size,omitempty,omitzero" yaml:"max_size,omitempty" mapstructure:"max_size,omitempty"` |
| 136 |
|
| 137 |
// Configure whether or not to record min and max. |
| 138 |
// If omitted or null, true is used. |
| 139 |
// |
| 140 |
RecordMinMax Base2ExponentialBucketHistogramAggregationRecordMinMax `json:"record_min_max,omitempty,omitzero" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"` |
| 141 |
} |
| 142 |
|
| 143 |
// Configure the max scale factor. |
| 144 |
// If omitted or null, 20 is used. |
| 145 |
type Base2ExponentialBucketHistogramAggregationMaxScale *int |
| 146 |
|
| 147 |
// Configure the maximum number of buckets in each of the positive and negative |
| 148 |
// ranges, not counting the special zero bucket. |
| 149 |
// If omitted or null, 160 is used. |
| 150 |
type Base2ExponentialBucketHistogramAggregationMaxSize *int |
| 151 |
|
| 152 |
// Configure whether or not to record min and max. |
| 153 |
// If omitted or null, true is used. |
| 154 |
type Base2ExponentialBucketHistogramAggregationRecordMinMax *bool |
| 155 |
|
| 156 |
type BatchLogRecordProcessor struct { |
| 157 |
// Configure maximum allowed time (in milliseconds) to export data. |
| 158 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 159 |
// If omitted or null, 30000 is used. |
| 160 |
// |
| 161 |
ExportTimeout BatchLogRecordProcessorExportTimeout `json:"export_timeout,omitempty,omitzero" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"` |
| 162 |
|
| 163 |
// Configure exporter. |
| 164 |
// Property is required and must be non-null. |
| 165 |
// |
| 166 |
Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` |
| 167 |
|
| 168 |
// Configure maximum batch size. Value must be positive. |
| 169 |
// If omitted or null, 512 is used. |
| 170 |
// |
| 171 |
MaxExportBatchSize BatchLogRecordProcessorMaxExportBatchSize `json:"max_export_batch_size,omitempty,omitzero" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"` |
| 172 |
|
| 173 |
// Configure maximum queue size. Value must be positive. |
| 174 |
// If omitted or null, 2048 is used. |
| 175 |
// |
| 176 |
MaxQueueSize BatchLogRecordProcessorMaxQueueSize `json:"max_queue_size,omitempty,omitzero" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"` |
| 177 |
|
| 178 |
// Configure delay interval (in milliseconds) between two consecutive exports. |
| 179 |
// Value must be non-negative. |
| 180 |
// If omitted or null, 1000 is used. |
| 181 |
// |
| 182 |
ScheduleDelay BatchLogRecordProcessorScheduleDelay `json:"schedule_delay,omitempty,omitzero" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"` |
| 183 |
} |
| 184 |
|
| 185 |
// Configure maximum allowed time (in milliseconds) to export data. |
| 186 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 187 |
// If omitted or null, 30000 is used. |
| 188 |
type BatchLogRecordProcessorExportTimeout *int |
| 189 |
|
| 190 |
// Configure maximum batch size. Value must be positive. |
| 191 |
// If omitted or null, 512 is used. |
| 192 |
type BatchLogRecordProcessorMaxExportBatchSize *int |
| 193 |
|
| 194 |
// Configure maximum queue size. Value must be positive. |
| 195 |
// If omitted or null, 2048 is used. |
| 196 |
type BatchLogRecordProcessorMaxQueueSize *int |
| 197 |
|
| 198 |
// Configure delay interval (in milliseconds) between two consecutive exports. |
| 199 |
// Value must be non-negative. |
| 200 |
// If omitted or null, 1000 is used. |
| 201 |
type BatchLogRecordProcessorScheduleDelay *int |
| 202 |
|
| 203 |
type BatchSpanProcessor struct { |
| 204 |
// Configure maximum allowed time (in milliseconds) to export data. |
| 205 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 206 |
// If omitted or null, 30000 is used. |
| 207 |
// |
| 208 |
ExportTimeout BatchSpanProcessorExportTimeout `json:"export_timeout,omitempty,omitzero" yaml:"export_timeout,omitempty" mapstructure:"export_timeout,omitempty"` |
| 209 |
|
| 210 |
// Configure exporter. |
| 211 |
// Property is required and must be non-null. |
| 212 |
// |
| 213 |
Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` |
| 214 |
|
| 215 |
// Configure maximum batch size. Value must be positive. |
| 216 |
// If omitted or null, 512 is used. |
| 217 |
// |
| 218 |
MaxExportBatchSize BatchSpanProcessorMaxExportBatchSize `json:"max_export_batch_size,omitempty,omitzero" yaml:"max_export_batch_size,omitempty" mapstructure:"max_export_batch_size,omitempty"` |
| 219 |
|
| 220 |
// Configure maximum queue size. Value must be positive. |
| 221 |
// If omitted or null, 2048 is used. |
| 222 |
// |
| 223 |
MaxQueueSize BatchSpanProcessorMaxQueueSize `json:"max_queue_size,omitempty,omitzero" yaml:"max_queue_size,omitempty" mapstructure:"max_queue_size,omitempty"` |
| 224 |
|
| 225 |
// Configure delay interval (in milliseconds) between two consecutive exports. |
| 226 |
// Value must be non-negative. |
| 227 |
// If omitted or null, 5000 is used. |
| 228 |
// |
| 229 |
ScheduleDelay BatchSpanProcessorScheduleDelay `json:"schedule_delay,omitempty,omitzero" yaml:"schedule_delay,omitempty" mapstructure:"schedule_delay,omitempty"` |
| 230 |
} |
| 231 |
|
| 232 |
// Configure maximum allowed time (in milliseconds) to export data. |
| 233 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 234 |
// If omitted or null, 30000 is used. |
| 235 |
type BatchSpanProcessorExportTimeout *int |
| 236 |
|
| 237 |
// Configure maximum batch size. Value must be positive. |
| 238 |
// If omitted or null, 512 is used. |
| 239 |
type BatchSpanProcessorMaxExportBatchSize *int |
| 240 |
|
| 241 |
// Configure maximum queue size. Value must be positive. |
| 242 |
// If omitted or null, 2048 is used. |
| 243 |
type BatchSpanProcessorMaxQueueSize *int |
| 244 |
|
| 245 |
// Configure delay interval (in milliseconds) between two consecutive exports. |
| 246 |
// Value must be non-negative. |
| 247 |
// If omitted or null, 5000 is used. |
| 248 |
type BatchSpanProcessorScheduleDelay *int |
| 249 |
|
| 250 |
type CardinalityLimits struct { |
| 251 |
// Configure default cardinality limit for counter instruments. |
| 252 |
// If omitted or null, the value from .default is used. |
| 253 |
// |
| 254 |
Counter CardinalityLimitsCounter `json:"counter,omitempty,omitzero" yaml:"counter,omitempty" mapstructure:"counter,omitempty"` |
| 255 |
|
| 256 |
// Configure default cardinality limit for all instrument types. |
| 257 |
// Instrument-specific cardinality limits take priority. |
| 258 |
// If omitted or null, 2000 is used. |
| 259 |
// |
| 260 |
Default CardinalityLimitsDefault `json:"default,omitempty,omitzero" yaml:"default,omitempty" mapstructure:"default,omitempty"` |
| 261 |
|
| 262 |
// Configure default cardinality limit for gauge instruments. |
| 263 |
// If omitted or null, the value from .default is used. |
| 264 |
// |
| 265 |
Gauge CardinalityLimitsGauge `json:"gauge,omitempty,omitzero" yaml:"gauge,omitempty" mapstructure:"gauge,omitempty"` |
| 266 |
|
| 267 |
// Configure default cardinality limit for histogram instruments. |
| 268 |
// If omitted or null, the value from .default is used. |
| 269 |
// |
| 270 |
Histogram CardinalityLimitsHistogram `json:"histogram,omitempty,omitzero" yaml:"histogram,omitempty" mapstructure:"histogram,omitempty"` |
| 271 |
|
| 272 |
// Configure default cardinality limit for observable_counter instruments. |
| 273 |
// If omitted or null, the value from .default is used. |
| 274 |
// |
| 275 |
ObservableCounter CardinalityLimitsObservableCounter `json:"observable_counter,omitempty,omitzero" yaml:"observable_counter,omitempty" mapstructure:"observable_counter,omitempty"` |
| 276 |
|
| 277 |
// Configure default cardinality limit for observable_gauge instruments. |
| 278 |
// If omitted or null, the value from .default is used. |
| 279 |
// |
| 280 |
ObservableGauge CardinalityLimitsObservableGauge `json:"observable_gauge,omitempty,omitzero" yaml:"observable_gauge,omitempty" mapstructure:"observable_gauge,omitempty"` |
| 281 |
|
| 282 |
// Configure default cardinality limit for observable_up_down_counter instruments. |
| 283 |
// If omitted or null, the value from .default is used. |
| 284 |
// |
| 285 |
ObservableUpDownCounter CardinalityLimitsObservableUpDownCounter `json:"observable_up_down_counter,omitempty,omitzero" yaml:"observable_up_down_counter,omitempty" mapstructure:"observable_up_down_counter,omitempty"` |
| 286 |
|
| 287 |
// Configure default cardinality limit for up_down_counter instruments. |
| 288 |
// If omitted or null, the value from .default is used. |
| 289 |
// |
| 290 |
UpDownCounter CardinalityLimitsUpDownCounter `json:"up_down_counter,omitempty,omitzero" yaml:"up_down_counter,omitempty" mapstructure:"up_down_counter,omitempty"` |
| 291 |
} |
| 292 |
|
| 293 |
// Configure default cardinality limit for counter instruments. |
| 294 |
// If omitted or null, the value from .default is used. |
| 295 |
type CardinalityLimitsCounter *int |
| 296 |
|
| 297 |
// Configure default cardinality limit for all instrument types. |
| 298 |
// Instrument-specific cardinality limits take priority. |
| 299 |
// If omitted or null, 2000 is used. |
| 300 |
type CardinalityLimitsDefault *int |
| 301 |
|
| 302 |
// Configure default cardinality limit for gauge instruments. |
| 303 |
// If omitted or null, the value from .default is used. |
| 304 |
type CardinalityLimitsGauge *int |
| 305 |
|
| 306 |
// Configure default cardinality limit for histogram instruments. |
| 307 |
// If omitted or null, the value from .default is used. |
| 308 |
type CardinalityLimitsHistogram *int |
| 309 |
|
| 310 |
// Configure default cardinality limit for observable_counter instruments. |
| 311 |
// If omitted or null, the value from .default is used. |
| 312 |
type CardinalityLimitsObservableCounter *int |
| 313 |
|
| 314 |
// Configure default cardinality limit for observable_gauge instruments. |
| 315 |
// If omitted or null, the value from .default is used. |
| 316 |
type CardinalityLimitsObservableGauge *int |
| 317 |
|
| 318 |
// Configure default cardinality limit for observable_up_down_counter instruments. |
| 319 |
// If omitted or null, the value from .default is used. |
| 320 |
type CardinalityLimitsObservableUpDownCounter *int |
| 321 |
|
| 322 |
// Configure default cardinality limit for up_down_counter instruments. |
| 323 |
// If omitted or null, the value from .default is used. |
| 324 |
type CardinalityLimitsUpDownCounter *int |
| 325 |
|
| 326 |
type ConsoleExporter map[string]interface{} |
| 327 |
|
| 328 |
type ConsoleMetricExporter struct { |
| 329 |
// Configure default histogram aggregation. |
| 330 |
// Values include: |
| 331 |
// * base2_exponential_bucket_histogram: Use base2 exponential histogram as the |
| 332 |
// default aggregation for histogram instruments. |
| 333 |
// * explicit_bucket_histogram: Use explicit bucket histogram as the default |
| 334 |
// aggregation for histogram instruments. |
| 335 |
// If omitted, explicit_bucket_histogram is used. |
| 336 |
// |
| 337 |
DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` |
| 338 |
|
| 339 |
// Configure temporality preference. |
| 340 |
// Values include: |
| 341 |
// * cumulative: Use cumulative aggregation temporality for all instrument types. |
| 342 |
// * delta: Use delta aggregation for all instrument types except up down counter |
| 343 |
// and asynchronous up down counter. |
| 344 |
// * low_memory: Use delta aggregation temporality for counter and histogram |
| 345 |
// instrument types. Use cumulative aggregation temporality for all other |
| 346 |
// instrument types. |
| 347 |
// If omitted, cumulative is used. |
| 348 |
// |
| 349 |
TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` |
| 350 |
} |
| 351 |
|
| 352 |
type DefaultAggregation map[string]interface{} |
| 353 |
|
| 354 |
type Distribution map[string]map[string]interface{} |
| 355 |
|
| 356 |
type DropAggregation map[string]interface{} |
| 357 |
|
| 358 |
type ExemplarFilter string |
| 359 |
|
| 360 |
const ExemplarFilterAlwaysOff ExemplarFilter = "always_off" |
| 361 |
const ExemplarFilterAlwaysOn ExemplarFilter = "always_on" |
| 362 |
const ExemplarFilterTraceBased ExemplarFilter = "trace_based" |
| 363 |
|
| 364 |
type ExperimentalComposableAlwaysOffSampler map[string]interface{} |
| 365 |
|
| 366 |
type ExperimentalComposableAlwaysOnSampler map[string]interface{} |
| 367 |
|
| 368 |
type ExperimentalComposableParentThresholdSampler struct { |
| 369 |
// Sampler to use when there is no parent. |
| 370 |
// Property is required and must be non-null. |
| 371 |
// |
| 372 |
Root ExperimentalComposableSampler `json:"root" yaml:"root" mapstructure:"root"` |
| 373 |
} |
| 374 |
|
| 375 |
type ExperimentalComposableProbabilitySampler struct { |
| 376 |
// Configure ratio. |
| 377 |
// If omitted or null, 1.0 is used. |
| 378 |
// |
| 379 |
Ratio ExperimentalComposableProbabilitySamplerRatio `json:"ratio,omitempty,omitzero" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"` |
| 380 |
} |
| 381 |
|
| 382 |
// Configure ratio. |
| 383 |
// If omitted or null, 1.0 is used. |
| 384 |
type ExperimentalComposableProbabilitySamplerRatio *float64 |
| 385 |
|
| 386 |
type ExperimentalComposableRuleBasedSampler struct { |
| 387 |
// The rules for the sampler, matched in order. If no rules match, the span is not |
| 388 |
// sampled. |
| 389 |
// If omitted or null, no span is sampled. |
| 390 |
// |
| 391 |
Rules *ExperimentalComposableRuleBasedSamplerRules `json:"rules,omitempty,omitzero" yaml:"rules,omitempty" mapstructure:"rules,omitempty"` |
| 392 |
} |
| 393 |
|
| 394 |
// A rule for ExperimentalComposableRuleBasedSampler. A rule can have multiple |
| 395 |
// match conditions - the sampler will be applied if all match. |
| 396 |
// If no conditions are specified, the rule matches all spans that reach it. |
| 397 |
type ExperimentalComposableRuleBasedSamplerRule struct { |
| 398 |
// Patterns to match against a single attribute. Non-string attributes are matched |
| 399 |
// using their string representation: |
| 400 |
// for example, a pattern of "4*" would match any http.response.status_code in |
| 401 |
// 400-499. For array attributes, if any |
| 402 |
// item matches, it is considered a match. |
| 403 |
// If omitted, ignore. |
| 404 |
// |
| 405 |
AttributePatterns *ExperimentalComposableRuleBasedSamplerRuleAttributePatterns `json:"attribute_patterns,omitempty,omitzero" yaml:"attribute_patterns,omitempty" mapstructure:"attribute_patterns,omitempty"` |
| 406 |
|
| 407 |
// Values to match against a single attribute. Non-string attributes are matched |
| 408 |
// using their string representation: |
| 409 |
// for example, a value of "404" would match the http.response.status_code 404. |
| 410 |
// For array attributes, if any |
| 411 |
// item matches, it is considered a match. |
| 412 |
// If omitted, ignore. |
| 413 |
// |
| 414 |
AttributeValues *ExperimentalComposableRuleBasedSamplerRuleAttributeValues `json:"attribute_values,omitempty,omitzero" yaml:"attribute_values,omitempty" mapstructure:"attribute_values,omitempty"` |
| 415 |
|
| 416 |
// The parent span types to match. |
| 417 |
// Values include: |
| 418 |
// * local: local, a local parent. |
| 419 |
// * none: none, no parent, i.e., the trace root. |
| 420 |
// * remote: remote, a remote parent. |
| 421 |
// If omitted, ignore. |
| 422 |
// |
| 423 |
Parent []ExperimentalSpanParent `json:"parent,omitempty,omitzero" yaml:"parent,omitempty" mapstructure:"parent,omitempty"` |
| 424 |
|
| 425 |
// The sampler to use for matching spans. |
| 426 |
// Property is required and must be non-null. |
| 427 |
// |
| 428 |
Sampler ExperimentalComposableSampler `json:"sampler" yaml:"sampler" mapstructure:"sampler"` |
| 429 |
|
| 430 |
// The span kinds to match. If the span's kind matches any of these, it matches. |
| 431 |
// Values include: |
| 432 |
// * client: client, a client span. |
| 433 |
// * consumer: consumer, a consumer span. |
| 434 |
// * internal: internal, an internal span. |
| 435 |
// * producer: producer, a producer span. |
| 436 |
// * server: server, a server span. |
| 437 |
// If omitted, ignore. |
| 438 |
// |
| 439 |
SpanKinds []SpanKind `json:"span_kinds,omitempty,omitzero" yaml:"span_kinds,omitempty" mapstructure:"span_kinds,omitempty"` |
| 440 |
} |
| 441 |
|
| 442 |
type ExperimentalComposableRuleBasedSamplerRuleAttributePatterns struct { |
| 443 |
// Configure list of value patterns to exclude. Applies after .included (i.e. |
| 444 |
// excluded has higher priority than included). |
| 445 |
// Values are evaluated to match as follows: |
| 446 |
// * If the value exactly matches. |
| 447 |
// * If the value matches the wildcard pattern, where '?' matches any single |
| 448 |
// character and '*' matches any number of characters including none. |
| 449 |
// If omitted, .included attributes are included. |
| 450 |
// |
| 451 |
Excluded []string `json:"excluded,omitempty,omitzero" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"` |
| 452 |
|
| 453 |
// Configure list of value patterns to include. |
| 454 |
// Values are evaluated to match as follows: |
| 455 |
// * If the value exactly matches. |
| 456 |
// * If the value matches the wildcard pattern, where '?' matches any single |
| 457 |
// character and '*' matches any number of characters including none. |
| 458 |
// If omitted, all values are included. |
| 459 |
// |
| 460 |
Included []string `json:"included,omitempty,omitzero" yaml:"included,omitempty" mapstructure:"included,omitempty"` |
| 461 |
|
| 462 |
// The attribute key to match against. |
| 463 |
// Property is required and must be non-null. |
| 464 |
// |
| 465 |
Key string `json:"key" yaml:"key" mapstructure:"key"` |
| 466 |
} |
| 467 |
|
| 468 |
type ExperimentalComposableRuleBasedSamplerRuleAttributeValues struct { |
| 469 |
// The attribute key to match against. |
| 470 |
// Property is required and must be non-null. |
| 471 |
// |
| 472 |
Key string `json:"key" yaml:"key" mapstructure:"key"` |
| 473 |
|
| 474 |
// The attribute values to match against. If the attribute's value matches any of |
| 475 |
// these, it matches. |
| 476 |
// Property is required and must be non-null. |
| 477 |
// |
| 478 |
Values []string `json:"values" yaml:"values" mapstructure:"values"` |
| 479 |
} |
| 480 |
|
| 481 |
// The rules for the sampler, matched in order. If no rules match, the span is not |
| 482 |
// sampled. |
| 483 |
// If omitted or null, no span is sampled. |
| 484 |
type ExperimentalComposableRuleBasedSamplerRules []ExperimentalComposableRuleBasedSamplerRule |
| 485 |
|
| 486 |
type ExperimentalComposableSampler struct { |
| 487 |
// Configure sampler to be always_off. |
| 488 |
// If omitted, ignore. |
| 489 |
// |
| 490 |
AlwaysOff ExperimentalComposableAlwaysOffSampler `json:"always_off,omitempty,omitzero" yaml:"always_off,omitempty" mapstructure:"always_off,omitempty"` |
| 491 |
|
| 492 |
// Configure sampler to be always_on. |
| 493 |
// If omitted, ignore. |
| 494 |
// |
| 495 |
AlwaysOn ExperimentalComposableAlwaysOnSampler `json:"always_on,omitempty,omitzero" yaml:"always_on,omitempty" mapstructure:"always_on,omitempty"` |
| 496 |
|
| 497 |
// Configure sampler to be parent_threshold. |
| 498 |
// If omitted, ignore. |
| 499 |
// |
| 500 |
ParentThreshold *ExperimentalComposableParentThresholdSampler `json:"parent_threshold,omitempty,omitzero" yaml:"parent_threshold,omitempty" mapstructure:"parent_threshold,omitempty"` |
| 501 |
|
| 502 |
// Configure sampler to be probability. |
| 503 |
// If omitted, ignore. |
| 504 |
// |
| 505 |
Probability *ExperimentalComposableProbabilitySampler `json:"probability,omitempty,omitzero" yaml:"probability,omitempty" mapstructure:"probability,omitempty"` |
| 506 |
|
| 507 |
// Configure sampler to be rule_based. |
| 508 |
// If omitted, ignore. |
| 509 |
// |
| 510 |
RuleBased *ExperimentalComposableRuleBasedSampler `json:"rule_based,omitempty,omitzero" yaml:"rule_based,omitempty" mapstructure:"rule_based,omitempty"` |
| 511 |
|
| 512 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 513 |
} |
| 514 |
|
| 515 |
type ExperimentalContainerResourceDetector map[string]interface{} |
| 516 |
|
| 517 |
type ExperimentalGeneralInstrumentation struct { |
| 518 |
// Configure instrumentations following the http semantic conventions. |
| 519 |
// See http semantic conventions: |
| 520 |
// https://opentelemetry.io/docs/specs/semconv/http/ |
| 521 |
// If omitted, defaults as described in ExperimentalHttpInstrumentation are used. |
| 522 |
// |
| 523 |
Http *ExperimentalHttpInstrumentation `json:"http,omitempty,omitzero" yaml:"http,omitempty" mapstructure:"http,omitempty"` |
| 524 |
|
| 525 |
// Configure instrumentations following the peer semantic conventions. |
| 526 |
// See peer semantic conventions: |
| 527 |
// https://opentelemetry.io/docs/specs/semconv/attributes-registry/peer/ |
| 528 |
// If omitted, defaults as described in ExperimentalPeerInstrumentation are used. |
| 529 |
// |
| 530 |
Peer *ExperimentalPeerInstrumentation `json:"peer,omitempty,omitzero" yaml:"peer,omitempty" mapstructure:"peer,omitempty"` |
| 531 |
} |
| 532 |
|
| 533 |
type ExperimentalHostResourceDetector map[string]interface{} |
| 534 |
|
| 535 |
type ExperimentalHttpClientInstrumentation struct { |
| 536 |
// Configure headers to capture for outbound http requests. |
| 537 |
// If omitted, no outbound request headers are captured. |
| 538 |
// |
| 539 |
RequestCapturedHeaders []string `json:"request_captured_headers,omitempty,omitzero" yaml:"request_captured_headers,omitempty" mapstructure:"request_captured_headers,omitempty"` |
| 540 |
|
| 541 |
// Configure headers to capture for inbound http responses. |
| 542 |
// If omitted, no inbound response headers are captured. |
| 543 |
// |
| 544 |
ResponseCapturedHeaders []string `json:"response_captured_headers,omitempty,omitzero" yaml:"response_captured_headers,omitempty" mapstructure:"response_captured_headers,omitempty"` |
| 545 |
} |
| 546 |
|
| 547 |
type ExperimentalHttpInstrumentation struct { |
| 548 |
// Configure instrumentations following the http client semantic conventions. |
| 549 |
// If omitted, defaults as described in ExperimentalHttpClientInstrumentation are |
| 550 |
// used. |
| 551 |
// |
| 552 |
Client *ExperimentalHttpClientInstrumentation `json:"client,omitempty,omitzero" yaml:"client,omitempty" mapstructure:"client,omitempty"` |
| 553 |
|
| 554 |
// Configure instrumentations following the http server semantic conventions. |
| 555 |
// If omitted, defaults as described in ExperimentalHttpServerInstrumentation are |
| 556 |
// used. |
| 557 |
// |
| 558 |
Server *ExperimentalHttpServerInstrumentation `json:"server,omitempty,omitzero" yaml:"server,omitempty" mapstructure:"server,omitempty"` |
| 559 |
} |
| 560 |
|
| 561 |
type ExperimentalHttpServerInstrumentation struct { |
| 562 |
// Configure headers to capture for inbound http requests. |
| 563 |
// If omitted, no request headers are captured. |
| 564 |
// |
| 565 |
RequestCapturedHeaders []string `json:"request_captured_headers,omitempty,omitzero" yaml:"request_captured_headers,omitempty" mapstructure:"request_captured_headers,omitempty"` |
| 566 |
|
| 567 |
// Configure headers to capture for outbound http responses. |
| 568 |
// If omitted, no response headers are captures. |
| 569 |
// |
| 570 |
ResponseCapturedHeaders []string `json:"response_captured_headers,omitempty,omitzero" yaml:"response_captured_headers,omitempty" mapstructure:"response_captured_headers,omitempty"` |
| 571 |
} |
| 572 |
|
| 573 |
type ExperimentalInstrumentation struct { |
| 574 |
// Configure C++ language-specific instrumentation libraries. |
| 575 |
// If omitted, instrumentation defaults are used. |
| 576 |
// |
| 577 |
Cpp ExperimentalLanguageSpecificInstrumentation `json:"cpp,omitempty,omitzero" yaml:"cpp,omitempty" mapstructure:"cpp,omitempty"` |
| 578 |
|
| 579 |
// Configure .NET language-specific instrumentation libraries. |
| 580 |
// Each entry's key identifies a particular instrumentation library. The |
| 581 |
// corresponding value configures it. |
| 582 |
// If omitted, instrumentation defaults are used. |
| 583 |
// |
| 584 |
Dotnet ExperimentalLanguageSpecificInstrumentation `json:"dotnet,omitempty,omitzero" yaml:"dotnet,omitempty" mapstructure:"dotnet,omitempty"` |
| 585 |
|
| 586 |
// Configure Erlang language-specific instrumentation libraries. |
| 587 |
// Each entry's key identifies a particular instrumentation library. The |
| 588 |
// corresponding value configures it. |
| 589 |
// If omitted, instrumentation defaults are used. |
| 590 |
// |
| 591 |
Erlang ExperimentalLanguageSpecificInstrumentation `json:"erlang,omitempty,omitzero" yaml:"erlang,omitempty" mapstructure:"erlang,omitempty"` |
| 592 |
|
| 593 |
// Configure general SemConv options that may apply to multiple languages and |
| 594 |
// instrumentations. |
| 595 |
// Instrumenation may merge general config options with the language specific |
| 596 |
// configuration at .instrumentation.<language>. |
| 597 |
// If omitted, default values as described in ExperimentalGeneralInstrumentation |
| 598 |
// are used. |
| 599 |
// |
| 600 |
General *ExperimentalGeneralInstrumentation `json:"general,omitempty,omitzero" yaml:"general,omitempty" mapstructure:"general,omitempty"` |
| 601 |
|
| 602 |
// Configure Go language-specific instrumentation libraries. |
| 603 |
// Each entry's key identifies a particular instrumentation library. The |
| 604 |
// corresponding value configures it. |
| 605 |
// If omitted, instrumentation defaults are used. |
| 606 |
// |
| 607 |
Go ExperimentalLanguageSpecificInstrumentation `json:"go,omitempty,omitzero" yaml:"go,omitempty" mapstructure:"go,omitempty"` |
| 608 |
|
| 609 |
// Configure Java language-specific instrumentation libraries. |
| 610 |
// Each entry's key identifies a particular instrumentation library. The |
| 611 |
// corresponding value configures it. |
| 612 |
// If omitted, instrumentation defaults are used. |
| 613 |
// |
| 614 |
Java ExperimentalLanguageSpecificInstrumentation `json:"java,omitempty,omitzero" yaml:"java,omitempty" mapstructure:"java,omitempty"` |
| 615 |
|
| 616 |
// Configure JavaScript language-specific instrumentation libraries. |
| 617 |
// Each entry's key identifies a particular instrumentation library. The |
| 618 |
// corresponding value configures it. |
| 619 |
// If omitted, instrumentation defaults are used. |
| 620 |
// |
| 621 |
Js ExperimentalLanguageSpecificInstrumentation `json:"js,omitempty,omitzero" yaml:"js,omitempty" mapstructure:"js,omitempty"` |
| 622 |
|
| 623 |
// Configure PHP language-specific instrumentation libraries. |
| 624 |
// Each entry's key identifies a particular instrumentation library. The |
| 625 |
// corresponding value configures it. |
| 626 |
// If omitted, instrumentation defaults are used. |
| 627 |
// |
| 628 |
Php ExperimentalLanguageSpecificInstrumentation `json:"php,omitempty,omitzero" yaml:"php,omitempty" mapstructure:"php,omitempty"` |
| 629 |
|
| 630 |
// Configure Python language-specific instrumentation libraries. |
| 631 |
// Each entry's key identifies a particular instrumentation library. The |
| 632 |
// corresponding value configures it. |
| 633 |
// If omitted, instrumentation defaults are used. |
| 634 |
// |
| 635 |
Python ExperimentalLanguageSpecificInstrumentation `json:"python,omitempty,omitzero" yaml:"python,omitempty" mapstructure:"python,omitempty"` |
| 636 |
|
| 637 |
// Configure Ruby language-specific instrumentation libraries. |
| 638 |
// Each entry's key identifies a particular instrumentation library. The |
| 639 |
// corresponding value configures it. |
| 640 |
// If omitted, instrumentation defaults are used. |
| 641 |
// |
| 642 |
Ruby ExperimentalLanguageSpecificInstrumentation `json:"ruby,omitempty,omitzero" yaml:"ruby,omitempty" mapstructure:"ruby,omitempty"` |
| 643 |
|
| 644 |
// Configure Rust language-specific instrumentation libraries. |
| 645 |
// Each entry's key identifies a particular instrumentation library. The |
| 646 |
// corresponding value configures it. |
| 647 |
// If omitted, instrumentation defaults are used. |
| 648 |
// |
| 649 |
Rust ExperimentalLanguageSpecificInstrumentation `json:"rust,omitempty,omitzero" yaml:"rust,omitempty" mapstructure:"rust,omitempty"` |
| 650 |
|
| 651 |
// Configure Swift language-specific instrumentation libraries. |
| 652 |
// Each entry's key identifies a particular instrumentation library. The |
| 653 |
// corresponding value configures it. |
| 654 |
// If omitted, instrumentation defaults are used. |
| 655 |
// |
| 656 |
Swift ExperimentalLanguageSpecificInstrumentation `json:"swift,omitempty,omitzero" yaml:"swift,omitempty" mapstructure:"swift,omitempty"` |
| 657 |
} |
| 658 |
|
| 659 |
type ExperimentalJaegerRemoteSampler struct { |
| 660 |
// Configure the endpoint of the jaeger remote sampling service. |
| 661 |
// Property is required and must be non-null. |
| 662 |
// |
| 663 |
Endpoint string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"` |
| 664 |
|
| 665 |
// Configure the initial sampler used before first configuration is fetched. |
| 666 |
// Property is required and must be non-null. |
| 667 |
// |
| 668 |
InitialSampler Sampler `json:"initial_sampler" yaml:"initial_sampler" mapstructure:"initial_sampler"` |
| 669 |
|
| 670 |
// Configure the polling interval (in milliseconds) to fetch from the remote |
| 671 |
// sampling service. |
| 672 |
// If omitted or null, 60000 is used. |
| 673 |
// |
| 674 |
Interval ExperimentalJaegerRemoteSamplerInterval `json:"interval,omitempty,omitzero" yaml:"interval,omitempty" mapstructure:"interval,omitempty"` |
| 675 |
} |
| 676 |
|
| 677 |
// Configure the polling interval (in milliseconds) to fetch from the remote |
| 678 |
// sampling service. |
| 679 |
// If omitted or null, 60000 is used. |
| 680 |
type ExperimentalJaegerRemoteSamplerInterval *int |
| 681 |
|
| 682 |
type ExperimentalLanguageSpecificInstrumentation map[string]map[string]interface{} |
| 683 |
|
| 684 |
type ExperimentalLoggerConfig struct { |
| 685 |
// Configure if the logger is enabled or not. |
| 686 |
// If omitted or null, false is used. |
| 687 |
// |
| 688 |
Disabled ExperimentalLoggerConfigDisabled `json:"disabled,omitempty,omitzero" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"` |
| 689 |
|
| 690 |
// Configure severity filtering. |
| 691 |
// Log records with an non-zero (i.e. unspecified) severity number which is less |
| 692 |
// than minimum_severity are not processed. |
| 693 |
// Values include: |
| 694 |
// * debug: debug, severity number 5. |
| 695 |
// * debug2: debug2, severity number 6. |
| 696 |
// * debug3: debug3, severity number 7. |
| 697 |
// * debug4: debug4, severity number 8. |
| 698 |
// * error: error, severity number 17. |
| 699 |
// * error2: error2, severity number 18. |
| 700 |
// * error3: error3, severity number 19. |
| 701 |
// * error4: error4, severity number 20. |
| 702 |
// * fatal: fatal, severity number 21. |
| 703 |
// * fatal2: fatal2, severity number 22. |
| 704 |
// * fatal3: fatal3, severity number 23. |
| 705 |
// * fatal4: fatal4, severity number 24. |
| 706 |
// * info: info, severity number 9. |
| 707 |
// * info2: info2, severity number 10. |
| 708 |
// * info3: info3, severity number 11. |
| 709 |
// * info4: info4, severity number 12. |
| 710 |
// * trace: trace, severity number 1. |
| 711 |
// * trace2: trace2, severity number 2. |
| 712 |
// * trace3: trace3, severity number 3. |
| 713 |
// * trace4: trace4, severity number 4. |
| 714 |
// * warn: warn, severity number 13. |
| 715 |
// * warn2: warn2, severity number 14. |
| 716 |
// * warn3: warn3, severity number 15. |
| 717 |
// * warn4: warn4, severity number 16. |
| 718 |
// If omitted, severity filtering is not applied. |
| 719 |
// |
| 720 |
MinimumSeverity *SeverityNumber `json:"minimum_severity,omitempty,omitzero" yaml:"minimum_severity,omitempty" mapstructure:"minimum_severity,omitempty"` |
| 721 |
|
| 722 |
// Configure trace based filtering. |
| 723 |
// If true, log records associated with unsampled trace contexts traces are not |
| 724 |
// processed. If false, or if a log record is not associated with a trace context, |
| 725 |
// trace based filtering is not applied. |
| 726 |
// If omitted or null, trace based filtering is not applied. |
| 727 |
// |
| 728 |
TraceBased ExperimentalLoggerConfigTraceBased `json:"trace_based,omitempty,omitzero" yaml:"trace_based,omitempty" mapstructure:"trace_based,omitempty"` |
| 729 |
} |
| 730 |
|
| 731 |
// Configure if the logger is enabled or not. |
| 732 |
// If omitted or null, false is used. |
| 733 |
type ExperimentalLoggerConfigDisabled *bool |
| 734 |
|
| 735 |
// Configure trace based filtering. |
| 736 |
// If true, log records associated with unsampled trace contexts traces are not |
| 737 |
// processed. If false, or if a log record is not associated with a trace context, |
| 738 |
// trace based filtering is not applied. |
| 739 |
// If omitted or null, trace based filtering is not applied. |
| 740 |
type ExperimentalLoggerConfigTraceBased *bool |
| 741 |
|
| 742 |
type ExperimentalLoggerConfigurator struct { |
| 743 |
// Configure the default logger config used there is no matching entry in |
| 744 |
// .logger_configurator/development.loggers. |
| 745 |
// If omitted, unmatched .loggers use default values as described in |
| 746 |
// ExperimentalLoggerConfig. |
| 747 |
// |
| 748 |
DefaultConfig *ExperimentalLoggerConfig `json:"default_config,omitempty,omitzero" yaml:"default_config,omitempty" mapstructure:"default_config,omitempty"` |
| 749 |
|
| 750 |
// Configure loggers. |
| 751 |
// If omitted, all loggers use .default_config. |
| 752 |
// |
| 753 |
Loggers []ExperimentalLoggerMatcherAndConfig `json:"loggers,omitempty,omitzero" yaml:"loggers,omitempty" mapstructure:"loggers,omitempty"` |
| 754 |
} |
| 755 |
|
| 756 |
type ExperimentalLoggerMatcherAndConfig struct { |
| 757 |
// The logger config. |
| 758 |
// Property is required and must be non-null. |
| 759 |
// |
| 760 |
Config ExperimentalLoggerConfig `json:"config" yaml:"config" mapstructure:"config"` |
| 761 |
|
| 762 |
// Configure logger names to match, evaluated as follows: |
| 763 |
// |
| 764 |
// * If the logger name exactly matches. |
| 765 |
// * If the logger name matches the wildcard pattern, where '?' matches any |
| 766 |
// single character and '*' matches any number of characters including none. |
| 767 |
// Property is required and must be non-null. |
| 768 |
// |
| 769 |
Name string `json:"name" yaml:"name" mapstructure:"name"` |
| 770 |
} |
| 771 |
|
| 772 |
type ExperimentalMeterConfig struct { |
| 773 |
// Configure if the meter is enabled or not. |
| 774 |
// If omitted, false is used. |
| 775 |
// |
| 776 |
Disabled *bool `json:"disabled,omitempty,omitzero" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"` |
| 777 |
} |
| 778 |
|
| 779 |
type ExperimentalMeterConfigurator struct { |
| 780 |
// Configure the default meter config used there is no matching entry in |
| 781 |
// .meter_configurator/development.meters. |
| 782 |
// If omitted, unmatched .meters use default values as described in |
| 783 |
// ExperimentalMeterConfig. |
| 784 |
// |
| 785 |
DefaultConfig *ExperimentalMeterConfig `json:"default_config,omitempty,omitzero" yaml:"default_config,omitempty" mapstructure:"default_config,omitempty"` |
| 786 |
|
| 787 |
// Configure meters. |
| 788 |
// If omitted, all meters used .default_config. |
| 789 |
// |
| 790 |
Meters []ExperimentalMeterMatcherAndConfig `json:"meters,omitempty,omitzero" yaml:"meters,omitempty" mapstructure:"meters,omitempty"` |
| 791 |
} |
| 792 |
|
| 793 |
type ExperimentalMeterMatcherAndConfig struct { |
| 794 |
// The meter config. |
| 795 |
// Property is required and must be non-null. |
| 796 |
// |
| 797 |
Config ExperimentalMeterConfig `json:"config" yaml:"config" mapstructure:"config"` |
| 798 |
|
| 799 |
// Configure meter names to match, evaluated as follows: |
| 800 |
// |
| 801 |
// * If the meter name exactly matches. |
| 802 |
// * If the meter name matches the wildcard pattern, where '?' matches any single |
| 803 |
// character and '*' matches any number of characters including none. |
| 804 |
// Property is required and must be non-null. |
| 805 |
// |
| 806 |
Name string `json:"name" yaml:"name" mapstructure:"name"` |
| 807 |
} |
| 808 |
|
| 809 |
type ExperimentalOTLPFileExporter struct { |
| 810 |
// Configure output stream. |
| 811 |
// Values include stdout, or scheme+destination. For example: |
| 812 |
// file:///path/to/file.jsonl. |
| 813 |
// If omitted or null, stdout is used. |
| 814 |
// |
| 815 |
OutputStream ExperimentalOTLPFileExporterOutputStream `json:"output_stream,omitempty,omitzero" yaml:"output_stream,omitempty" mapstructure:"output_stream,omitempty"` |
| 816 |
} |
| 817 |
|
| 818 |
// Configure output stream. |
| 819 |
// Values include stdout, or scheme+destination. For example: |
| 820 |
// file:///path/to/file.jsonl. |
| 821 |
// If omitted or null, stdout is used. |
| 822 |
type ExperimentalOTLPFileExporterOutputStream *string |
| 823 |
|
| 824 |
type ExperimentalOTLPFileMetricExporter struct { |
| 825 |
// Configure default histogram aggregation. |
| 826 |
// Values include: |
| 827 |
// * base2_exponential_bucket_histogram: Use base2 exponential histogram as the |
| 828 |
// default aggregation for histogram instruments. |
| 829 |
// * explicit_bucket_histogram: Use explicit bucket histogram as the default |
| 830 |
// aggregation for histogram instruments. |
| 831 |
// If omitted, explicit_bucket_histogram is used. |
| 832 |
// |
| 833 |
DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` |
| 834 |
|
| 835 |
// Configure output stream. |
| 836 |
// Values include stdout, or scheme+destination. For example: |
| 837 |
// file:///path/to/file.jsonl. |
| 838 |
// If omitted or null, stdout is used. |
| 839 |
// |
| 840 |
OutputStream ExperimentalOTLPFileMetricExporterOutputStream `json:"output_stream,omitempty,omitzero" yaml:"output_stream,omitempty" mapstructure:"output_stream,omitempty"` |
| 841 |
|
| 842 |
// Configure temporality preference. |
| 843 |
// Values include: |
| 844 |
// * cumulative: Use cumulative aggregation temporality for all instrument types. |
| 845 |
// * delta: Use delta aggregation for all instrument types except up down counter |
| 846 |
// and asynchronous up down counter. |
| 847 |
// * low_memory: Use delta aggregation temporality for counter and histogram |
| 848 |
// instrument types. Use cumulative aggregation temporality for all other |
| 849 |
// instrument types. |
| 850 |
// If omitted, cumulative is used. |
| 851 |
// |
| 852 |
TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` |
| 853 |
} |
| 854 |
|
| 855 |
// Configure output stream. |
| 856 |
// Values include stdout, or scheme+destination. For example: |
| 857 |
// file:///path/to/file.jsonl. |
| 858 |
// If omitted or null, stdout is used. |
| 859 |
type ExperimentalOTLPFileMetricExporterOutputStream *string |
| 860 |
|
| 861 |
type ExperimentalPeerInstrumentation struct { |
| 862 |
// Configure the service mapping for instrumentations following peer.service |
| 863 |
// semantic conventions. |
| 864 |
// See peer.service semantic conventions: |
| 865 |
// https://opentelemetry.io/docs/specs/semconv/general/attributes/#general-remote-service-attributes |
| 866 |
// If omitted, no peer service mappings are used. |
| 867 |
// |
| 868 |
ServiceMapping []ExperimentalPeerServiceMapping `json:"service_mapping,omitempty,omitzero" yaml:"service_mapping,omitempty" mapstructure:"service_mapping,omitempty"` |
| 869 |
} |
| 870 |
|
| 871 |
type ExperimentalPeerServiceMapping struct { |
| 872 |
// The IP address to map. |
| 873 |
// Property is required and must be non-null. |
| 874 |
// |
| 875 |
Peer string `json:"peer" yaml:"peer" mapstructure:"peer"` |
| 876 |
|
| 877 |
// The logical name corresponding to the IP address of .peer. |
| 878 |
// Property is required and must be non-null. |
| 879 |
// |
| 880 |
Service string `json:"service" yaml:"service" mapstructure:"service"` |
| 881 |
} |
| 882 |
|
| 883 |
type ExperimentalProbabilitySampler struct { |
| 884 |
// Configure ratio. |
| 885 |
// If omitted or null, 1.0 is used. |
| 886 |
// |
| 887 |
Ratio ExperimentalProbabilitySamplerRatio `json:"ratio,omitempty,omitzero" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"` |
| 888 |
} |
| 889 |
|
| 890 |
// Configure ratio. |
| 891 |
// If omitted or null, 1.0 is used. |
| 892 |
type ExperimentalProbabilitySamplerRatio *float64 |
| 893 |
|
| 894 |
type ExperimentalProcessResourceDetector map[string]interface{} |
| 895 |
|
| 896 |
type ExperimentalPrometheusMetricExporter struct { |
| 897 |
// Configure host. |
| 898 |
// If omitted or null, localhost is used. |
| 899 |
// |
| 900 |
Host ExperimentalPrometheusMetricExporterHost `json:"host,omitempty,omitzero" yaml:"host,omitempty" mapstructure:"host,omitempty"` |
| 901 |
|
| 902 |
// Configure port. |
| 903 |
// If omitted or null, 9464 is used. |
| 904 |
// |
| 905 |
Port ExperimentalPrometheusMetricExporterPort `json:"port,omitempty,omitzero" yaml:"port,omitempty" mapstructure:"port,omitempty"` |
| 906 |
|
| 907 |
// Configure how metric names are translated to Prometheus metric names. |
| 908 |
// Values include: |
| 909 |
// * no_translation: Special character escaping is disabled. Type and unit |
| 910 |
// suffixes are disabled. Metric names are unaltered. |
| 911 |
// * no_utf8_escaping_with_suffixes: Special character escaping is disabled. Type |
| 912 |
// and unit suffixes are enabled. |
| 913 |
// * underscore_escaping_with_suffixes: Special character escaping is enabled. |
| 914 |
// Type and unit suffixes are enabled. |
| 915 |
// * underscore_escaping_without_suffixes: Special character escaping is enabled. |
| 916 |
// Type and unit suffixes are disabled. This represents classic Prometheus metric |
| 917 |
// name compatibility. |
| 918 |
// If omitted, underscore_escaping_with_suffixes is used. |
| 919 |
// |
| 920 |
TranslationStrategy *ExperimentalPrometheusTranslationStrategy `json:"translation_strategy,omitempty,omitzero" yaml:"translation_strategy,omitempty" mapstructure:"translation_strategy,omitempty"` |
| 921 |
|
| 922 |
// Configure Prometheus Exporter to add resource attributes as metrics attributes, |
| 923 |
// where the resource attribute keys match the patterns. |
| 924 |
// If omitted, no resource attributes are added. |
| 925 |
// |
| 926 |
WithResourceConstantLabels *IncludeExclude `json:"with_resource_constant_labels,omitempty,omitzero" yaml:"with_resource_constant_labels,omitempty" mapstructure:"with_resource_constant_labels,omitempty"` |
| 927 |
|
| 928 |
// Configure Prometheus Exporter to produce metrics without a scope info metric. |
| 929 |
// If omitted or null, false is used. |
| 930 |
// |
| 931 |
WithoutScopeInfo ExperimentalPrometheusMetricExporterWithoutScopeInfo `json:"without_scope_info,omitempty,omitzero" yaml:"without_scope_info,omitempty" mapstructure:"without_scope_info,omitempty"` |
| 932 |
|
| 933 |
// Configure Prometheus Exporter to produce metrics without a target info metric |
| 934 |
// for the resource. |
| 935 |
// If omitted or null, false is used. |
| 936 |
// |
| 937 |
WithoutTargetInfo ExperimentalPrometheusMetricExporterWithoutTargetInfo `json:"without_target_info,omitempty,omitzero" yaml:"without_target_info,omitempty" mapstructure:"without_target_info,omitempty"` |
| 938 |
} |
| 939 |
|
| 940 |
// Configure host. |
| 941 |
// If omitted or null, localhost is used. |
| 942 |
type ExperimentalPrometheusMetricExporterHost *string |
| 943 |
|
| 944 |
// Configure port. |
| 945 |
// If omitted or null, 9464 is used. |
| 946 |
type ExperimentalPrometheusMetricExporterPort *int |
| 947 |
|
| 948 |
// Configure Prometheus Exporter to produce metrics without a scope info metric. |
| 949 |
// If omitted or null, false is used. |
| 950 |
type ExperimentalPrometheusMetricExporterWithoutScopeInfo *bool |
| 951 |
|
| 952 |
// Configure Prometheus Exporter to produce metrics without a target info metric |
| 953 |
// for the resource. |
| 954 |
// If omitted or null, false is used. |
| 955 |
type ExperimentalPrometheusMetricExporterWithoutTargetInfo *bool |
| 956 |
|
| 957 |
type ExperimentalPrometheusTranslationStrategy string |
| 958 |
|
| 959 |
const ExperimentalPrometheusTranslationStrategyNoTranslation ExperimentalPrometheusTranslationStrategy = "no_translation" |
| 960 |
const ExperimentalPrometheusTranslationStrategyNoUtf8EscapingWithSuffixes ExperimentalPrometheusTranslationStrategy = "no_utf8_escaping_with_suffixes" |
| 961 |
const ExperimentalPrometheusTranslationStrategyUnderscoreEscapingWithSuffixes ExperimentalPrometheusTranslationStrategy = "underscore_escaping_with_suffixes" |
| 962 |
const ExperimentalPrometheusTranslationStrategyUnderscoreEscapingWithoutSuffixes ExperimentalPrometheusTranslationStrategy = "underscore_escaping_without_suffixes" |
| 963 |
|
| 964 |
type ExperimentalResourceDetection struct { |
| 965 |
// Configure attributes provided by resource detectors. |
| 966 |
// If omitted, all attributes from resource detectors are added. |
| 967 |
// |
| 968 |
Attributes *IncludeExclude `json:"attributes,omitempty,omitzero" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` |
| 969 |
|
| 970 |
// Configure resource detectors. |
| 971 |
// Resource detector names are dependent on the SDK language ecosystem. Please |
| 972 |
// consult documentation for each respective language. |
| 973 |
// If omitted, no resource detectors are enabled. |
| 974 |
// |
| 975 |
Detectors []ExperimentalResourceDetector `json:"detectors,omitempty,omitzero" yaml:"detectors,omitempty" mapstructure:"detectors,omitempty"` |
| 976 |
} |
| 977 |
|
| 978 |
type ExperimentalResourceDetector struct { |
| 979 |
// Enable the container resource detector, which populates container.* attributes. |
| 980 |
// If omitted, ignore. |
| 981 |
// |
| 982 |
Container ExperimentalContainerResourceDetector `json:"container,omitempty,omitzero" yaml:"container,omitempty" mapstructure:"container,omitempty"` |
| 983 |
|
| 984 |
// Enable the host resource detector, which populates host.* and os.* attributes. |
| 985 |
// If omitted, ignore. |
| 986 |
// |
| 987 |
Host ExperimentalHostResourceDetector `json:"host,omitempty,omitzero" yaml:"host,omitempty" mapstructure:"host,omitempty"` |
| 988 |
|
| 989 |
// Enable the process resource detector, which populates process.* attributes. |
| 990 |
// If omitted, ignore. |
| 991 |
// |
| 992 |
Process ExperimentalProcessResourceDetector `json:"process,omitempty,omitzero" yaml:"process,omitempty" mapstructure:"process,omitempty"` |
| 993 |
|
| 994 |
// Enable the service detector, which populates service.name based on the |
| 995 |
// OTEL_SERVICE_NAME environment variable and service.instance.id. |
| 996 |
// If omitted, ignore. |
| 997 |
// |
| 998 |
Service ExperimentalServiceResourceDetector `json:"service,omitempty,omitzero" yaml:"service,omitempty" mapstructure:"service,omitempty"` |
| 999 |
|
| 1000 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1001 |
} |
| 1002 |
|
| 1003 |
type ExperimentalServiceResourceDetector map[string]interface{} |
| 1004 |
|
| 1005 |
type ExperimentalSpanParent string |
| 1006 |
|
| 1007 |
const ExperimentalSpanParentLocal ExperimentalSpanParent = "local" |
| 1008 |
const ExperimentalSpanParentNone ExperimentalSpanParent = "none" |
| 1009 |
const ExperimentalSpanParentRemote ExperimentalSpanParent = "remote" |
| 1010 |
|
| 1011 |
type ExperimentalTracerConfig struct { |
| 1012 |
// Configure if the tracer is enabled or not. |
| 1013 |
// If omitted, false is used. |
| 1014 |
// |
| 1015 |
Disabled *bool `json:"disabled,omitempty,omitzero" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"` |
| 1016 |
} |
| 1017 |
|
| 1018 |
type ExperimentalTracerConfigurator struct { |
| 1019 |
// Configure the default tracer config used there is no matching entry in |
| 1020 |
// .tracer_configurator/development.tracers. |
| 1021 |
// If omitted, unmatched .tracers use default values as described in |
| 1022 |
// ExperimentalTracerConfig. |
| 1023 |
// |
| 1024 |
DefaultConfig *ExperimentalTracerConfig `json:"default_config,omitempty,omitzero" yaml:"default_config,omitempty" mapstructure:"default_config,omitempty"` |
| 1025 |
|
| 1026 |
// Configure tracers. |
| 1027 |
// If omitted, all tracers use .default_config. |
| 1028 |
// |
| 1029 |
Tracers []ExperimentalTracerMatcherAndConfig `json:"tracers,omitempty,omitzero" yaml:"tracers,omitempty" mapstructure:"tracers,omitempty"` |
| 1030 |
} |
| 1031 |
|
| 1032 |
type ExperimentalTracerMatcherAndConfig struct { |
| 1033 |
// The tracer config. |
| 1034 |
// Property is required and must be non-null. |
| 1035 |
// |
| 1036 |
Config ExperimentalTracerConfig `json:"config" yaml:"config" mapstructure:"config"` |
| 1037 |
|
| 1038 |
// Configure tracer names to match, evaluated as follows: |
| 1039 |
// |
| 1040 |
// * If the tracer name exactly matches. |
| 1041 |
// * If the tracer name matches the wildcard pattern, where '?' matches any |
| 1042 |
// single character and '*' matches any number of characters including none. |
| 1043 |
// Property is required and must be non-null. |
| 1044 |
// |
| 1045 |
Name string `json:"name" yaml:"name" mapstructure:"name"` |
| 1046 |
} |
| 1047 |
|
| 1048 |
type ExplicitBucketHistogramAggregation struct { |
| 1049 |
// Configure bucket boundaries. |
| 1050 |
// If omitted, [0, 5, 10, 25, 50, 75, 100, 250, 500, 750, 1000, 2500, 5000, 7500, |
| 1051 |
// 10000] is used. |
| 1052 |
// |
| 1053 |
Boundaries []float64 `json:"boundaries,omitempty,omitzero" yaml:"boundaries,omitempty" mapstructure:"boundaries,omitempty"` |
| 1054 |
|
| 1055 |
// Configure record min and max. |
| 1056 |
// If omitted or null, true is used. |
| 1057 |
// |
| 1058 |
RecordMinMax ExplicitBucketHistogramAggregationRecordMinMax `json:"record_min_max,omitempty,omitzero" yaml:"record_min_max,omitempty" mapstructure:"record_min_max,omitempty"` |
| 1059 |
} |
| 1060 |
|
| 1061 |
// Configure record min and max. |
| 1062 |
// If omitted or null, true is used. |
| 1063 |
type ExplicitBucketHistogramAggregationRecordMinMax *bool |
| 1064 |
|
| 1065 |
type ExporterDefaultHistogramAggregation string |
| 1066 |
|
| 1067 |
const ExporterDefaultHistogramAggregationBase2ExponentialBucketHistogram ExporterDefaultHistogramAggregation = "base2_exponential_bucket_histogram" |
| 1068 |
const ExporterDefaultHistogramAggregationExplicitBucketHistogram ExporterDefaultHistogramAggregation = "explicit_bucket_histogram" |
| 1069 |
|
| 1070 |
type ExporterTemporalityPreference string |
| 1071 |
|
| 1072 |
const ExporterTemporalityPreferenceCumulative ExporterTemporalityPreference = "cumulative" |
| 1073 |
const ExporterTemporalityPreferenceDelta ExporterTemporalityPreference = "delta" |
| 1074 |
const ExporterTemporalityPreferenceLowMemory ExporterTemporalityPreference = "low_memory" |
| 1075 |
|
| 1076 |
type GrpcTls struct { |
| 1077 |
// Configure certificate used to verify a server's TLS credentials. |
| 1078 |
// Absolute path to certificate file in PEM format. |
| 1079 |
// If omitted or null, system default certificate verification is used for secure |
| 1080 |
// connections. |
| 1081 |
// |
| 1082 |
CaFile GrpcTlsCaFile `json:"ca_file,omitempty,omitzero" yaml:"ca_file,omitempty" mapstructure:"ca_file,omitempty"` |
| 1083 |
|
| 1084 |
// Configure mTLS client certificate. |
| 1085 |
// Absolute path to client certificate file in PEM format. If set, .client_key |
| 1086 |
// must also be set. |
| 1087 |
// If omitted or null, mTLS is not used. |
| 1088 |
// |
| 1089 |
CertFile GrpcTlsCertFile `json:"cert_file,omitempty,omitzero" yaml:"cert_file,omitempty" mapstructure:"cert_file,omitempty"` |
| 1090 |
|
| 1091 |
// Configure client transport security for the exporter's connection. |
| 1092 |
// Only applicable when .endpoint is provided without http or https scheme. |
| 1093 |
// Implementations may choose to ignore .insecure. |
| 1094 |
// If omitted or null, false is used. |
| 1095 |
// |
| 1096 |
Insecure GrpcTlsInsecure `json:"insecure,omitempty,omitzero" yaml:"insecure,omitempty" mapstructure:"insecure,omitempty"` |
| 1097 |
|
| 1098 |
// Configure mTLS private client key. |
| 1099 |
// Absolute path to client key file in PEM format. If set, .client_certificate |
| 1100 |
// must also be set. |
| 1101 |
// If omitted or null, mTLS is not used. |
| 1102 |
// |
| 1103 |
KeyFile GrpcTlsKeyFile `json:"key_file,omitempty,omitzero" yaml:"key_file,omitempty" mapstructure:"key_file,omitempty"` |
| 1104 |
} |
| 1105 |
|
| 1106 |
// Configure certificate used to verify a server's TLS credentials. |
| 1107 |
// Absolute path to certificate file in PEM format. |
| 1108 |
// If omitted or null, system default certificate verification is used for secure |
| 1109 |
// connections. |
| 1110 |
type GrpcTlsCaFile *string |
| 1111 |
|
| 1112 |
// Configure mTLS client certificate. |
| 1113 |
// Absolute path to client certificate file in PEM format. If set, .client_key must |
| 1114 |
// also be set. |
| 1115 |
// If omitted or null, mTLS is not used. |
| 1116 |
type GrpcTlsCertFile *string |
| 1117 |
|
| 1118 |
// Configure client transport security for the exporter's connection. |
| 1119 |
// Only applicable when .endpoint is provided without http or https scheme. |
| 1120 |
// Implementations may choose to ignore .insecure. |
| 1121 |
// If omitted or null, false is used. |
| 1122 |
type GrpcTlsInsecure *bool |
| 1123 |
|
| 1124 |
// Configure mTLS private client key. |
| 1125 |
// Absolute path to client key file in PEM format. If set, .client_certificate must |
| 1126 |
// also be set. |
| 1127 |
// If omitted or null, mTLS is not used. |
| 1128 |
type GrpcTlsKeyFile *string |
| 1129 |
|
| 1130 |
type HttpTls struct { |
| 1131 |
// Configure certificate used to verify a server's TLS credentials. |
| 1132 |
// Absolute path to certificate file in PEM format. |
| 1133 |
// If omitted or null, system default certificate verification is used for secure |
| 1134 |
// connections. |
| 1135 |
// |
| 1136 |
CaFile HttpTlsCaFile `json:"ca_file,omitempty,omitzero" yaml:"ca_file,omitempty" mapstructure:"ca_file,omitempty"` |
| 1137 |
|
| 1138 |
// Configure mTLS client certificate. |
| 1139 |
// Absolute path to client certificate file in PEM format. If set, .client_key |
| 1140 |
// must also be set. |
| 1141 |
// If omitted or null, mTLS is not used. |
| 1142 |
// |
| 1143 |
CertFile HttpTlsCertFile `json:"cert_file,omitempty,omitzero" yaml:"cert_file,omitempty" mapstructure:"cert_file,omitempty"` |
| 1144 |
|
| 1145 |
// Configure mTLS private client key. |
| 1146 |
// Absolute path to client key file in PEM format. If set, .client_certificate |
| 1147 |
// must also be set. |
| 1148 |
// If omitted or null, mTLS is not used. |
| 1149 |
// |
| 1150 |
KeyFile HttpTlsKeyFile `json:"key_file,omitempty,omitzero" yaml:"key_file,omitempty" mapstructure:"key_file,omitempty"` |
| 1151 |
} |
| 1152 |
|
| 1153 |
// Configure certificate used to verify a server's TLS credentials. |
| 1154 |
// Absolute path to certificate file in PEM format. |
| 1155 |
// If omitted or null, system default certificate verification is used for secure |
| 1156 |
// connections. |
| 1157 |
type HttpTlsCaFile *string |
| 1158 |
|
| 1159 |
// Configure mTLS client certificate. |
| 1160 |
// Absolute path to client certificate file in PEM format. If set, .client_key must |
| 1161 |
// also be set. |
| 1162 |
// If omitted or null, mTLS is not used. |
| 1163 |
type HttpTlsCertFile *string |
| 1164 |
|
| 1165 |
// Configure mTLS private client key. |
| 1166 |
// Absolute path to client key file in PEM format. If set, .client_certificate must |
| 1167 |
// also be set. |
| 1168 |
// If omitted or null, mTLS is not used. |
| 1169 |
type HttpTlsKeyFile *string |
| 1170 |
|
| 1171 |
type IncludeExclude struct { |
| 1172 |
// Configure list of value patterns to exclude. Applies after .included (i.e. |
| 1173 |
// excluded has higher priority than included). |
| 1174 |
// Values are evaluated to match as follows: |
| 1175 |
// * If the value exactly matches. |
| 1176 |
// * If the value matches the wildcard pattern, where '?' matches any single |
| 1177 |
// character and '*' matches any number of characters including none. |
| 1178 |
// If omitted, .included attributes are included. |
| 1179 |
// |
| 1180 |
Excluded []string `json:"excluded,omitempty,omitzero" yaml:"excluded,omitempty" mapstructure:"excluded,omitempty"` |
| 1181 |
|
| 1182 |
// Configure list of value patterns to include. |
| 1183 |
// Values are evaluated to match as follows: |
| 1184 |
// * If the value exactly matches. |
| 1185 |
// * If the value matches the wildcard pattern, where '?' matches any single |
| 1186 |
// character and '*' matches any number of characters including none. |
| 1187 |
// If omitted, all values are included. |
| 1188 |
// |
| 1189 |
Included []string `json:"included,omitempty,omitzero" yaml:"included,omitempty" mapstructure:"included,omitempty"` |
| 1190 |
} |
| 1191 |
|
| 1192 |
type InstrumentType string |
| 1193 |
|
| 1194 |
const InstrumentTypeCounter InstrumentType = "counter" |
| 1195 |
const InstrumentTypeGauge InstrumentType = "gauge" |
| 1196 |
const InstrumentTypeHistogram InstrumentType = "histogram" |
| 1197 |
const InstrumentTypeObservableCounter InstrumentType = "observable_counter" |
| 1198 |
const InstrumentTypeObservableGauge InstrumentType = "observable_gauge" |
| 1199 |
const InstrumentTypeObservableUpDownCounter InstrumentType = "observable_up_down_counter" |
| 1200 |
const InstrumentTypeUpDownCounter InstrumentType = "up_down_counter" |
| 1201 |
|
| 1202 |
type JaegerPropagator map[string]interface{} |
| 1203 |
|
| 1204 |
type LastValueAggregation map[string]interface{} |
| 1205 |
|
| 1206 |
type LogRecordExporter struct { |
| 1207 |
// Configure exporter to be console. |
| 1208 |
// If omitted, ignore. |
| 1209 |
// |
| 1210 |
Console ConsoleExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"` |
| 1211 |
|
| 1212 |
// Configure exporter to be OTLP with file transport. |
| 1213 |
// If omitted, ignore. |
| 1214 |
// |
| 1215 |
OTLPFileDevelopment *ExperimentalOTLPFileExporter `json:"otlp_file/development,omitempty,omitzero" yaml:"otlp_file/development,omitempty" mapstructure:"otlp_file/development,omitempty"` |
| 1216 |
|
| 1217 |
// Configure exporter to be OTLP with gRPC transport. |
| 1218 |
// If omitted, ignore. |
| 1219 |
// |
| 1220 |
OTLPGrpc *OTLPGrpcExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"` |
| 1221 |
|
| 1222 |
// Configure exporter to be OTLP with HTTP transport. |
| 1223 |
// If omitted, ignore. |
| 1224 |
// |
| 1225 |
OTLPHttp *OTLPHttpExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"` |
| 1226 |
|
| 1227 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1228 |
} |
| 1229 |
|
| 1230 |
type LogRecordLimits struct { |
| 1231 |
// Configure max attribute count. Overrides |
| 1232 |
// .attribute_limits.attribute_count_limit. |
| 1233 |
// Value must be non-negative. |
| 1234 |
// If omitted or null, 128 is used. |
| 1235 |
// |
| 1236 |
AttributeCountLimit LogRecordLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"` |
| 1237 |
|
| 1238 |
// Configure max attribute value size. Overrides |
| 1239 |
// .attribute_limits.attribute_value_length_limit. |
| 1240 |
// Value must be non-negative. |
| 1241 |
// If omitted or null, there is no limit. |
| 1242 |
// |
| 1243 |
AttributeValueLengthLimit LogRecordLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"` |
| 1244 |
} |
| 1245 |
|
| 1246 |
// Configure max attribute count. Overrides |
| 1247 |
// .attribute_limits.attribute_count_limit. |
| 1248 |
// Value must be non-negative. |
| 1249 |
// If omitted or null, 128 is used. |
| 1250 |
type LogRecordLimitsAttributeCountLimit *int |
| 1251 |
|
| 1252 |
// Configure max attribute value size. Overrides |
| 1253 |
// .attribute_limits.attribute_value_length_limit. |
| 1254 |
// Value must be non-negative. |
| 1255 |
// If omitted or null, there is no limit. |
| 1256 |
type LogRecordLimitsAttributeValueLengthLimit *int |
| 1257 |
|
| 1258 |
type LogRecordProcessor struct { |
| 1259 |
// Configure a batch log record processor. |
| 1260 |
// If omitted, ignore. |
| 1261 |
// |
| 1262 |
Batch *BatchLogRecordProcessor `json:"batch,omitempty,omitzero" yaml:"batch,omitempty" mapstructure:"batch,omitempty"` |
| 1263 |
|
| 1264 |
// Configure a simple log record processor. |
| 1265 |
// If omitted, ignore. |
| 1266 |
// |
| 1267 |
Simple *SimpleLogRecordProcessor `json:"simple,omitempty,omitzero" yaml:"simple,omitempty" mapstructure:"simple,omitempty"` |
| 1268 |
|
| 1269 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1270 |
} |
| 1271 |
|
| 1272 |
type LoggerProvider struct { |
| 1273 |
// Configure log record limits. See also attribute_limits. |
| 1274 |
// If omitted, default values as described in LogRecordLimits are used. |
| 1275 |
// |
| 1276 |
Limits *LogRecordLimits `json:"limits,omitempty,omitzero" yaml:"limits,omitempty" mapstructure:"limits,omitempty"` |
| 1277 |
|
| 1278 |
// Configure loggers. |
| 1279 |
// If omitted, all loggers use default values as described in |
| 1280 |
// ExperimentalLoggerConfig. |
| 1281 |
// |
| 1282 |
LoggerConfiguratorDevelopment *ExperimentalLoggerConfigurator `json:"logger_configurator/development,omitempty,omitzero" yaml:"logger_configurator/development,omitempty" mapstructure:"logger_configurator/development,omitempty"` |
| 1283 |
|
| 1284 |
// Configure log record processors. |
| 1285 |
// Property is required and must be non-null. |
| 1286 |
// |
| 1287 |
Processors []LogRecordProcessor `json:"processors" yaml:"processors" mapstructure:"processors"` |
| 1288 |
} |
| 1289 |
|
| 1290 |
type MeterProvider struct { |
| 1291 |
// Configure the exemplar filter. |
| 1292 |
// Values include: |
| 1293 |
// * always_off: ExemplarFilter which makes no measurements eligible for being an |
| 1294 |
// Exemplar. |
| 1295 |
// * always_on: ExemplarFilter which makes all measurements eligible for being an |
| 1296 |
// Exemplar. |
| 1297 |
// * trace_based: ExemplarFilter which makes measurements recorded in the context |
| 1298 |
// of a sampled parent span eligible for being an Exemplar. |
| 1299 |
// If omitted, trace_based is used. |
| 1300 |
// |
| 1301 |
ExemplarFilter *ExemplarFilter `json:"exemplar_filter,omitempty,omitzero" yaml:"exemplar_filter,omitempty" mapstructure:"exemplar_filter,omitempty"` |
| 1302 |
|
| 1303 |
// Configure meters. |
| 1304 |
// If omitted, all meters use default values as described in |
| 1305 |
// ExperimentalMeterConfig. |
| 1306 |
// |
| 1307 |
MeterConfiguratorDevelopment *ExperimentalMeterConfigurator `json:"meter_configurator/development,omitempty,omitzero" yaml:"meter_configurator/development,omitempty" mapstructure:"meter_configurator/development,omitempty"` |
| 1308 |
|
| 1309 |
// Configure metric readers. |
| 1310 |
// Property is required and must be non-null. |
| 1311 |
// |
| 1312 |
Readers []MetricReader `json:"readers" yaml:"readers" mapstructure:"readers"` |
| 1313 |
|
| 1314 |
// Configure views. |
| 1315 |
// Each view has a selector which determines the instrument(s) it applies to, and |
| 1316 |
// a configuration for the resulting stream(s). |
| 1317 |
// If omitted, no views are registered. |
| 1318 |
// |
| 1319 |
Views []View `json:"views,omitempty,omitzero" yaml:"views,omitempty" mapstructure:"views,omitempty"` |
| 1320 |
} |
| 1321 |
|
| 1322 |
type MetricProducer struct { |
| 1323 |
// Configure metric producer to be opencensus. |
| 1324 |
// If omitted, ignore. |
| 1325 |
// |
| 1326 |
Opencensus OpenCensusMetricProducer `json:"opencensus,omitempty,omitzero" yaml:"opencensus,omitempty" mapstructure:"opencensus,omitempty"` |
| 1327 |
|
| 1328 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1329 |
} |
| 1330 |
|
| 1331 |
type MetricReader struct { |
| 1332 |
// Configure a periodic metric reader. |
| 1333 |
// If omitted, ignore. |
| 1334 |
// |
| 1335 |
Periodic *PeriodicMetricReader `json:"periodic,omitempty,omitzero" yaml:"periodic,omitempty" mapstructure:"periodic,omitempty"` |
| 1336 |
|
| 1337 |
// Configure a pull based metric reader. |
| 1338 |
// If omitted, ignore. |
| 1339 |
// |
| 1340 |
Pull *PullMetricReader `json:"pull,omitempty,omitzero" yaml:"pull,omitempty" mapstructure:"pull,omitempty"` |
| 1341 |
} |
| 1342 |
|
| 1343 |
type NameStringValuePair struct { |
| 1344 |
// The name of the pair. |
| 1345 |
// Property is required and must be non-null. |
| 1346 |
// |
| 1347 |
Name string `json:"name" yaml:"name" mapstructure:"name"` |
| 1348 |
|
| 1349 |
// The value of the pair. |
| 1350 |
// Property must be present, but if null the behavior is dependent on usage |
| 1351 |
// context. |
| 1352 |
// |
| 1353 |
Value NameStringValuePairValue `json:"value" yaml:"value" mapstructure:"value"` |
| 1354 |
} |
| 1355 |
|
| 1356 |
// The value of the pair. |
| 1357 |
// Property must be present, but if null the behavior is dependent on usage |
| 1358 |
// context. |
| 1359 |
type NameStringValuePairValue *string |
| 1360 |
|
| 1361 |
type OTLPGrpcExporter struct { |
| 1362 |
// Configure compression. |
| 1363 |
// Known values include: gzip, none. Implementations may support other compression |
| 1364 |
// algorithms. |
| 1365 |
// If omitted or null, none is used. |
| 1366 |
// |
| 1367 |
Compression OTLPGrpcExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` |
| 1368 |
|
| 1369 |
// Configure endpoint. |
| 1370 |
// If omitted or null, http://localhost:4317 is used. |
| 1371 |
// |
| 1372 |
Endpoint OTLPGrpcExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` |
| 1373 |
|
| 1374 |
// Configure headers. Entries have higher priority than entries from |
| 1375 |
// .headers_list. |
| 1376 |
// If an entry's .value is null, the entry is ignored. |
| 1377 |
// If omitted, no headers are added. |
| 1378 |
// |
| 1379 |
Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` |
| 1380 |
|
| 1381 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1382 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1383 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1384 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1385 |
// for details. |
| 1386 |
// If omitted or null, no headers are added. |
| 1387 |
// |
| 1388 |
HeadersList OTLPGrpcExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` |
| 1389 |
|
| 1390 |
// Configure max time (in milliseconds) to wait for each export. |
| 1391 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1392 |
// If omitted or null, 10000 is used. |
| 1393 |
// |
| 1394 |
Timeout OTLPGrpcExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` |
| 1395 |
|
| 1396 |
// Configure TLS settings for the exporter. |
| 1397 |
// If omitted, system default TLS settings are used. |
| 1398 |
// |
| 1399 |
Tls *GrpcTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` |
| 1400 |
} |
| 1401 |
|
| 1402 |
// Configure compression. |
| 1403 |
// Known values include: gzip, none. Implementations may support other compression |
| 1404 |
// algorithms. |
| 1405 |
// If omitted or null, none is used. |
| 1406 |
type OTLPGrpcExporterCompression *string |
| 1407 |
|
| 1408 |
// Configure endpoint. |
| 1409 |
// If omitted or null, http://localhost:4317 is used. |
| 1410 |
type OTLPGrpcExporterEndpoint *string |
| 1411 |
|
| 1412 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1413 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1414 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1415 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1416 |
// for details. |
| 1417 |
// If omitted or null, no headers are added. |
| 1418 |
type OTLPGrpcExporterHeadersList *string |
| 1419 |
|
| 1420 |
// Configure max time (in milliseconds) to wait for each export. |
| 1421 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1422 |
// If omitted or null, 10000 is used. |
| 1423 |
type OTLPGrpcExporterTimeout *int |
| 1424 |
|
| 1425 |
type OTLPGrpcMetricExporter struct { |
| 1426 |
// Configure compression. |
| 1427 |
// Known values include: gzip, none. Implementations may support other compression |
| 1428 |
// algorithms. |
| 1429 |
// If omitted or null, none is used. |
| 1430 |
// |
| 1431 |
Compression OTLPGrpcMetricExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` |
| 1432 |
|
| 1433 |
// Configure default histogram aggregation. |
| 1434 |
// Values include: |
| 1435 |
// * base2_exponential_bucket_histogram: Use base2 exponential histogram as the |
| 1436 |
// default aggregation for histogram instruments. |
| 1437 |
// * explicit_bucket_histogram: Use explicit bucket histogram as the default |
| 1438 |
// aggregation for histogram instruments. |
| 1439 |
// If omitted, explicit_bucket_histogram is used. |
| 1440 |
// |
| 1441 |
DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` |
| 1442 |
|
| 1443 |
// Configure endpoint. |
| 1444 |
// If omitted or null, http://localhost:4317 is used. |
| 1445 |
// |
| 1446 |
Endpoint OTLPGrpcMetricExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` |
| 1447 |
|
| 1448 |
// Configure headers. Entries have higher priority than entries from |
| 1449 |
// .headers_list. |
| 1450 |
// If an entry's .value is null, the entry is ignored. |
| 1451 |
// If omitted, no headers are added. |
| 1452 |
// |
| 1453 |
Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` |
| 1454 |
|
| 1455 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1456 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1457 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1458 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1459 |
// for details. |
| 1460 |
// If omitted or null, no headers are added. |
| 1461 |
// |
| 1462 |
HeadersList OTLPGrpcMetricExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` |
| 1463 |
|
| 1464 |
// Configure temporality preference. |
| 1465 |
// Values include: |
| 1466 |
// * cumulative: Use cumulative aggregation temporality for all instrument types. |
| 1467 |
// * delta: Use delta aggregation for all instrument types except up down counter |
| 1468 |
// and asynchronous up down counter. |
| 1469 |
// * low_memory: Use delta aggregation temporality for counter and histogram |
| 1470 |
// instrument types. Use cumulative aggregation temporality for all other |
| 1471 |
// instrument types. |
| 1472 |
// If omitted, cumulative is used. |
| 1473 |
// |
| 1474 |
TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` |
| 1475 |
|
| 1476 |
// Configure max time (in milliseconds) to wait for each export. |
| 1477 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1478 |
// If omitted or null, 10000 is used. |
| 1479 |
// |
| 1480 |
Timeout OTLPGrpcMetricExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` |
| 1481 |
|
| 1482 |
// Configure TLS settings for the exporter. |
| 1483 |
// If omitted, system default TLS settings are used. |
| 1484 |
// |
| 1485 |
Tls *GrpcTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` |
| 1486 |
} |
| 1487 |
|
| 1488 |
// Configure compression. |
| 1489 |
// Known values include: gzip, none. Implementations may support other compression |
| 1490 |
// algorithms. |
| 1491 |
// If omitted or null, none is used. |
| 1492 |
type OTLPGrpcMetricExporterCompression *string |
| 1493 |
|
| 1494 |
// Configure endpoint. |
| 1495 |
// If omitted or null, http://localhost:4317 is used. |
| 1496 |
type OTLPGrpcMetricExporterEndpoint *string |
| 1497 |
|
| 1498 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1499 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1500 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1501 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1502 |
// for details. |
| 1503 |
// If omitted or null, no headers are added. |
| 1504 |
type OTLPGrpcMetricExporterHeadersList *string |
| 1505 |
|
| 1506 |
// Configure max time (in milliseconds) to wait for each export. |
| 1507 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1508 |
// If omitted or null, 10000 is used. |
| 1509 |
type OTLPGrpcMetricExporterTimeout *int |
| 1510 |
|
| 1511 |
type OTLPHttpEncoding string |
| 1512 |
|
| 1513 |
const OTLPHttpEncodingJson OTLPHttpEncoding = "json" |
| 1514 |
const OTLPHttpEncodingProtobuf OTLPHttpEncoding = "protobuf" |
| 1515 |
|
| 1516 |
type OTLPHttpExporter struct { |
| 1517 |
// Configure compression. |
| 1518 |
// Known values include: gzip, none. Implementations may support other compression |
| 1519 |
// algorithms. |
| 1520 |
// If omitted or null, none is used. |
| 1521 |
// |
| 1522 |
Compression OTLPHttpExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` |
| 1523 |
|
| 1524 |
// Configure the encoding used for messages. |
| 1525 |
// Implementations may not support json. |
| 1526 |
// Values include: |
| 1527 |
// * json: Protobuf JSON encoding. |
| 1528 |
// * protobuf: Protobuf binary encoding. |
| 1529 |
// If omitted, protobuf is used. |
| 1530 |
// |
| 1531 |
Encoding *OTLPHttpEncoding `json:"encoding,omitempty,omitzero" yaml:"encoding,omitempty" mapstructure:"encoding,omitempty"` |
| 1532 |
|
| 1533 |
// Configure endpoint, including the signal specific path. |
| 1534 |
// If omitted or null, the http://localhost:4318/v1/{signal} (where signal is |
| 1535 |
// 'traces', 'logs', or 'metrics') is used. |
| 1536 |
// |
| 1537 |
Endpoint OTLPHttpExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` |
| 1538 |
|
| 1539 |
// Configure headers. Entries have higher priority than entries from |
| 1540 |
// .headers_list. |
| 1541 |
// If an entry's .value is null, the entry is ignored. |
| 1542 |
// If omitted, no headers are added. |
| 1543 |
// |
| 1544 |
Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` |
| 1545 |
|
| 1546 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1547 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1548 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1549 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1550 |
// for details. |
| 1551 |
// If omitted or null, no headers are added. |
| 1552 |
// |
| 1553 |
HeadersList OTLPHttpExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` |
| 1554 |
|
| 1555 |
// Configure max time (in milliseconds) to wait for each export. |
| 1556 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1557 |
// If omitted or null, 10000 is used. |
| 1558 |
// |
| 1559 |
Timeout OTLPHttpExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` |
| 1560 |
|
| 1561 |
// Configure TLS settings for the exporter. |
| 1562 |
// If omitted, system default TLS settings are used. |
| 1563 |
// |
| 1564 |
Tls *HttpTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` |
| 1565 |
} |
| 1566 |
|
| 1567 |
// Configure compression. |
| 1568 |
// Known values include: gzip, none. Implementations may support other compression |
| 1569 |
// algorithms. |
| 1570 |
// If omitted or null, none is used. |
| 1571 |
type OTLPHttpExporterCompression *string |
| 1572 |
|
| 1573 |
// Configure endpoint, including the signal specific path. |
| 1574 |
// If omitted or null, the http://localhost:4318/v1/{signal} (where signal is |
| 1575 |
// 'traces', 'logs', or 'metrics') is used. |
| 1576 |
type OTLPHttpExporterEndpoint *string |
| 1577 |
|
| 1578 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1579 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1580 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1581 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1582 |
// for details. |
| 1583 |
// If omitted or null, no headers are added. |
| 1584 |
type OTLPHttpExporterHeadersList *string |
| 1585 |
|
| 1586 |
// Configure max time (in milliseconds) to wait for each export. |
| 1587 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1588 |
// If omitted or null, 10000 is used. |
| 1589 |
type OTLPHttpExporterTimeout *int |
| 1590 |
|
| 1591 |
type OTLPHttpMetricExporter struct { |
| 1592 |
// Configure compression. |
| 1593 |
// Known values include: gzip, none. Implementations may support other compression |
| 1594 |
// algorithms. |
| 1595 |
// If omitted or null, none is used. |
| 1596 |
// |
| 1597 |
Compression OTLPHttpMetricExporterCompression `json:"compression,omitempty,omitzero" yaml:"compression,omitempty" mapstructure:"compression,omitempty"` |
| 1598 |
|
| 1599 |
// Configure default histogram aggregation. |
| 1600 |
// Values include: |
| 1601 |
// * base2_exponential_bucket_histogram: Use base2 exponential histogram as the |
| 1602 |
// default aggregation for histogram instruments. |
| 1603 |
// * explicit_bucket_histogram: Use explicit bucket histogram as the default |
| 1604 |
// aggregation for histogram instruments. |
| 1605 |
// If omitted, explicit_bucket_histogram is used. |
| 1606 |
// |
| 1607 |
DefaultHistogramAggregation *ExporterDefaultHistogramAggregation `json:"default_histogram_aggregation,omitempty,omitzero" yaml:"default_histogram_aggregation,omitempty" mapstructure:"default_histogram_aggregation,omitempty"` |
| 1608 |
|
| 1609 |
// Configure the encoding used for messages. |
| 1610 |
// Implementations may not support json. |
| 1611 |
// Values include: |
| 1612 |
// * json: Protobuf JSON encoding. |
| 1613 |
// * protobuf: Protobuf binary encoding. |
| 1614 |
// If omitted, protobuf is used. |
| 1615 |
// |
| 1616 |
Encoding *OTLPHttpEncoding `json:"encoding,omitempty,omitzero" yaml:"encoding,omitempty" mapstructure:"encoding,omitempty"` |
| 1617 |
|
| 1618 |
// Configure endpoint. |
| 1619 |
// If omitted or null, http://localhost:4318/v1/metrics is used. |
| 1620 |
// |
| 1621 |
Endpoint OTLPHttpMetricExporterEndpoint `json:"endpoint,omitempty,omitzero" yaml:"endpoint,omitempty" mapstructure:"endpoint,omitempty"` |
| 1622 |
|
| 1623 |
// Configure headers. Entries have higher priority than entries from |
| 1624 |
// .headers_list. |
| 1625 |
// If an entry's .value is null, the entry is ignored. |
| 1626 |
// If omitted, no headers are added. |
| 1627 |
// |
| 1628 |
Headers []NameStringValuePair `json:"headers,omitempty,omitzero" yaml:"headers,omitempty" mapstructure:"headers,omitempty"` |
| 1629 |
|
| 1630 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1631 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1632 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1633 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1634 |
// for details. |
| 1635 |
// If omitted or null, no headers are added. |
| 1636 |
// |
| 1637 |
HeadersList OTLPHttpMetricExporterHeadersList `json:"headers_list,omitempty,omitzero" yaml:"headers_list,omitempty" mapstructure:"headers_list,omitempty"` |
| 1638 |
|
| 1639 |
// Configure temporality preference. |
| 1640 |
// Values include: |
| 1641 |
// * cumulative: Use cumulative aggregation temporality for all instrument types. |
| 1642 |
// * delta: Use delta aggregation for all instrument types except up down counter |
| 1643 |
// and asynchronous up down counter. |
| 1644 |
// * low_memory: Use delta aggregation temporality for counter and histogram |
| 1645 |
// instrument types. Use cumulative aggregation temporality for all other |
| 1646 |
// instrument types. |
| 1647 |
// If omitted, cumulative is used. |
| 1648 |
// |
| 1649 |
TemporalityPreference *ExporterTemporalityPreference `json:"temporality_preference,omitempty,omitzero" yaml:"temporality_preference,omitempty" mapstructure:"temporality_preference,omitempty"` |
| 1650 |
|
| 1651 |
// Configure max time (in milliseconds) to wait for each export. |
| 1652 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1653 |
// If omitted or null, 10000 is used. |
| 1654 |
// |
| 1655 |
Timeout OTLPHttpMetricExporterTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` |
| 1656 |
|
| 1657 |
// Configure TLS settings for the exporter. |
| 1658 |
// If omitted, system default TLS settings are used. |
| 1659 |
// |
| 1660 |
Tls *HttpTls `json:"tls,omitempty,omitzero" yaml:"tls,omitempty" mapstructure:"tls,omitempty"` |
| 1661 |
} |
| 1662 |
|
| 1663 |
// Configure compression. |
| 1664 |
// Known values include: gzip, none. Implementations may support other compression |
| 1665 |
// algorithms. |
| 1666 |
// If omitted or null, none is used. |
| 1667 |
type OTLPHttpMetricExporterCompression *string |
| 1668 |
|
| 1669 |
// Configure endpoint. |
| 1670 |
// If omitted or null, http://localhost:4318/v1/metrics is used. |
| 1671 |
type OTLPHttpMetricExporterEndpoint *string |
| 1672 |
|
| 1673 |
// Configure headers. Entries have lower priority than entries from .headers. |
| 1674 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1675 |
// OTEL_EXPORTER_OTLP_HEADERS. See |
| 1676 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options |
| 1677 |
// for details. |
| 1678 |
// If omitted or null, no headers are added. |
| 1679 |
type OTLPHttpMetricExporterHeadersList *string |
| 1680 |
|
| 1681 |
// Configure max time (in milliseconds) to wait for each export. |
| 1682 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1683 |
// If omitted or null, 10000 is used. |
| 1684 |
type OTLPHttpMetricExporterTimeout *int |
| 1685 |
|
| 1686 |
type OpenCensusMetricProducer map[string]interface{} |
| 1687 |
|
| 1688 |
type OpenTelemetryConfiguration struct { |
| 1689 |
// Configure general attribute limits. See also tracer_provider.limits, |
| 1690 |
// logger_provider.limits. |
| 1691 |
// If omitted, default values as described in AttributeLimits are used. |
| 1692 |
// |
| 1693 |
AttributeLimits *AttributeLimits `json:"attribute_limits,omitempty,omitzero" yaml:"attribute_limits,omitempty" mapstructure:"attribute_limits,omitempty"` |
| 1694 |
|
| 1695 |
// Configure if the SDK is disabled or not. |
| 1696 |
// If omitted or null, false is used. |
| 1697 |
// |
| 1698 |
Disabled OpenTelemetryConfigurationDisabled `json:"disabled,omitempty,omitzero" yaml:"disabled,omitempty" mapstructure:"disabled,omitempty"` |
| 1699 |
|
| 1700 |
// Defines configuration parameters specific to a particular OpenTelemetry |
| 1701 |
// distribution or vendor. |
| 1702 |
// This section provides a standardized location for distribution-specific |
| 1703 |
// settings |
| 1704 |
// that are not part of the OpenTelemetry configuration model. |
| 1705 |
// It allows vendors to expose their own extensions and general configuration |
| 1706 |
// options. |
| 1707 |
// If omitted, distribution defaults are used. |
| 1708 |
// |
| 1709 |
Distribution Distribution `json:"distribution,omitempty,omitzero" yaml:"distribution,omitempty" mapstructure:"distribution,omitempty"` |
| 1710 |
|
| 1711 |
// The file format version. |
| 1712 |
// Represented as a string including the semver major, minor version numbers (and |
| 1713 |
// optionally the meta tag). For example: "0.4", "1.0-rc.2", "1.0" (after stable |
| 1714 |
// release). |
| 1715 |
// See |
| 1716 |
// https://github.com/open-telemetry/opentelemetry-configuration/blob/main/VERSIONING.md |
| 1717 |
// for more details. |
| 1718 |
// The yaml format is documented at |
| 1719 |
// https://github.com/open-telemetry/opentelemetry-configuration/tree/main/schema |
| 1720 |
// Property is required and must be non-null. |
| 1721 |
// |
| 1722 |
FileFormat string `json:"file_format" yaml:"file_format" mapstructure:"file_format"` |
| 1723 |
|
| 1724 |
// Configure instrumentation. |
| 1725 |
// If omitted, instrumentation defaults are used. |
| 1726 |
// |
| 1727 |
InstrumentationDevelopment *ExperimentalInstrumentation `json:"instrumentation/development,omitempty,omitzero" yaml:"instrumentation/development,omitempty" mapstructure:"instrumentation/development,omitempty"` |
| 1728 |
|
| 1729 |
// Configure the log level of the internal logger used by the SDK. |
| 1730 |
// Values include: |
| 1731 |
// * debug: debug, severity number 5. |
| 1732 |
// * debug2: debug2, severity number 6. |
| 1733 |
// * debug3: debug3, severity number 7. |
| 1734 |
// * debug4: debug4, severity number 8. |
| 1735 |
// * error: error, severity number 17. |
| 1736 |
// * error2: error2, severity number 18. |
| 1737 |
// * error3: error3, severity number 19. |
| 1738 |
// * error4: error4, severity number 20. |
| 1739 |
// * fatal: fatal, severity number 21. |
| 1740 |
// * fatal2: fatal2, severity number 22. |
| 1741 |
// * fatal3: fatal3, severity number 23. |
| 1742 |
// * fatal4: fatal4, severity number 24. |
| 1743 |
// * info: info, severity number 9. |
| 1744 |
// * info2: info2, severity number 10. |
| 1745 |
// * info3: info3, severity number 11. |
| 1746 |
// * info4: info4, severity number 12. |
| 1747 |
// * trace: trace, severity number 1. |
| 1748 |
// * trace2: trace2, severity number 2. |
| 1749 |
// * trace3: trace3, severity number 3. |
| 1750 |
// * trace4: trace4, severity number 4. |
| 1751 |
// * warn: warn, severity number 13. |
| 1752 |
// * warn2: warn2, severity number 14. |
| 1753 |
// * warn3: warn3, severity number 15. |
| 1754 |
// * warn4: warn4, severity number 16. |
| 1755 |
// If omitted, INFO is used. |
| 1756 |
// |
| 1757 |
LogLevel *SeverityNumber `json:"log_level,omitempty,omitzero" yaml:"log_level,omitempty" mapstructure:"log_level,omitempty"` |
| 1758 |
|
| 1759 |
// Configure logger provider. |
| 1760 |
// If omitted, a noop logger provider is used. |
| 1761 |
// |
| 1762 |
LoggerProvider *LoggerProvider `json:"logger_provider,omitempty,omitzero" yaml:"logger_provider,omitempty" mapstructure:"logger_provider,omitempty"` |
| 1763 |
|
| 1764 |
// Configure meter provider. |
| 1765 |
// If omitted, a noop meter provider is used. |
| 1766 |
// |
| 1767 |
MeterProvider *MeterProvider `json:"meter_provider,omitempty,omitzero" yaml:"meter_provider,omitempty" mapstructure:"meter_provider,omitempty"` |
| 1768 |
|
| 1769 |
// Configure text map context propagators. |
| 1770 |
// If omitted, a noop propagator is used. |
| 1771 |
// |
| 1772 |
Propagator *Propagator `json:"propagator,omitempty,omitzero" yaml:"propagator,omitempty" mapstructure:"propagator,omitempty"` |
| 1773 |
|
| 1774 |
// Configure resource for all signals. |
| 1775 |
// If omitted, the default resource is used. |
| 1776 |
// |
| 1777 |
Resource *Resource `json:"resource,omitempty,omitzero" yaml:"resource,omitempty" mapstructure:"resource,omitempty"` |
| 1778 |
|
| 1779 |
// Configure tracer provider. |
| 1780 |
// If omitted, a noop tracer provider is used. |
| 1781 |
// |
| 1782 |
TracerProvider *TracerProvider `json:"tracer_provider,omitempty,omitzero" yaml:"tracer_provider,omitempty" mapstructure:"tracer_provider,omitempty"` |
| 1783 |
|
| 1784 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1785 |
} |
| 1786 |
|
| 1787 |
// Configure if the SDK is disabled or not. |
| 1788 |
// If omitted or null, false is used. |
| 1789 |
type OpenTelemetryConfigurationDisabled *bool |
| 1790 |
|
| 1791 |
type OpenTracingPropagator map[string]interface{} |
| 1792 |
|
| 1793 |
type ParentBasedSampler struct { |
| 1794 |
// Configure local_parent_not_sampled sampler. |
| 1795 |
// If omitted, always_off is used. |
| 1796 |
// |
| 1797 |
LocalParentNotSampled *Sampler `json:"local_parent_not_sampled,omitempty,omitzero" yaml:"local_parent_not_sampled,omitempty" mapstructure:"local_parent_not_sampled,omitempty"` |
| 1798 |
|
| 1799 |
// Configure local_parent_sampled sampler. |
| 1800 |
// If omitted, always_on is used. |
| 1801 |
// |
| 1802 |
LocalParentSampled *Sampler `json:"local_parent_sampled,omitempty,omitzero" yaml:"local_parent_sampled,omitempty" mapstructure:"local_parent_sampled,omitempty"` |
| 1803 |
|
| 1804 |
// Configure remote_parent_not_sampled sampler. |
| 1805 |
// If omitted, always_off is used. |
| 1806 |
// |
| 1807 |
RemoteParentNotSampled *Sampler `json:"remote_parent_not_sampled,omitempty,omitzero" yaml:"remote_parent_not_sampled,omitempty" mapstructure:"remote_parent_not_sampled,omitempty"` |
| 1808 |
|
| 1809 |
// Configure remote_parent_sampled sampler. |
| 1810 |
// If omitted, always_on is used. |
| 1811 |
// |
| 1812 |
RemoteParentSampled *Sampler `json:"remote_parent_sampled,omitempty,omitzero" yaml:"remote_parent_sampled,omitempty" mapstructure:"remote_parent_sampled,omitempty"` |
| 1813 |
|
| 1814 |
// Configure root sampler. |
| 1815 |
// If omitted, always_on is used. |
| 1816 |
// |
| 1817 |
Root *Sampler `json:"root,omitempty,omitzero" yaml:"root,omitempty" mapstructure:"root,omitempty"` |
| 1818 |
} |
| 1819 |
|
| 1820 |
type PeriodicMetricReader struct { |
| 1821 |
// Configure cardinality limits. |
| 1822 |
// If omitted, default values as described in CardinalityLimits are used. |
| 1823 |
// |
| 1824 |
CardinalityLimits *CardinalityLimits `json:"cardinality_limits,omitempty,omitzero" yaml:"cardinality_limits,omitempty" mapstructure:"cardinality_limits,omitempty"` |
| 1825 |
|
| 1826 |
// Configure exporter. |
| 1827 |
// Property is required and must be non-null. |
| 1828 |
// |
| 1829 |
Exporter PushMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` |
| 1830 |
|
| 1831 |
// Configure delay interval (in milliseconds) between start of two consecutive |
| 1832 |
// exports. |
| 1833 |
// Value must be non-negative. |
| 1834 |
// If omitted or null, 60000 is used. |
| 1835 |
// |
| 1836 |
Interval PeriodicMetricReaderInterval `json:"interval,omitempty,omitzero" yaml:"interval,omitempty" mapstructure:"interval,omitempty"` |
| 1837 |
|
| 1838 |
// Configure metric producers. |
| 1839 |
// If omitted, no metric producers are added. |
| 1840 |
// |
| 1841 |
Producers []MetricProducer `json:"producers,omitempty,omitzero" yaml:"producers,omitempty" mapstructure:"producers,omitempty"` |
| 1842 |
|
| 1843 |
// Configure maximum allowed time (in milliseconds) to export data. |
| 1844 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1845 |
// If omitted or null, 30000 is used. |
| 1846 |
// |
| 1847 |
Timeout PeriodicMetricReaderTimeout `json:"timeout,omitempty,omitzero" yaml:"timeout,omitempty" mapstructure:"timeout,omitempty"` |
| 1848 |
} |
| 1849 |
|
| 1850 |
// Configure delay interval (in milliseconds) between start of two consecutive |
| 1851 |
// exports. |
| 1852 |
// Value must be non-negative. |
| 1853 |
// If omitted or null, 60000 is used. |
| 1854 |
type PeriodicMetricReaderInterval *int |
| 1855 |
|
| 1856 |
// Configure maximum allowed time (in milliseconds) to export data. |
| 1857 |
// Value must be non-negative. A value of 0 indicates no limit (infinity). |
| 1858 |
// If omitted or null, 30000 is used. |
| 1859 |
type PeriodicMetricReaderTimeout *int |
| 1860 |
|
| 1861 |
type Propagator struct { |
| 1862 |
// Configure the propagators in the composite text map propagator. Entries from |
| 1863 |
// .composite_list are appended to the list here with duplicates filtered out. |
| 1864 |
// Built-in propagator keys include: tracecontext, baggage, b3, b3multi, jaeger, |
| 1865 |
// ottrace. Known third party keys include: xray. |
| 1866 |
// If omitted, and .composite_list is omitted or null, a noop propagator is used. |
| 1867 |
// |
| 1868 |
Composite []TextMapPropagator `json:"composite,omitempty,omitzero" yaml:"composite,omitempty" mapstructure:"composite,omitempty"` |
| 1869 |
|
| 1870 |
// Configure the propagators in the composite text map propagator. Entries are |
| 1871 |
// appended to .composite with duplicates filtered out. |
| 1872 |
// The value is a comma separated list of propagator identifiers matching the |
| 1873 |
// format of OTEL_PROPAGATORS. See |
| 1874 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration |
| 1875 |
// for details. |
| 1876 |
// Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi, |
| 1877 |
// jaeger, ottrace. Known third party identifiers include: xray. |
| 1878 |
// If omitted or null, and .composite is omitted or null, a noop propagator is |
| 1879 |
// used. |
| 1880 |
// |
| 1881 |
CompositeList PropagatorCompositeList `json:"composite_list,omitempty,omitzero" yaml:"composite_list,omitempty" mapstructure:"composite_list,omitempty"` |
| 1882 |
} |
| 1883 |
|
| 1884 |
// Configure the propagators in the composite text map propagator. Entries are |
| 1885 |
// appended to .composite with duplicates filtered out. |
| 1886 |
// The value is a comma separated list of propagator identifiers matching the |
| 1887 |
// format of OTEL_PROPAGATORS. See |
| 1888 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration |
| 1889 |
// for details. |
| 1890 |
// Built-in propagator identifiers include: tracecontext, baggage, b3, b3multi, |
| 1891 |
// jaeger, ottrace. Known third party identifiers include: xray. |
| 1892 |
// If omitted or null, and .composite is omitted or null, a noop propagator is |
| 1893 |
// used. |
| 1894 |
type PropagatorCompositeList *string |
| 1895 |
|
| 1896 |
type PullMetricExporter struct { |
| 1897 |
// Configure exporter to be prometheus. |
| 1898 |
// If omitted, ignore. |
| 1899 |
// |
| 1900 |
PrometheusDevelopment *ExperimentalPrometheusMetricExporter `json:"prometheus/development,omitempty,omitzero" yaml:"prometheus/development,omitempty" mapstructure:"prometheus/development,omitempty"` |
| 1901 |
|
| 1902 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1903 |
} |
| 1904 |
|
| 1905 |
type PullMetricReader struct { |
| 1906 |
// Configure cardinality limits. |
| 1907 |
// If omitted, default values as described in CardinalityLimits are used. |
| 1908 |
// |
| 1909 |
CardinalityLimits *CardinalityLimits `json:"cardinality_limits,omitempty,omitzero" yaml:"cardinality_limits,omitempty" mapstructure:"cardinality_limits,omitempty"` |
| 1910 |
|
| 1911 |
// Configure exporter. |
| 1912 |
// Property is required and must be non-null. |
| 1913 |
// |
| 1914 |
Exporter PullMetricExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` |
| 1915 |
|
| 1916 |
// Configure metric producers. |
| 1917 |
// If omitted, no metric producers are added. |
| 1918 |
// |
| 1919 |
Producers []MetricProducer `json:"producers,omitempty,omitzero" yaml:"producers,omitempty" mapstructure:"producers,omitempty"` |
| 1920 |
} |
| 1921 |
|
| 1922 |
type PushMetricExporter struct { |
| 1923 |
// Configure exporter to be console. |
| 1924 |
// If omitted, ignore. |
| 1925 |
// |
| 1926 |
Console *ConsoleMetricExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"` |
| 1927 |
|
| 1928 |
// Configure exporter to be OTLP with file transport. |
| 1929 |
// If omitted, ignore. |
| 1930 |
// |
| 1931 |
OTLPFileDevelopment *ExperimentalOTLPFileMetricExporter `json:"otlp_file/development,omitempty,omitzero" yaml:"otlp_file/development,omitempty" mapstructure:"otlp_file/development,omitempty"` |
| 1932 |
|
| 1933 |
// Configure exporter to be OTLP with gRPC transport. |
| 1934 |
// If omitted, ignore. |
| 1935 |
// |
| 1936 |
OTLPGrpc *OTLPGrpcMetricExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"` |
| 1937 |
|
| 1938 |
// Configure exporter to be OTLP with HTTP transport. |
| 1939 |
// If omitted, ignore. |
| 1940 |
// |
| 1941 |
OTLPHttp *OTLPHttpMetricExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"` |
| 1942 |
|
| 1943 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 1944 |
} |
| 1945 |
|
| 1946 |
type Resource struct { |
| 1947 |
// Configure resource attributes. Entries have higher priority than entries from |
| 1948 |
// .resource.attributes_list. |
| 1949 |
// If omitted, no resource attributes are added. |
| 1950 |
// |
| 1951 |
Attributes []AttributeNameValue `json:"attributes,omitempty,omitzero" yaml:"attributes,omitempty" mapstructure:"attributes,omitempty"` |
| 1952 |
|
| 1953 |
// Configure resource attributes. Entries have lower priority than entries from |
| 1954 |
// .resource.attributes. |
| 1955 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1956 |
// OTEL_RESOURCE_ATTRIBUTES. See |
| 1957 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration |
| 1958 |
// for details. |
| 1959 |
// If omitted or null, no resource attributes are added. |
| 1960 |
// |
| 1961 |
AttributesList ResourceAttributesList `json:"attributes_list,omitempty,omitzero" yaml:"attributes_list,omitempty" mapstructure:"attributes_list,omitempty"` |
| 1962 |
|
| 1963 |
// Configure resource detection. |
| 1964 |
// If omitted, resource detection is disabled. |
| 1965 |
// |
| 1966 |
DetectionDevelopment *ExperimentalResourceDetection `json:"detection/development,omitempty,omitzero" yaml:"detection/development,omitempty" mapstructure:"detection/development,omitempty"` |
| 1967 |
|
| 1968 |
// Configure resource schema URL. |
| 1969 |
// If omitted or null, no schema URL is used. |
| 1970 |
// |
| 1971 |
SchemaUrl ResourceSchemaUrl `json:"schema_url,omitempty,omitzero" yaml:"schema_url,omitempty" mapstructure:"schema_url,omitempty"` |
| 1972 |
} |
| 1973 |
|
| 1974 |
// Configure resource attributes. Entries have lower priority than entries from |
| 1975 |
// .resource.attributes. |
| 1976 |
// The value is a list of comma separated key-value pairs matching the format of |
| 1977 |
// OTEL_RESOURCE_ATTRIBUTES. See |
| 1978 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/configuration/sdk-environment-variables.md#general-sdk-configuration |
| 1979 |
// for details. |
| 1980 |
// If omitted or null, no resource attributes are added. |
| 1981 |
type ResourceAttributesList *string |
| 1982 |
|
| 1983 |
// Configure resource schema URL. |
| 1984 |
// If omitted or null, no schema URL is used. |
| 1985 |
type ResourceSchemaUrl *string |
| 1986 |
|
| 1987 |
type Sampler struct { |
| 1988 |
// Configure sampler to be always_off. |
| 1989 |
// If omitted, ignore. |
| 1990 |
// |
| 1991 |
AlwaysOff AlwaysOffSampler `json:"always_off,omitempty,omitzero" yaml:"always_off,omitempty" mapstructure:"always_off,omitempty"` |
| 1992 |
|
| 1993 |
// Configure sampler to be always_on. |
| 1994 |
// If omitted, ignore. |
| 1995 |
// |
| 1996 |
AlwaysOn AlwaysOnSampler `json:"always_on,omitempty,omitzero" yaml:"always_on,omitempty" mapstructure:"always_on,omitempty"` |
| 1997 |
|
| 1998 |
// Configure sampler to be composite. |
| 1999 |
// If omitted, ignore. |
| 2000 |
// |
| 2001 |
CompositeDevelopment *ExperimentalComposableSampler `json:"composite/development,omitempty,omitzero" yaml:"composite/development,omitempty" mapstructure:"composite/development,omitempty"` |
| 2002 |
|
| 2003 |
// Configure sampler to be jaeger_remote. |
| 2004 |
// If omitted, ignore. |
| 2005 |
// |
| 2006 |
JaegerRemoteDevelopment *ExperimentalJaegerRemoteSampler `json:"jaeger_remote/development,omitempty,omitzero" yaml:"jaeger_remote/development,omitempty" mapstructure:"jaeger_remote/development,omitempty"` |
| 2007 |
|
| 2008 |
// Configure sampler to be parent_based. |
| 2009 |
// If omitted, ignore. |
| 2010 |
// |
| 2011 |
ParentBased *ParentBasedSampler `json:"parent_based,omitempty,omitzero" yaml:"parent_based,omitempty" mapstructure:"parent_based,omitempty"` |
| 2012 |
|
| 2013 |
// Configure sampler to be probability. |
| 2014 |
// If omitted, ignore. |
| 2015 |
// |
| 2016 |
ProbabilityDevelopment *ExperimentalProbabilitySampler `json:"probability/development,omitempty,omitzero" yaml:"probability/development,omitempty" mapstructure:"probability/development,omitempty"` |
| 2017 |
|
| 2018 |
// Configure sampler to be trace_id_ratio_based. |
| 2019 |
// If omitted, ignore. |
| 2020 |
// |
| 2021 |
TraceIDRatioBased *TraceIDRatioBasedSampler `json:"trace_id_ratio_based,omitempty,omitzero" yaml:"trace_id_ratio_based,omitempty" mapstructure:"trace_id_ratio_based,omitempty"` |
| 2022 |
|
| 2023 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 2024 |
} |
| 2025 |
|
| 2026 |
type SeverityNumber string |
| 2027 |
|
| 2028 |
const SeverityNumberDebug SeverityNumber = "debug" |
| 2029 |
const SeverityNumberDebug2 SeverityNumber = "debug2" |
| 2030 |
const SeverityNumberDebug3 SeverityNumber = "debug3" |
| 2031 |
const SeverityNumberDebug4 SeverityNumber = "debug4" |
| 2032 |
const SeverityNumberError SeverityNumber = "error" |
| 2033 |
const SeverityNumberError2 SeverityNumber = "error2" |
| 2034 |
const SeverityNumberError3 SeverityNumber = "error3" |
| 2035 |
const SeverityNumberError4 SeverityNumber = "error4" |
| 2036 |
const SeverityNumberFatal SeverityNumber = "fatal" |
| 2037 |
const SeverityNumberFatal2 SeverityNumber = "fatal2" |
| 2038 |
const SeverityNumberFatal3 SeverityNumber = "fatal3" |
| 2039 |
const SeverityNumberFatal4 SeverityNumber = "fatal4" |
| 2040 |
const SeverityNumberInfo SeverityNumber = "info" |
| 2041 |
const SeverityNumberInfo2 SeverityNumber = "info2" |
| 2042 |
const SeverityNumberInfo3 SeverityNumber = "info3" |
| 2043 |
const SeverityNumberInfo4 SeverityNumber = "info4" |
| 2044 |
const SeverityNumberTrace SeverityNumber = "trace" |
| 2045 |
const SeverityNumberTrace2 SeverityNumber = "trace2" |
| 2046 |
const SeverityNumberTrace3 SeverityNumber = "trace3" |
| 2047 |
const SeverityNumberTrace4 SeverityNumber = "trace4" |
| 2048 |
const SeverityNumberWarn SeverityNumber = "warn" |
| 2049 |
const SeverityNumberWarn2 SeverityNumber = "warn2" |
| 2050 |
const SeverityNumberWarn3 SeverityNumber = "warn3" |
| 2051 |
const SeverityNumberWarn4 SeverityNumber = "warn4" |
| 2052 |
|
| 2053 |
type SimpleLogRecordProcessor struct { |
| 2054 |
// Configure exporter. |
| 2055 |
// Property is required and must be non-null. |
| 2056 |
// |
| 2057 |
Exporter LogRecordExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` |
| 2058 |
} |
| 2059 |
|
| 2060 |
type SimpleSpanProcessor struct { |
| 2061 |
// Configure exporter. |
| 2062 |
// Property is required and must be non-null. |
| 2063 |
// |
| 2064 |
Exporter SpanExporter `json:"exporter" yaml:"exporter" mapstructure:"exporter"` |
| 2065 |
} |
| 2066 |
|
| 2067 |
type SpanExporter struct { |
| 2068 |
// Configure exporter to be console. |
| 2069 |
// If omitted, ignore. |
| 2070 |
// |
| 2071 |
Console ConsoleExporter `json:"console,omitempty,omitzero" yaml:"console,omitempty" mapstructure:"console,omitempty"` |
| 2072 |
|
| 2073 |
// Configure exporter to be OTLP with file transport. |
| 2074 |
// If omitted, ignore. |
| 2075 |
// |
| 2076 |
OTLPFileDevelopment *ExperimentalOTLPFileExporter `json:"otlp_file/development,omitempty,omitzero" yaml:"otlp_file/development,omitempty" mapstructure:"otlp_file/development,omitempty"` |
| 2077 |
|
| 2078 |
// Configure exporter to be OTLP with gRPC transport. |
| 2079 |
// If omitted, ignore. |
| 2080 |
// |
| 2081 |
OTLPGrpc *OTLPGrpcExporter `json:"otlp_grpc,omitempty,omitzero" yaml:"otlp_grpc,omitempty" mapstructure:"otlp_grpc,omitempty"` |
| 2082 |
|
| 2083 |
// Configure exporter to be OTLP with HTTP transport. |
| 2084 |
// If omitted, ignore. |
| 2085 |
// |
| 2086 |
OTLPHttp *OTLPHttpExporter `json:"otlp_http,omitempty,omitzero" yaml:"otlp_http,omitempty" mapstructure:"otlp_http,omitempty"` |
| 2087 |
|
| 2088 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 2089 |
} |
| 2090 |
|
| 2091 |
type SpanKind string |
| 2092 |
|
| 2093 |
const SpanKindClient SpanKind = "client" |
| 2094 |
const SpanKindConsumer SpanKind = "consumer" |
| 2095 |
const SpanKindInternal SpanKind = "internal" |
| 2096 |
const SpanKindProducer SpanKind = "producer" |
| 2097 |
const SpanKindServer SpanKind = "server" |
| 2098 |
|
| 2099 |
type SpanLimits struct { |
| 2100 |
// Configure max attribute count. Overrides |
| 2101 |
// .attribute_limits.attribute_count_limit. |
| 2102 |
// Value must be non-negative. |
| 2103 |
// If omitted or null, 128 is used. |
| 2104 |
// |
| 2105 |
AttributeCountLimit SpanLimitsAttributeCountLimit `json:"attribute_count_limit,omitempty,omitzero" yaml:"attribute_count_limit,omitempty" mapstructure:"attribute_count_limit,omitempty"` |
| 2106 |
|
| 2107 |
// Configure max attribute value size. Overrides |
| 2108 |
// .attribute_limits.attribute_value_length_limit. |
| 2109 |
// Value must be non-negative. |
| 2110 |
// If omitted or null, there is no limit. |
| 2111 |
// |
| 2112 |
AttributeValueLengthLimit SpanLimitsAttributeValueLengthLimit `json:"attribute_value_length_limit,omitempty,omitzero" yaml:"attribute_value_length_limit,omitempty" mapstructure:"attribute_value_length_limit,omitempty"` |
| 2113 |
|
| 2114 |
// Configure max attributes per span event. |
| 2115 |
// Value must be non-negative. |
| 2116 |
// If omitted or null, 128 is used. |
| 2117 |
// |
| 2118 |
EventAttributeCountLimit SpanLimitsEventAttributeCountLimit `json:"event_attribute_count_limit,omitempty,omitzero" yaml:"event_attribute_count_limit,omitempty" mapstructure:"event_attribute_count_limit,omitempty"` |
| 2119 |
|
| 2120 |
// Configure max span event count. |
| 2121 |
// Value must be non-negative. |
| 2122 |
// If omitted or null, 128 is used. |
| 2123 |
// |
| 2124 |
EventCountLimit SpanLimitsEventCountLimit `json:"event_count_limit,omitempty,omitzero" yaml:"event_count_limit,omitempty" mapstructure:"event_count_limit,omitempty"` |
| 2125 |
|
| 2126 |
// Configure max attributes per span link. |
| 2127 |
// Value must be non-negative. |
| 2128 |
// If omitted or null, 128 is used. |
| 2129 |
// |
| 2130 |
LinkAttributeCountLimit SpanLimitsLinkAttributeCountLimit `json:"link_attribute_count_limit,omitempty,omitzero" yaml:"link_attribute_count_limit,omitempty" mapstructure:"link_attribute_count_limit,omitempty"` |
| 2131 |
|
| 2132 |
// Configure max span link count. |
| 2133 |
// Value must be non-negative. |
| 2134 |
// If omitted or null, 128 is used. |
| 2135 |
// |
| 2136 |
LinkCountLimit SpanLimitsLinkCountLimit `json:"link_count_limit,omitempty,omitzero" yaml:"link_count_limit,omitempty" mapstructure:"link_count_limit,omitempty"` |
| 2137 |
} |
| 2138 |
|
| 2139 |
// Configure max attribute count. Overrides |
| 2140 |
// .attribute_limits.attribute_count_limit. |
| 2141 |
// Value must be non-negative. |
| 2142 |
// If omitted or null, 128 is used. |
| 2143 |
type SpanLimitsAttributeCountLimit *int |
| 2144 |
|
| 2145 |
// Configure max attribute value size. Overrides |
| 2146 |
// .attribute_limits.attribute_value_length_limit. |
| 2147 |
// Value must be non-negative. |
| 2148 |
// If omitted or null, there is no limit. |
| 2149 |
type SpanLimitsAttributeValueLengthLimit *int |
| 2150 |
|
| 2151 |
// Configure max attributes per span event. |
| 2152 |
// Value must be non-negative. |
| 2153 |
// If omitted or null, 128 is used. |
| 2154 |
type SpanLimitsEventAttributeCountLimit *int |
| 2155 |
|
| 2156 |
// Configure max span event count. |
| 2157 |
// Value must be non-negative. |
| 2158 |
// If omitted or null, 128 is used. |
| 2159 |
type SpanLimitsEventCountLimit *int |
| 2160 |
|
| 2161 |
// Configure max attributes per span link. |
| 2162 |
// Value must be non-negative. |
| 2163 |
// If omitted or null, 128 is used. |
| 2164 |
type SpanLimitsLinkAttributeCountLimit *int |
| 2165 |
|
| 2166 |
// Configure max span link count. |
| 2167 |
// Value must be non-negative. |
| 2168 |
// If omitted or null, 128 is used. |
| 2169 |
type SpanLimitsLinkCountLimit *int |
| 2170 |
|
| 2171 |
type SpanProcessor struct { |
| 2172 |
// Configure a batch span processor. |
| 2173 |
// If omitted, ignore. |
| 2174 |
// |
| 2175 |
Batch *BatchSpanProcessor `json:"batch,omitempty,omitzero" yaml:"batch,omitempty" mapstructure:"batch,omitempty"` |
| 2176 |
|
| 2177 |
// Configure a simple span processor. |
| 2178 |
// If omitted, ignore. |
| 2179 |
// |
| 2180 |
Simple *SimpleSpanProcessor `json:"simple,omitempty,omitzero" yaml:"simple,omitempty" mapstructure:"simple,omitempty"` |
| 2181 |
|
| 2182 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 2183 |
} |
| 2184 |
|
| 2185 |
type SumAggregation map[string]interface{} |
| 2186 |
|
| 2187 |
type TextMapPropagator struct { |
| 2188 |
// Include the zipkin b3 propagator. |
| 2189 |
// If omitted, ignore. |
| 2190 |
// |
| 2191 |
B3 B3Propagator `json:"b3,omitempty,omitzero" yaml:"b3,omitempty" mapstructure:"b3,omitempty"` |
| 2192 |
|
| 2193 |
// Include the zipkin b3 multi propagator. |
| 2194 |
// If omitted, ignore. |
| 2195 |
// |
| 2196 |
B3Multi B3MultiPropagator `json:"b3multi,omitempty,omitzero" yaml:"b3multi,omitempty" mapstructure:"b3multi,omitempty"` |
| 2197 |
|
| 2198 |
// Include the w3c baggage propagator. |
| 2199 |
// If omitted, ignore. |
| 2200 |
// |
| 2201 |
Baggage BaggagePropagator `json:"baggage,omitempty,omitzero" yaml:"baggage,omitempty" mapstructure:"baggage,omitempty"` |
| 2202 |
|
| 2203 |
// Include the jaeger propagator. |
| 2204 |
// If omitted, ignore. |
| 2205 |
// |
| 2206 |
Jaeger JaegerPropagator `json:"jaeger,omitempty,omitzero" yaml:"jaeger,omitempty" mapstructure:"jaeger,omitempty"` |
| 2207 |
|
| 2208 |
// Include the opentracing propagator. |
| 2209 |
// If omitted, ignore. |
| 2210 |
// |
| 2211 |
Ottrace OpenTracingPropagator `json:"ottrace,omitempty,omitzero" yaml:"ottrace,omitempty" mapstructure:"ottrace,omitempty"` |
| 2212 |
|
| 2213 |
// Include the w3c trace context propagator. |
| 2214 |
// If omitted, ignore. |
| 2215 |
// |
| 2216 |
Tracecontext TraceContextPropagator `json:"tracecontext,omitempty,omitzero" yaml:"tracecontext,omitempty" mapstructure:"tracecontext,omitempty"` |
| 2217 |
|
| 2218 |
AdditionalProperties interface{} `mapstructure:",remain"` |
| 2219 |
} |
| 2220 |
|
| 2221 |
type TraceContextPropagator map[string]interface{} |
| 2222 |
|
| 2223 |
type TraceIDRatioBasedSampler struct { |
| 2224 |
// Configure trace_id_ratio. |
| 2225 |
// If omitted or null, 1.0 is used. |
| 2226 |
// |
| 2227 |
Ratio TraceIDRatioBasedSamplerRatio `json:"ratio,omitempty,omitzero" yaml:"ratio,omitempty" mapstructure:"ratio,omitempty"` |
| 2228 |
} |
| 2229 |
|
| 2230 |
// Configure trace_id_ratio. |
| 2231 |
// If omitted or null, 1.0 is used. |
| 2232 |
type TraceIDRatioBasedSamplerRatio *float64 |
| 2233 |
|
| 2234 |
type TracerProvider struct { |
| 2235 |
// Configure span limits. See also attribute_limits. |
| 2236 |
// If omitted, default values as described in SpanLimits are used. |
| 2237 |
// |
| 2238 |
Limits *SpanLimits `json:"limits,omitempty,omitzero" yaml:"limits,omitempty" mapstructure:"limits,omitempty"` |
| 2239 |
|
| 2240 |
// Configure span processors. |
| 2241 |
// Property is required and must be non-null. |
| 2242 |
// |
| 2243 |
Processors []SpanProcessor `json:"processors" yaml:"processors" mapstructure:"processors"` |
| 2244 |
|
| 2245 |
// Configure the sampler. |
| 2246 |
// If omitted, parent based sampler with a root of always_on is used. |
| 2247 |
// |
| 2248 |
Sampler *Sampler `json:"sampler,omitempty,omitzero" yaml:"sampler,omitempty" mapstructure:"sampler,omitempty"` |
| 2249 |
|
| 2250 |
// Configure tracers. |
| 2251 |
// If omitted, all tracers use default values as described in |
| 2252 |
// ExperimentalTracerConfig. |
| 2253 |
// |
| 2254 |
TracerConfiguratorDevelopment *ExperimentalTracerConfigurator `json:"tracer_configurator/development,omitempty,omitzero" yaml:"tracer_configurator/development,omitempty" mapstructure:"tracer_configurator/development,omitempty"` |
| 2255 |
} |
| 2256 |
|
| 2257 |
type View struct { |
| 2258 |
// Configure view selector. |
| 2259 |
// Selection criteria is additive as described in |
| 2260 |
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk.md#instrument-selection-criteria. |
| 2261 |
// Property is required and must be non-null. |
| 2262 |
// |
| 2263 |
Selector ViewSelector `json:"selector" yaml:"selector" mapstructure:"selector"` |
| 2264 |
|
| 2265 |
// Configure view stream. |
| 2266 |
// Property is required and must be non-null. |
| 2267 |
// |
| 2268 |
Stream ViewStream `json:"stream" yaml:"stream" mapstructure:"stream"` |
| 2269 |
} |
| 2270 |
|
| 2271 |
type ViewSelector struct { |
| 2272 |
// Configure instrument name selection criteria. |
| 2273 |
// If omitted or null, all instrument names match. |
| 2274 |
// |
| 2275 |
InstrumentName ViewSelectorInstrumentName `json:"instrument_name,omitempty,omitzero" yaml:"instrument_name,omitempty" mapstructure:"instrument_name,omitempty"` |
| 2276 |
|
| 2277 |
// Configure instrument type selection criteria. |
| 2278 |
// Values include: |
| 2279 |
// * counter: Synchronous counter instruments. |
| 2280 |
// * gauge: Synchronous gauge instruments. |
| 2281 |
// * histogram: Synchronous histogram instruments. |
| 2282 |
// * observable_counter: Asynchronous counter instruments. |
| 2283 |
// * observable_gauge: Asynchronous gauge instruments. |
| 2284 |
// * observable_up_down_counter: Asynchronous up down counter instruments. |
| 2285 |
// * up_down_counter: Synchronous up down counter instruments. |
| 2286 |
// If omitted, all instrument types match. |
| 2287 |
// |
| 2288 |
InstrumentType *InstrumentType `json:"instrument_type,omitempty,omitzero" yaml:"instrument_type,omitempty" mapstructure:"instrument_type,omitempty"` |
| 2289 |
|
| 2290 |
// Configure meter name selection criteria. |
| 2291 |
// If omitted or null, all meter names match. |
| 2292 |
// |
| 2293 |
MeterName ViewSelectorMeterName `json:"meter_name,omitempty,omitzero" yaml:"meter_name,omitempty" mapstructure:"meter_name,omitempty"` |
| 2294 |
|
| 2295 |
// Configure meter schema url selection criteria. |
| 2296 |
// If omitted or null, all meter schema URLs match. |
| 2297 |
// |
| 2298 |
MeterSchemaUrl ViewSelectorMeterSchemaUrl `json:"meter_schema_url,omitempty,omitzero" yaml:"meter_schema_url,omitempty" mapstructure:"meter_schema_url,omitempty"` |
| 2299 |
|
| 2300 |
// Configure meter version selection criteria. |
| 2301 |
// If omitted or null, all meter versions match. |
| 2302 |
// |
| 2303 |
MeterVersion ViewSelectorMeterVersion `json:"meter_version,omitempty,omitzero" yaml:"meter_version,omitempty" mapstructure:"meter_version,omitempty"` |
| 2304 |
|
| 2305 |
// Configure the instrument unit selection criteria. |
| 2306 |
// If omitted or null, all instrument units match. |
| 2307 |
// |
| 2308 |
Unit ViewSelectorUnit `json:"unit,omitempty,omitzero" yaml:"unit,omitempty" mapstructure:"unit,omitempty"` |
| 2309 |
} |
| 2310 |
|
| 2311 |
// Configure instrument name selection criteria. |
| 2312 |
// If omitted or null, all instrument names match. |
| 2313 |
type ViewSelectorInstrumentName *string |
| 2314 |
|
| 2315 |
// Configure meter name selection criteria. |
| 2316 |
// If omitted or null, all meter names match. |
| 2317 |
type ViewSelectorMeterName *string |
| 2318 |
|
| 2319 |
// Configure meter schema url selection criteria. |
| 2320 |
// If omitted or null, all meter schema URLs match. |
| 2321 |
type ViewSelectorMeterSchemaUrl *string |
| 2322 |
|
| 2323 |
// Configure meter version selection criteria. |
| 2324 |
// If omitted or null, all meter versions match. |
| 2325 |
type ViewSelectorMeterVersion *string |
| 2326 |
|
| 2327 |
// Configure the instrument unit selection criteria. |
| 2328 |
// If omitted or null, all instrument units match. |
| 2329 |
type ViewSelectorUnit *string |
| 2330 |
|
| 2331 |
type ViewStream struct { |
| 2332 |
// Configure aggregation of the resulting stream(s). |
| 2333 |
// If omitted, default is used. |
| 2334 |
// |
| 2335 |
Aggregation *Aggregation `json:"aggregation,omitempty,omitzero" yaml:"aggregation,omitempty" mapstructure:"aggregation,omitempty"` |
| 2336 |
|
| 2337 |
// Configure the aggregation cardinality limit. |
| 2338 |
// If omitted or null, the metric reader's default cardinality limit is used. |
| 2339 |
// |
| 2340 |
AggregationCardinalityLimit ViewStreamAggregationCardinalityLimit `json:"aggregation_cardinality_limit,omitempty,omitzero" yaml:"aggregation_cardinality_limit,omitempty" mapstructure:"aggregation_cardinality_limit,omitempty"` |
| 2341 |
|
| 2342 |
// Configure attribute keys retained in the resulting stream(s). |
| 2343 |
// If omitted, all attribute keys are retained. |
| 2344 |
// |
| 2345 |
AttributeKeys *IncludeExclude `json:"attribute_keys,omitempty,omitzero" yaml:"attribute_keys,omitempty" mapstructure:"attribute_keys,omitempty"` |
| 2346 |
|
| 2347 |
// Configure metric description of the resulting stream(s). |
| 2348 |
// If omitted or null, the instrument's origin description is used. |
| 2349 |
// |
| 2350 |
Description ViewStreamDescription `json:"description,omitempty,omitzero" yaml:"description,omitempty" mapstructure:"description,omitempty"` |
| 2351 |
|
| 2352 |
// Configure metric name of the resulting stream(s). |
| 2353 |
// If omitted or null, the instrument's original name is used. |
| 2354 |
// |
| 2355 |
Name ViewStreamName `json:"name,omitempty,omitzero" yaml:"name,omitempty" mapstructure:"name,omitempty"` |
| 2356 |
} |
| 2357 |
|
| 2358 |
// Configure the aggregation cardinality limit. |
| 2359 |
// If omitted or null, the metric reader's default cardinality limit is used. |
| 2360 |
type ViewStreamAggregationCardinalityLimit *int |
| 2361 |
|
| 2362 |
// Configure metric description of the resulting stream(s). |
| 2363 |
// If omitted or null, the instrument's origin description is used. |
| 2364 |
type ViewStreamDescription *string |
| 2365 |
|
| 2366 |
// Configure metric name of the resulting stream(s). |
| 2367 |
// If omitted or null, the instrument's original name is used. |
| 2368 |
type ViewStreamName *string |