Repository navigation
Add file tailing support to opentelemetry section - #2206
Merged
Merged
Conversation
JayPolanco
reviewed
Jul 16, 2026
JayPolanco
reviewed
Jul 16, 2026
JayPolanco
reviewed
Jul 16, 2026
JayPolanco
reviewed
Jul 16, 2026
JayPolanco
previously approved these changes
Jul 16, 2026
JayPolanco
previously approved these changes
Jul 16, 2026
Contributor
Binary Size Reportlinux/amd64
Notable changes:
linux/arm64
windows/amd64
Investigating size changesUse go-size-analyzer to compare binaries: GOEXPERIMENT=jsonv2 go install github.com/Zxilly/go-size-analyzer/cmd/gsa@latest
gsa diff --old <baseline-binary> --new <new-binary> |
okankoAMZ
previously approved these changes
Jul 17, 2026
JayPolanco
reviewed
Jul 17, 2026
| // buildTimestampOperatorMap returns a regex_parser operator config as a raw map. | ||
| // Using a raw map avoids the operator.Config marshaling bug when round-tripping through confmap. | ||
| func buildTimestampOperatorMap(format, timezone string) map[string]any { | ||
| location := "Local" |
Contributor
There was a problem hiding this comment.
Maybe a nit: The json schema has 3 enums it allows, but the if condition here only targets 2 of the 3
JayPolanco
reviewed
Jul 17, 2026
JayPolanco
approved these changes
Jul 17, 2026
okankoAMZ
approved these changes
Jul 17, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Add file tailing support to the
opentelemetryconfig section via the filelogreceiver, atopentelemetry.collect.files.collect_list.translator/translate/otel/pipeline/opentelemetry/files/(receiver dedup by config hash)/aws/cwagent/files{host.id}/{file.name}translator/config/schema.jsoninternal/util/timestamp/packageSupported fields (matching v1 naming):
file_path,log_group_name,log_stream_name,multi_line_start_pattern,timestamp_format,timezone,encoding.License
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Tests
Added and updated unit tests. Added sample config for the new configuration option. Tested E2E on EC2 to validate tailing, default log group/stream, custom log group/stream, multi-line, receiver dedup, timestamp parsing, and state persistence/resume.
Requirements
Before commiting your code, please do the following steps.
make fmtandmake fmt-shmake lintIntegration Tests
To run integration tests against this PR, add the
ready for testinglabel.