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: handle pubsub rebalance and closure #3811

Merged
merged 1 commit into from
Dec 18, 2024
Merged

fix: handle pubsub rebalance and closure #3811

merged 1 commit into from
Dec 18, 2024

Conversation

matt2e
Copy link
Collaborator

@matt2e matt2e commented Dec 18, 2024

fixes #3808

@matt2e matt2e requested a review from alecthomas as a code owner December 18, 2024 06:39
@@ -47,6 +47,17 @@ func New(level Level, sink Sink) *Logger {
func (l Logger) Scope(scope string) *Logger {
return l.Attrs(map[string]string{scopeKey: scope})
}

func (l Logger) AppendScope(scope string) *Logger {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Setting scope in pubsub was losing runner scope which made pubsub logs harder to follow

@alecthomas alecthomas mentioned this pull request Dec 18, 2024
@matt2e matt2e merged commit ffbf1d6 into main Dec 18, 2024
95 checks passed
@matt2e matt2e deleted the matt2e/pubsub/close branch December 18, 2024 08:52
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.

Subscribers skip messages on module upgrade
1 participant