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

fix: change sample key to not include args in honeycomb logger #893

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

VinozzZ
Copy link
Contributor

@VinozzZ VinozzZ commented Nov 1, 2023

Which problem is this PR solving?

Previously, Honeycomb logger uses the entire log message as the sampling key. If a log message contains high-cardinality fields, the throttle mechanism will no longer work.

Short description of the changes

This PR changes the key used for sampling from the entire log message to only use the format string

@VinozzZ VinozzZ requested a review from a team as a code owner November 1, 2023 21:20
Copy link
Contributor

@kentquirk kentquirk left a comment

Choose a reason for hiding this comment

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

LGTM!

(Also, I'm not sure "pervasively" is the word you want there. Did you mean "perversely"?)

@fchikwekwe
Copy link
Contributor

I actually think the word "pervasively" makes more sense in this context.

@VinozzZ
Copy link
Contributor Author

VinozzZ commented Nov 2, 2023

Hahaha, autocorrect definitely gave it more thought than me. My intention is previously lol

@VinozzZ VinozzZ merged commit b0533c1 into main Nov 2, 2023
5 checks passed
@VinozzZ VinozzZ deleted the yingrong.fix_sampling_key_in_honeycomb_logger branch November 2, 2023 19:36
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