-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add base class for implementing retry strategies in otlp exporter #4872
Add base class for implementing retry strategies in otlp exporter #4872
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4872 +/- ##
==========================================
- Coverage 83.38% 83.09% -0.30%
==========================================
Files 297 272 -25
Lines 12531 11983 -548
==========================================
- Hits 10449 9957 -492
+ Misses 2082 2026 -56
Flags with carried forward coverage won't be shown. Click here to find out more.
|
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporterHelperExtensions.cs
Outdated
Show resolved
Hide resolved
...ry.Exporter.OpenTelemetryProtocol/Implementation/OpenTelemetryProtocolExporterEventSource.cs
Show resolved
Hide resolved
...metry.Exporter.OpenTelemetryProtocol/Implementation/retry/OtlpExporterTransmissionHandler.cs
Outdated
Show resolved
Hide resolved
src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpTraceExporter.cs
Outdated
Show resolved
Hide resolved
This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or Pushing will instruct the bot to automatically remove the label. This bot runs once per day. |
Closed as inactive. Feel free to reopen if this PR is still being worked on. |
…/vishweshbankwar/opentelemetry-dotnet into vibankwa/add-retry-base-for-otlp
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#nullable enable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #
Design discussion issue #
Changes
This PR contains a base TransmissionHandler class which can be used to implement retry strategies such as in memory and persistent storage. This is intended to be used only by the internal implementations of retry strategies that will be offered in OTLP exporter.
Example of in-memory retry using this base
Example of retry via persistent storage
Exporters can enable retries based on the user selected retry mechanism. The selection will be via feature flag that will be introduced in follow up PRs.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes