fix: ECS-EC2 Remove breaking line from otelcol config #172
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
in the middle of my ECS/EKS onboarding tests, and I've found the bug that's causes the default otel config failing
otelcol claims that the json_parser operator doesn't have the default option/key, and it doesn't start because of it – in fact, it's right, because there is no such option, as I see in docs
router operator has this key, but json_parser doesn't
once I removed this line from the config, things started to work as expected, and all logs/metrics were sent to coralogix
when I've run the problematic config locally with otelcol-contrib, commenting cdot specials, it didn't give me an error because of this key – so I assume that opentelemetry just ignored such things like invalid keys until some version update, when they've made the syntax more strict
we have to remove this line, which causes the error, from both otelcol config on both terraform&cloudformation setups, so we won't get stuck with this issue in the future
How Has This Been Tested?