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

kafkabp: Add AWSAvailabilityZoneIDRackID rack implementation #662

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented Sep 20, 2024

No description provided.

@fishy fishy requested a review from a team as a code owner September 20, 2024 18:48
@fishy fishy requested review from kylelemons, konradreiche and pacejackson and removed request for a team September 20, 2024 18:48
id, err := awsZoneIDRackID()
if err != nil {
awsRackFailure.Inc()
slog.Warn("Failed to get AWS availability zone id as rack id", "err", err)
Copy link
Contributor

@kylelemons kylelemons Sep 20, 2024

Choose a reason for hiding this comment

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

🔕 LogDNA will not show the error message to users when the error is moved into the structured portion of the log. I typically recommend having the error as part of the human portion instead, since error is not really adding things to filter against or aggregate beyond what you can already do with the message.

Copy link
Member Author

Choose a reason for hiding this comment

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

my experience is the opposite, that with errors in kv pair makes it easier to find exact errors (it's probably not that helpful if you want to search for partial error messages) on logdna, for use cases like "how many time did this error happen, did we have a spike during this time window?".

with a better logging ui (like GCP's log explorer) you can add an kv value to the summary line in the ui if needed, which is the best of both worlds, but we just don't have that unfortunately.

@fishy fishy merged commit 86ce8d6 into master Sep 23, 2024
2 checks passed
@fishy fishy deleted the kafkabp-zone-id-rack branch September 23, 2024 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants