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

Sdk diagnostic listener EventLevel based on configured LogLevel #2361

Merged
merged 4 commits into from
Mar 23, 2023

Conversation

lachmatt
Copy link
Contributor

Why

Towards #959

What

Set EventLevel for SdkSelfDiagnosticsEventListener based on configured log level.

Tests

Updated in PR.

Checklist

- [ ] CHANGELOG.md is updated.
- [ ] Documentation is updated.

  • New features are covered by tests.

@lachmatt lachmatt requested a review from a team March 22, 2023 15:17
LogLevel.Debug => EventLevel.Verbose,
LogLevel.Error => EventLevel.Error,
LogLevel.Warning => EventLevel.Warning,
LogLevel.Information => EventLevel.Informational,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is a default log level - I'm wondering if EventLevel.Informational might be little too verbose. LMK if you think I should change it e.g EventLevel.Warning

Copy link
Member

@pellared pellared Mar 23, 2023

Choose a reason for hiding this comment

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

I would rather consider changing the levels of event logs produced by the SDK instead.

Copy link
Contributor

@Kielek Kielek left a comment

Choose a reason for hiding this comment

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

LGTM.
We can introduce other env. varialbe if needed in the future.

@Kielek Kielek enabled auto-merge (squash) March 23, 2023 09:49
@Kielek Kielek merged commit 899ef2b into open-telemetry:main Mar 23, 2023
@lachmatt lachmatt deleted the self-listener-adjustment branch March 23, 2023 11:19
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