-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[exporterhelper] Add queue options to the new exporter helper
This change enabled queue capability for the new exporter helper. For now, it preserves the same user configuration interface as the existing exporter helper has. The only difference is that implementing persistence is optional now as it requires providing marshal and unmarshal functions for the custom request. Later, it's possible to introduce more options for controlling the queue: count of items or bytes in the queue.
- Loading branch information
Showing
9 changed files
with
407 additions
and
39 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: enhancement | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. otlpreceiver) | ||
component: exporter/exporterhelper | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Add API for enabling queue in the new exporter helpers. | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: | | ||
The following experimental API is introduced in exporter/exporterhelper package: | ||
- `RequestMarshaler`: a new interface for marshaling client-provided requests. | ||
- `RequestUnmarshaler`: a new interface for unmarshaling client-provided requests. | ||
- `WithMemoryQueue`: a new exporter helper option for using a memory queue. | ||
- `WithPersistentQueue`: a new exporter helper option for using a persistent queue. | ||
- `QueueConfig`: a configuration for queueing requests used by WithMemoryQueue option. | ||
- `NewDefaultQueueConfig`: a function for creating a default QueueConfig. | ||
- `PersistentQueueConfig`: a configuration for queueing requests in persistent storage used by WithPersistentQueue option. | ||
- `NewDefaultPersistentQueueConfig`: a function for creating a default PersistentQueueConfig. | ||
All the new APIs are intended to be used by exporters that operate over client-provided requests instead of pdata. | ||
# One or more tracking issues or pull requests related to the change | ||
issues: [7874] | ||
|
||
# Optional: The change log or logs in which this entry should be included. | ||
# e.g. '[user]' or '[user, api]' | ||
# Include 'user' if the change is relevant to end users. | ||
# Include 'api' if there is a change to a library API. | ||
# Default: '[user]' | ||
change_logs: [api] |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.