diff --git a/kitchen-sink-example.yaml b/kitchen-sink-example.yaml index 3c323582..f95c304b 100644 --- a/kitchen-sink-example.yaml +++ b/kitchen-sink-example.yaml @@ -1,11 +1,58 @@ # The file format version file_format: "0.1" +# Configure general attribute limits. See also tracer_provider.span_limits, logger_provider.logrecord_limits. +attribute_limits: + # Set the max attribute value size. + # + # Environment variable: OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT + attribute_value_length_limit: 4096 + # Set the max attribute count. + # + # Environment variable: OTEL_ATTRIBUTE_COUNT_LIMIT + attribute_count_limit: 128 + # Configure logger provider. -logger_provider: {} +logger_provider: + # Configure the log record limits. See also attribute_limits. + logrecord_limits: + # Set the max log record attribute value size. Overrides attribute_limits.attribute_value_length_limit. + # + # Environment variable: OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT + attribute_value_length_limit: 4096 + # Set the max log record attribute count. Overrides attribute_limits.attribute_count_limit. + # + # Environment variable: OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT + attribute_count_limit: 128 # Configure meter provider. meter_provider: {} # Configure tracer provider. -tracer_provider: {} +tracer_provider: + # Configure span limits. See also attribute_limits. + span_limits: + # Set the max span attribute value size. Overrides attribute_limits.attribute_value_length_limit. + # + # Environment variable: OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT + attribute_value_length_limit: 4096 + # Set the max span attribute count. Overrides attribute_limits.attribute_count_limit. + # + # Environment variable: OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT + attribute_count_limit: 128 + # Set the max span event count. + # + # Environment variable: OTEL_SPAN_EVENT_COUNT_LIMIT + event_count_limit: 128 + # Set the max span link count. + # + # Environment variable: OTEL_SPAN_LINK_COUNT_LIMIT + link_count_limit: 128 + # Set the max attributes per span event. + # + # Environment variable: OTEL_EVENT_ATTRIBUTE_COUNT_LIMIT + event_attribute_count_limit: 128 + # Set the max attributes per span link. + # + # Environment variable: OTEL_LINK_ATTRIBUTE_COUNT_LIMIT + link_attribute_count_limit: 128 diff --git a/schema/logger_provider.json b/schema/logger_provider.json index 3dffdb57..527f1fb8 100644 --- a/schema/logger_provider.json +++ b/schema/logger_provider.json @@ -5,5 +5,18 @@ "type": "object", "additionalProperties": false, "properties": { + "logrecord_limits": { + "title": "LogRecordLimits", + "type": "object", + "additionalProperties": false, + "properties": { + "attribute_value_length_limit": { + "type": "integer" + }, + "attribute_count_limit": { + "type": "integer" + } + } + } } } diff --git a/schema/opentelemetry_configuration.json b/schema/opentelemetry_configuration.json index 74fbc069..311dedcd 100644 --- a/schema/opentelemetry_configuration.json +++ b/schema/opentelemetry_configuration.json @@ -8,6 +8,19 @@ "file_format": { "type": "string" }, + "attribute_limits": { + "title": "AttributeLimits", + "type": "object", + "additionalProperties": true, + "properties": { + "attribute_value_length_limit": { + "type": "integer" + }, + "attribute_count_limit": { + "type": "integer" + } + } + }, "logger_provider": { "$ref": "logger_provider.json" }, diff --git a/schema/tracer_provider.json b/schema/tracer_provider.json index 8d3efa62..65a4bf3e 100644 --- a/schema/tracer_provider.json +++ b/schema/tracer_provider.json @@ -5,5 +5,30 @@ "type": "object", "additionalProperties": false, "properties": { + "span_limits": { + "title": "SpanLimits", + "type": "object", + "additionalProperties": false, + "properties": { + "attribute_value_length_limit": { + "type": "integer" + }, + "attribute_count_limit": { + "type": "integer" + }, + "event_count_limit": { + "type": "integer" + }, + "link_count_limit": { + "type": "integer" + }, + "event_attribute_count_limit": { + "type": "integer" + }, + "link_attribute_count_limit": { + "type": "integer" + } + } + } } }