Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 49 additions & 2 deletions kitchen-sink-example.yaml
Original file line number Diff line number Diff line change
@@ -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
Comment thread
codeboten marked this conversation as resolved.
# 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
13 changes: 13 additions & 0 deletions schema/logger_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
13 changes: 13 additions & 0 deletions schema/opentelemetry_configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
25 changes: 25 additions & 0 deletions schema/tracer_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}