-
Notifications
You must be signed in to change notification settings - Fork 80
[confgenerator] Add file offset storage to Otel Logging receivers.
#2166
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
base: master
Are you sure you want to change the base?
Changes from all commits
69b3473
c17f6f8
f6c6fcc
7fe6b86
3805ae5
f4d88ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -207,6 +207,9 @@ func (r LoggingReceiverFilesMixin) Pipelines(ctx context.Context) ([]otel.Receiv | |
| "preserve_leading_whitespaces": true, | ||
| "preserve_trailing_whitespaces": true, | ||
| } | ||
| if !r.TransformationTest { | ||
| receiver_config["storage"] = fileStorageExtensionID() | ||
| } | ||
| if i := r.WildcardRefreshInterval; i != nil { | ||
| receiver_config["poll_interval"] = i.String() | ||
| } | ||
|
|
@@ -606,7 +609,7 @@ func (r LoggingReceiverWindowsEventLog) Pipelines(ctx context.Context) ([]otel.R | |
| "start_at": "beginning", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm trying to figure out how How can I be confident that
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yeah, the One option is to do a clarification doc PR in the upstream docs for this.
Yeah, we could do an integration test for this since
We could :
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I created the I ran this test locally to verify that it indeed fails with an Otel Logging version without the |
||
| "poll_interval": "1s", | ||
| "ignore_channel_errors": true, | ||
| // TODO: Configure storage | ||
| "storage": fileStorageExtensionID(), | ||
| } | ||
|
|
||
| var p []otel.Component | ||
|
|
@@ -966,6 +969,7 @@ func (r LoggingReceiverSystemd) Pipelines(ctx context.Context) ([]otel.ReceiverP | |
| receiver_config := map[string]any{ | ||
| "start_at": "beginning", | ||
| "priority": "debug", | ||
| "storage": fileStorageExtensionID(), | ||
| } | ||
|
|
||
| modify_fields_processors, err := LoggingProcessorModifyFields{ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.