Skip to content

Conversation

@alexlivekit
Copy link
Contributor

No description provided.

@alexlivekit alexlivekit requested a review from a team as a code owner October 31, 2025 23:45
Comment on lines +647 to +657
func (c *inboundCall) appendLogValues(kvs ...any) {
c.setLog(c.log().WithValues(kvs...))
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this solve the race?
You can still have two threads getting the same logger via c.log()..., creating a derivative via .WithValues(kvs...), and racing to store their version via c.setLog(). What am I missing?

Having said that, it should be just fine landing this since this is an improvement and carries no degradation.

@alexlivekit alexlivekit merged commit 1ebc507 into main Nov 6, 2025
6 checks passed
@alexlivekit alexlivekit deleted the cancel-test branch November 6, 2025 16:56
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.

4 participants