Skip to content
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

Update logging envs and defaulting mechanism #106

Merged
merged 4 commits into from
Jun 5, 2024

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Jun 4, 2024

This ensure the same environment configuration keys exist in both the old and new agent:

elastic/apm-agent-dotnet#2371

  • ELASTIC_OTEL_LOG_LEVEL
  • ELASTIC_OTEL_LOG_DIRECTORY
  • ELASTIC_OTEL_LOG_TARGETS

Including the same defaulting behaviour (copy pasted the tests from that PR into this).

The default is no global logging unless any of these are set to a value other than:

ELASTIC_OTEL_LOG_LEVEL=none or ELASTIC_OTEL_LOG_TARGETS=none

ELASTIC_OTEL_LOG_TARGETS=stdout currently does not do anything, looking to tackle that in a follow up PR.

Copy link
Contributor

@stevejgordon stevejgordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of queries/thoughts around the default for log directories to consider.

Copy link
Contributor

@stevejgordon stevejgordon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Mpdreamz Mpdreamz merged commit 4fcfe36 into main Jun 5, 2024
5 checks passed
@Mpdreamz Mpdreamz deleted the fix/update-logging-variables branch June 5, 2024 13:57
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.

2 participants