Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

* Add exporter `retry` configuration. [#97](https://github.com/open-telemetry/opentelemetry-configuration/pull/97)

## [v0.2.0] - 2024-05-08

* Document time value units in kitchen-sink example. [#51](https://github.com/open-telemetry/opentelemetry-configuration/pull/51)
Expand Down
6 changes: 6 additions & 0 deletions examples/kitchen-sink.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ logger_provider:
#
# Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_LOGS_INSECURE
insecure: false
# Configure retry policy
retry:
# Configure maximum number of retries before failing.
max_attempts: 3
# Configure initial delay (in milliseconds) to be used for exponential backoff with jitter.
initial_delay: 100
# Configure a simple span processor.
- simple:
# Configure exporter.
Expand Down
16 changes: 16 additions & 0 deletions schema/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
},
"insecure": {
"type": "boolean"
},
"retry": {
"$ref": "#/$defs/Retry"
}
},
"required": [
Expand All @@ -74,6 +77,19 @@
"Console": {
"type": "object",
"additionalProperties": false
},
"Retry": {
"type": "object",
"properties": {
"max_attempts": {
"type": "integer",
"minimum": 0
},
"initial_delay": {
"type": "integer",
"minimum": 1
}
}
}
}
}