Skip to content

Update fallback for OTEL config flag #1697

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

Merged
merged 3 commits into from
May 27, 2025
Merged

Update fallback for OTEL config flag #1697

merged 3 commits into from
May 27, 2025

Conversation

jefchien
Copy link
Contributor

Description of the issue

There are cases where the fallback to the default translated OTEL YAML path is not sufficient.

Description of changes

Adds new fallback paths to check for the OTEL config flag. Will check in the following order:

  • Default translated OTEL YAML path
  • Default YAML (amazon-cloudwatch-agent.yaml) in the same directory as the TOML
  • Same path as the TOML, but looking for a YAML file instead (e.g. /my/favorite/config.toml/my/favorite/config.yaml)

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 unit tests.

Requirements

Before commit the code, please do the following steps.

  1. Run make fmt and make fmt-sh
  2. Run make lint

@jefchien jefchien requested a review from a team as a code owner May 20, 2025 23:53
@jefchien jefchien merged commit 6df1e5a into main May 27, 2025
160 of 177 checks passed
@jefchien jefchien deleted the fallback-config branch May 27, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants