Skip to content

Add liveness reporting for the yamux observer#101

Merged
temporal-nick merged 3 commits intomainfrom
nick/fixes
Jun 24, 2025
Merged

Add liveness reporting for the yamux observer#101
temporal-nick merged 3 commits intomainfrom
nick/fixes

Conversation

@temporal-nick
Copy link
Copy Markdown
Collaborator

What was changed

On panic, log a warning containing whatever went wrong

Why?

If there's any panic-errors, it would be good to have a log line describing what happened. Followup to #97 (comment)

@temporal-nick temporal-nick requested a review from a team as a code owner June 23, 2025 20:57
@temporal-nick temporal-nick merged commit bcb9ae1 into main Jun 24, 2025
5 checks passed
@temporal-nick temporal-nick deleted the nick/fixes branch June 24, 2025 16:27
// This is an async monitor. Don't let it crash the rest of the program if there's a problem
recover()
err := recover()
logger.Warn("Yamux observer died!", tag.NewStringTag("muxConfigName", config.Name), tag.NewAnyTag("err", err))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I would just use error as normally we just query error logs.

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