-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[exporter] Disable the API to pass in configurations using a callback that operates on batch sender #11448
[exporter] Disable the API to pass in configurations using a callback that operates on batch sender #11448
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11448 +/- ##
==========================================
- Coverage 92.15% 92.15% -0.01%
==========================================
Files 432 431 -1
Lines 20253 20238 -15
==========================================
- Hits 18664 18650 -14
+ Misses 1228 1227 -1
Partials 361 361 ☔ View full report in Codecov by Sentry. |
Please add a |
@@ -275,30 +275,14 @@ func WithCapabilities(capabilities consumer.Capabilities) Option { | |||
} | |||
} | |||
|
|||
// WithRequestBatchFuncs sets the functions for merging and splitting batches for an exporter built for custom request types. | |||
func WithRequestBatchFuncs(mf exporterbatcher.BatchMergeFunc[internal.Request], msf exporterbatcher.BatchMergeSplitFunc[internal.Request]) BatcherOption { |
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.
Delete also BatcherOption
Description
As part of the effort to solve #10368, we no longer guarantee to initialize a
batchSender
whenbatcher
is enabled. Therefore, we would like to remove the interface to setmergeFunc
andmergeSplitFunc
as a callback that operates onbatchSender
. Instead, users should use the alternativeWithBatchFuncs
that is a callback that operatesbaseExporter
.Context: #11414
Link to tracking issue
#8122
#10368
Testing
Documentation