Skip to content

CP-308253 & CP-50001: Instruments Message-switch process and xapi_xenops.ml #6527

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

GabrielBuica
Copy link
Contributor

@GabrielBuica GabrielBuica commented Jun 12, 2025

As promised, more tracing instrumentation around message switch in xenopsd.

There is also some instrumentation of Events_from_xenops around waiting/waking up for events. Currently these are not straight forward linkable as they have different traces, e.g. one is on the vm op and the other in the xapi event watch thread.

It is now possible to search for for "subscribe/settle <queue_name>" spans that have the same attribute value for "messaging.message.id". This should help debugging.

image
image

Instruments `process`/`Consumers` spans of message-switch service in
xenopsd.

Signed-off-by: Gabriel Buica <[email protected]>
Intruments functions in `xapi_xenops.ml` that carry the
traceparent/tracecontext through dbg.

`Debug_info.with_dbg` now accepts setting up attributes for spans.

Also, instruments `Events_from_xenopsd` to capture the event spans:
`subscribe`/`settle`. It's nto straight forward to link them on the same
trace. For now the only way they are connnected is having the same
`message.id` attribute.

Signed-off-by: Gabriel Buica <[email protected]>
Intruments the functions in `xapi_xenops.ml` that carry the
traceparent/tracecontext through `context`.

Signed-off-by: Gabriel Buica <[email protected]>
This function is called recursively and the context span is only closed
on failure. This makes it hard to read the trace.

Therefore, I am resetting the context tracing each recursion step and now
each recursion step will have its own trace.

Signed-off-by: Gabriel Buica <[email protected]>
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.

2 participants