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

Logging improvements #4113

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

tjhop
Copy link
Contributor

@tjhop tjhop commented Nov 8, 2024

Some logging fixes to address PR feedback from #4089; correct error levels in a few spots and improve consistency.

@tjhop
Copy link
Contributor Author

tjhop commented Nov 8, 2024

@grobinson-grafana for your comment here, do you have a preference what key name we align on?

@grobinson-grafana
Copy link
Contributor

@grobinson-grafana for your comment here, do you have a preference what key name we align on?

Group key is the correct name.

This changes the majority of our `Notify()` implementations to set up a
new logger with the group key attached under the key name `group_key`,
and then to use that logger in all subsequent calls to the logger,
including passing it through to further functions that accept loggers
via params.

A few of the notify implementations are more complicated; they either
extract the key later in their `Notify()` implementation or within sub
methods, or even conditionally like with sns. I left those mostly as is
for now, as they seem to be more snow-flake-y.

Signed-off-by: TJ Hoplock <[email protected]>
@SuperQ
Copy link
Member

SuperQ commented Nov 19, 2024

Ping, any additional work needed here?

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