Skip to content
Open
Show file tree
Hide file tree
Changes from 3 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
3 changes: 3 additions & 0 deletions examples/anchors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ exporters:
api-key: !!str 1234
compression: gzip
timeout: 10000
retry:
max_attempts: 3
initial_delay: 100

logger_provider:
processors:
Expand Down
24 changes: 24 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 Expand Up @@ -199,6 +205,12 @@ meter_provider:
#
# Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_METRICS_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 temporality preference.
#
# Environment variable: OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE
Expand Down Expand Up @@ -323,6 +335,12 @@ tracer_provider:
#
# Environment variable: OTEL_EXPORTER_OTLP_INSECURE, OTEL_EXPORTER_OTLP_TRACES_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 batch span processor.
- batch:
# Configure exporter.
Expand All @@ -339,6 +357,12 @@ tracer_provider:
#
# Environment variable: OTEL_EXPORTER_ZIPKIN_TIMEOUT
timeout: 10000
# 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
}
}
}
}
}
9 changes: 6 additions & 3 deletions schema/meter_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,12 @@
"type": "integer",
"minimum": 0
},
"insecure": {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved insecure up to be consistent with common.json/Otlp

"type": "boolean"
},
"retry": {
"$ref": "common.json#/$defs/Retry"
},
"temporality_preference": {
"type": "string"
},
Expand All @@ -175,9 +181,6 @@
"explicit_bucket_histogram",
"base2_exponential_bucket_histogram"
]
},
"insecure": {
"type": "boolean"
}
},
"required": [
Expand Down
3 changes: 3 additions & 0 deletions schema/tracer_provider.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,9 @@
"timeout": {
"type": "integer",
"minimum": 0
},
"retry": {
"$ref": "common.json#/$defs/Retry"
}
},
"required": [
Expand Down