-
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
[chore] [exporterhelper] Items based queue sizing with bounded channel #9164
[chore] [exporterhelper] Items based queue sizing with bounded channel #9164
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #9164 +/- ##
==========================================
- Coverage 91.39% 91.39% -0.01%
==========================================
Files 320 321 +1
Lines 17208 17297 +89
==========================================
+ Hits 15728 15808 +80
- Misses 1177 1183 +6
- Partials 303 306 +3 ☔ View full report in Codecov by Sentry. |
2f30103
to
0ad2efc
Compare
0ad2efc
to
5d5ac37
Compare
5d5ac37
to
2d04229
Compare
@@ -78,15 +84,17 @@ var ( | |||
) | |||
|
|||
// NewPersistentQueue creates a new queue backed by file storage; name and signal must be a unique combination that identifies the queue storage | |||
func NewPersistentQueue[T any](capacity int, dataType component.DataType, storageID component.ID, marshaler func(req T) ([]byte, error), unmarshaler func([]byte) (T, error), set exporter.CreateSettings) Queue[T] { | |||
func NewPersistentQueue[T any](cl QueueCapacityLimiter[T], dataType component.DataType, storageID component.ID, |
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.
Is that moment when you better have a Settings struct for all these params you pass. Separate PR.
64301cb
to
b2f6084
Compare
b2f6084
to
b9a69cb
Compare
b9a69cb
to
f72cb9b
Compare
Introduce an option to limit the queue size by the number of items instead of number of requests. This is preliminary step for having the exporter helper v2 with a batcher sender placed after the queue sender. Otherwise, it'll be hard for the users to estimate the queue size based on the number of requests without batch processor in front of it.
This change doesn't effect the existing functionality and the items based queue limiting cannot be utilized yet.
Updates #8122
Alternative to #9147