-
Notifications
You must be signed in to change notification settings - Fork 121
vmbus_server: improve tracing #1027
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
base: main
Are you sure you want to change the base?
vmbus_server: improve tracing #1027
Conversation
I think we want to find some kind of span-based solution rather than have common metadata that we have to remember to put in each event. |
Probably ideally the thing that constructs the vmbus server should create the span, since it knows the VTL and also other identifying metadata. |
c7ef5bf
to
8ed53dc
Compare
@@ -1866,7 +1892,7 @@ impl<'a, N: 'a + Notifier> ServerWithNotifier<'a, N> { | |||
| ChannelState::Revoked | |||
| ChannelState::Reoffered | |||
| ChannelState::ClosingClientRelease => { | |||
tracing::error!(?offer_id, state = ?channel.state, "invalid open complete") | |||
tracing::error!(state = ?channel.state, "Invalid channel state"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conventionally we start with a lowercase letter.
@@ -215,28 +222,33 @@ enum ConnectionState { | |||
Disconnecting { | |||
next_action: ConnectionAction, | |||
modify_sent: bool, | |||
trace: Span, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there really no better way of doing this than storing this span everywhere? What is the reason we need this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I had hoped we'd just have a single root span for the vmbus server task.
Adds the associated vtl to vmbus_server trace events to aid debugging.