diff --git a/examples/kitchen-sink.yaml b/examples/kitchen-sink.yaml index 6813c11..ec6a94a 100644 --- a/examples/kitchen-sink.yaml +++ b/examples/kitchen-sink.yaml @@ -27,16 +27,16 @@ logger_provider: processors: - # Configure a batch log record processor. batch: - # Configure delay interval (in milliseconds) between two consecutive exports. + # Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. # If omitted or null, 1000 is used. schedule_delay: 5000 - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. export_timeout: 30000 - # Configure maximum queue size. + # Configure maximum queue size. Value must be > 0. # If omitted or null, 2048 is used. max_queue_size: 2048 - # Configure maximum batch size. + # Configure maximum batch size. Value must be > 0. # If omitted or null, 512 is used. max_export_batch_size: 512 # Configure exporter. @@ -69,7 +69,7 @@ logger_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: gzip - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 # Configure client transport security for the exporter's connection. Only applicable when .protocol is grpc and .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure. @@ -136,10 +136,10 @@ meter_provider: - opencensus: - # Configure a periodic metric reader. periodic: - # Configure delay interval (in milliseconds) between start of two consecutive exports. + # Configure delay interval (in milliseconds) between start of two consecutive exports. Value must be > 0. # If omitted or null, 60000 is used. interval: 60000 - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. timeout: 30000 # Configure exporter. @@ -172,7 +172,7 @@ meter_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: gzip - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 # Configure client transport security for the exporter's connection. Only applicable when .protocol is grpc and .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure. @@ -277,16 +277,16 @@ tracer_provider: processors: - # Configure a batch span processor. batch: - # Configure delay interval (in milliseconds) between two consecutive exports. + # Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. # If omitted or null, 5000 is used. schedule_delay: 5000 - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. export_timeout: 30000 - # Configure maximum queue size. + # Configure maximum queue size. Value must be > 0. # If omitted or null, 2048 is used. max_queue_size: 2048 - # Configure maximum batch size. + # Configure maximum batch size. Value must be > 0. # If omitted or null, 512 is used. max_export_batch_size: 512 # Configure exporter. @@ -319,7 +319,7 @@ tracer_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: gzip - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 # Configure client transport security for the exporter's connection. Only applicable when .protocol is grpc and .endpoint is provided without http or https scheme. Implementations may choose to ignore .insecure. @@ -334,7 +334,7 @@ tracer_provider: # Configure endpoint. # If omitted or null, http://localhost:9411/api/v2/spans is used. endpoint: http://localhost:9411/api/v2/spans - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 - # Configure a simple span processor. diff --git a/examples/sdk-config.yaml b/examples/sdk-config.yaml index 7c4824d..580f33f 100644 --- a/examples/sdk-config.yaml +++ b/examples/sdk-config.yaml @@ -41,16 +41,16 @@ tracer_provider: processors: - # Configure a batch span processor. batch: - # Configure delay interval (in milliseconds) between two consecutive exports. + # Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. # If omitted or null, 5000 is used. schedule_delay: 5000 - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. export_timeout: 30000 - # Configure maximum queue size. + # Configure maximum queue size. Value must be > 0. # If omitted or null, 2048 is used. max_queue_size: 2048 - # Configure maximum batch size. + # Configure maximum batch size. Value must be > 0. # If omitted or null, 512 is used. max_export_batch_size: 512 # Configure exporter. @@ -74,7 +74,7 @@ tracer_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: gzip - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 # Configure headers. Entries have higher priority than entries from .headers_list. @@ -137,10 +137,10 @@ meter_provider: readers: - # Configure a periodic metric reader. periodic: - # Configure delay interval (in milliseconds) between start of two consecutive exports. + # Configure delay interval (in milliseconds) between start of two consecutive exports. Value must be > 0. # If omitted or null, 60000 is used. interval: 60000 - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. timeout: 30000 # Configure exporter. @@ -164,7 +164,7 @@ meter_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: gzip - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 # Configure headers. Entries have higher priority than entries from .headers_list. @@ -186,16 +186,16 @@ logger_provider: processors: - # Configure a batch log record processor. batch: - # Configure delay interval (in milliseconds) between two consecutive exports. + # Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. # If omitted or null, 1000 is used. schedule_delay: 1000 - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. export_timeout: 30000 - # Configure maximum queue size. + # Configure maximum queue size. Value must be > 0. # If omitted or null, 2048 is used. max_queue_size: 2048 - # Configure maximum batch size. + # Configure maximum batch size. Value must be > 0. # If omitted or null, 512 is used. max_export_batch_size: 512 # Configure exporter. @@ -219,7 +219,7 @@ logger_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: gzip - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: 10000 # Configure headers. Entries have higher priority than entries from .headers_list. diff --git a/examples/sdk-migration-config.yaml b/examples/sdk-migration-config.yaml index 66d9402..5032589 100644 --- a/examples/sdk-migration-config.yaml +++ b/examples/sdk-migration-config.yaml @@ -74,16 +74,16 @@ tracer_provider: processors: - # Configure a batch span processor. batch: - # Configure delay interval (in milliseconds) between two consecutive exports. + # Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. # If omitted or null, 5000 is used. schedule_delay: ${OTEL_BSP_SCHEDULE_DELAY:-5000} - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. export_timeout: ${OTEL_BSP_EXPORT_TIMEOUT:-30000} - # Configure maximum queue size. + # Configure maximum queue size. Value must be > 0. # If omitted or null, 2048 is used. max_queue_size: ${OTEL_BSP_MAX_QUEUE_SIZE:-2048} - # Configure maximum batch size. + # Configure maximum batch size. Value must be > 0. # If omitted or null, 512 is used. max_export_batch_size: ${OTEL_BSP_MAX_EXPORT_BATCH_SIZE:-512} # Configure exporter. @@ -107,7 +107,7 @@ tracer_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: ${OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:-gzip} - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: ${OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:-10000} # Configure headers. Entries have higher priority than entries from .headers_list. @@ -176,10 +176,10 @@ meter_provider: readers: - # Configure a periodic metric reader. periodic: - # Configure delay interval (in milliseconds) between start of two consecutive exports. + # Configure delay interval (in milliseconds) between start of two consecutive exports. Value must be > 0. # If omitted or null, 60000 is used. interval: ${OTEL_METRIC_EXPORT_INTERVAL:-60000} - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. timeout: ${OTEL_METRIC_EXPORT_TIMEOUT:-30000} # Configure exporter. @@ -203,7 +203,7 @@ meter_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: ${OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:-gzip} - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: ${OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:-10000} # Configure headers. Entries have higher priority than entries from .headers_list. @@ -229,16 +229,16 @@ logger_provider: processors: - # Configure a batch log record processor. batch: - # Configure delay interval (in milliseconds) between two consecutive exports. + # Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. # If omitted or null, 1000 is used. schedule_delay: ${OTEL_BLRP_SCHEDULE_DELAY:-1000} - # Configure maximum allowed time (in milliseconds) to export data. + # Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. # If omitted or null, 30000 is used. export_timeout: ${OTEL_BLRP_EXPORT_TIMEOUT:-30000} - # Configure maximum queue size. + # Configure maximum queue size. Value must be > 0. # If omitted or null, 2048 is used. max_queue_size: ${OTEL_BLRP_MAX_QUEUE_SIZE:-2048} - # Configure maximum batch size. + # Configure maximum batch size. Value must be > 0. # If omitted or null, 512 is used. max_export_batch_size: ${OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:-512} # Configure exporter. @@ -262,7 +262,7 @@ logger_provider: # Configure compression. Values include: gzip, none. Implementations may support other compression algorithms. # If omitted or null, none is used. compression: ${OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:-gzip} - # Configure max time (in milliseconds) to wait for each export. + # Configure max time (in milliseconds) to wait for each export. Value must be > 0. # If omitted or null, 10000 is used. timeout: ${OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:-10000} # Configure headers. Entries have higher priority than entries from .headers_list. diff --git a/schema/common.json b/schema/common.json index fe1b8fd..50c3042 100644 --- a/schema/common.json +++ b/schema/common.json @@ -70,7 +70,7 @@ }, "timeout": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "insecure": { "type": ["boolean", "null"] diff --git a/schema/logger_provider.json b/schema/logger_provider.json index afbcc8f..3f2c1f1 100644 --- a/schema/logger_provider.json +++ b/schema/logger_provider.json @@ -37,19 +37,19 @@ "properties": { "schedule_delay": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "export_timeout": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "max_queue_size": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "max_export_batch_size": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "exporter": { "$ref": "#/$defs/LogRecordExporter" diff --git a/schema/meter_provider.json b/schema/meter_provider.json index 996b9e2..77047f8 100644 --- a/schema/meter_provider.json +++ b/schema/meter_provider.json @@ -36,11 +36,11 @@ "properties": { "interval": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "timeout": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "exporter": { "$ref": "#/$defs/PushMetricExporter" @@ -200,7 +200,7 @@ }, "timeout": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "temporality_preference": { "type": ["string", "null"], diff --git a/schema/tracer_provider.json b/schema/tracer_provider.json index 6e96886..631ea35 100644 --- a/schema/tracer_provider.json +++ b/schema/tracer_provider.json @@ -29,19 +29,19 @@ "properties": { "schedule_delay": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "export_timeout": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "max_queue_size": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "max_export_batch_size": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "exporter": { "$ref": "#/$defs/SpanExporter" @@ -74,7 +74,7 @@ }, "interval": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 }, "initial_sampler": { "$ref": "#/$defs/Sampler" @@ -211,7 +211,7 @@ }, "timeout": { "type": ["integer", "null"], - "minimum": 0 + "exclusiveMinimum": 0 } }, "title": "Zipkin" diff --git a/schema/type_descriptions.yaml b/schema/type_descriptions.yaml index 47cd0c8..04dab00 100644 --- a/schema/type_descriptions.yaml +++ b/schema/type_descriptions.yaml @@ -134,19 +134,19 @@ - type: BatchLogRecordProcessor property_descriptions: schedule_delay: > - Configure delay interval (in milliseconds) between two consecutive exports. + Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. If omitted or null, 1000 is used. export_timeout: > - Configure maximum allowed time (in milliseconds) to export data. + Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. If omitted or null, 30000 is used. max_queue_size: > - Configure maximum queue size. + Configure maximum queue size. Value must be > 0. If omitted or null, 2048 is used. max_export_batch_size: > - Configure maximum batch size. + Configure maximum batch size. Value must be > 0. If omitted or null, 512 is used. exporter: Configure exporter. @@ -202,19 +202,19 @@ - type: BatchSpanProcessor property_descriptions: schedule_delay: > - Configure delay interval (in milliseconds) between two consecutive exports. + Configure delay interval (in milliseconds) between two consecutive exports. Value must be > 0. If omitted or null, 5000 is used. export_timeout: > - Configure maximum allowed time (in milliseconds) to export data. + Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. If omitted or null, 30000 is used. max_queue_size: > - Configure maximum queue size. + Configure maximum queue size. Value must be > 0. If omitted or null, 2048 is used. max_export_batch_size: > - Configure maximum batch size. + Configure maximum batch size. Value must be > 0. If omitted or null, 512 is used. exporter: Configure exporter. @@ -242,7 +242,7 @@ If omitted or null, http://localhost:9411/api/v2/spans is used. timeout: > - Configure max time (in milliseconds) to wait for each export. + Configure max time (in milliseconds) to wait for each export. Value must be > 0. If omitted or null, 10000 is used. path_patterns: @@ -341,11 +341,11 @@ - type: PeriodicMetricReader property_descriptions: interval: > - Configure delay interval (in milliseconds) between start of two consecutive exports. + Configure delay interval (in milliseconds) between start of two consecutive exports. Value must be > 0. If omitted or null, 60000 is used. timeout: > - Configure maximum allowed time (in milliseconds) to export data. + Configure maximum allowed time (in milliseconds) to export data. Value must be > 0. If omitted or null, 30000 is used. exporter: Configure exporter. @@ -537,7 +537,7 @@ If omitted or null, none is used. timeout: > - Configure max time (in milliseconds) to wait for each export. + Configure max time (in milliseconds) to wait for each export. Value must be > 0. If omitted or null, 10000 is used. insecure: >