Add OTEP for OTLP exporter fallback endpoint support - #5293
Draft
MJarmo wants to merge 1 commit into
Draft
Conversation
Propose optional fallback endpoint configuration for OTLP exporters so SDKs can retry export to a secondary destination after primary transient failures are exhausted. Related to open-telemetry#4973. Signed-off-by: MJarmo <michal.jarmolkiewicz@sap.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #4973
Changes
This PR proposes a new OTEP for optional fallback endpoint support on OTLP exporters.
When configured, an OTLP exporter sends to the primary endpoint first (with the existing retry policy). If export fails after retries are exhausted due to a transient error, the exporter attempts the same export to a fallback endpoint (with the same retry policy). If no fallback is configured, behavior is unchanged.
Proposed configuration:
OTEL_EXPORTER_OTLP_FALLBACK_ENDPOINT— generic fallback for all signalsOTEL_EXPORTER_OTLP_<SIGNAL>_FALLBACK_ENDPOINT— signal-specific override (traces, metrics, logs)setFallbackEndpoint(String)on OTLP exporter buildersV1 scope (intentionally narrow):
This is an OTEP proposal only. Spec integration (
specification/protocol/exporter.md), declarative configuration schema updates, and language implementations are follow-up work after OTEP approval.For non-trivial changes, follow the change proposal process.
CHANGELOG.mdfile updated for non-trivial changesopentelemetry-configurationschema update is planned for the spec integration PR