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

Remove goroutine ID field from logger #977

Merged
merged 1 commit into from Jul 18, 2023
Merged

Remove goroutine ID field from logger #977

merged 1 commit into from Jul 18, 2023

Conversation

ka3de
Copy link
Collaborator

@ka3de ka3de commented Jul 18, 2023

Description of changes

Adding the goroutine ID as a log field required copying the calling goroutine stack into a buffer and parsing the ID from it. This was done for each log action which is very inefficient and does not provide much value as we are already using a field for the iteration ID which allows us to correlate logs. Therefore our decision is to remove it completely.

Adding the goroutine ID as a log field required copying the calling
goroutine stack into a buffer and parsing the ID from it. This was done
for each log action which is very inefficient and does not provide much
value as we are already using a field for the iteration ID. Therefore
our decision is to remove it completely.
@ka3de ka3de self-assigned this Jul 18, 2023
@ka3de ka3de requested a review from ankur22 July 18, 2023 13:48
Copy link
Collaborator

@ankur22 ankur22 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@ka3de ka3de merged commit 44fce67 into main Jul 18, 2023
13 checks passed
@ka3de ka3de deleted the remove-log-goroutineid branch July 18, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants