Skip to content

Conversation

@mcastorina
Copy link
Contributor

Description:

Documents possibly unintuitive behavior of log.AddSink

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@mcastorina mcastorina requested a review from a team December 3, 2025 01:57
@mcastorina
Copy link
Contributor Author

Closing in favor of #4582

@mcastorina mcastorina closed this Dec 5, 2025
rosecodym added a commit that referenced this pull request Dec 8, 2025
Counterintuitively, a new sink added to an existing logger will not inherit the existing logger's key-value pairs. This has only caused a problem in practice with respect to a small number of known key-value pairs, so this PR creates a way to add specific key-value pairs to new sinks.

This supersedes #4579.
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