Skip to content

CP-47063: Tracing instrumentation around message-switch send #6503

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

Merged

Conversation

GabrielBuica
Copy link
Contributor

@GabrielBuica GabrielBuica commented Jun 4, 2025

Instrument xenops vm non-atomic functions.
Instruments:

  • VM.add,
  • VM.stat,
  • VM.exists,
  • VM.list.

Instruments switch_rpc according to OpenTelemetry standard on
instrumenting rpc calls.

  • server.address is the name of the message queue.

Intruments sending the message on a queue according to OpenTelemetry
standard on instrumenting messaging.

  • destination is the name of the message queue.

Tracing.with_tracing now accepts an optional argument to set the Span
Kind.

image

@GabrielBuica GabrielBuica force-pushed the private/dbuica/CP-46859-dev branch 2 times, most recently from 9f13ae1 to dad01ee Compare June 4, 2025 14:44
@GabrielBuica GabrielBuica changed the title CP-46859: Tracing instrumentation around message-switch send CP-47063: Tracing instrumentation around message-switch send Jun 4, 2025
@psafont
Copy link
Member

psafont commented Jun 4, 2025

Is it difficult to instrument other calls, or is it because it generates too much data?

@GabrielBuica
Copy link
Contributor Author

Is it difficult to instrument other calls, or is it because it generates too much data?

@psafont I am planning to instrument more in subsequent PRs. I think the most difficult part would be passing the a debug_info type in the call params which contains the trace_context and the dbg. Now, we are passing a string and we need to process that string everytime...

@GabrielBuica GabrielBuica force-pushed the private/dbuica/CP-46859-dev branch from dad01ee to fbe33d6 Compare June 5, 2025 09:44
@GabrielBuica GabrielBuica force-pushed the private/dbuica/CP-46859-dev branch from ad215a8 to 895636b Compare June 9, 2025 14:16
Instruments:
- `VM.add`,
- `VM.stat`,
- `VM.exists`,
- `VM.list`.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
Instruments `switch_rpc` according to OpenTelemetry standard on
instrumenting rpc calls.
- `server.address` is the name of the message queue.

Intruments sending the message on a queue according to OpenTelemetry
standard on instrumenting messaging.
- `destination` is the name of the message queue.

`Tracing.with_tracing` now accepts an optional argument to set the Span
Kind.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
@GabrielBuica GabrielBuica force-pushed the private/dbuica/CP-46859-dev branch from 895636b to 5138375 Compare June 12, 2025 09:40
@edwintorok edwintorok added this pull request to the merge queue Jun 12, 2025
Merged via the queue into xapi-project:master with commit 502fc45 Jun 12, 2025
23 of 24 checks passed
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