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

CP-52744: Thread TraceContext as JSON inside debug_info #6230

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

Conversation

GabrielBuica
Copy link
Contributor

@GabrielBuica GabrielBuica commented Jan 15, 2025

Adds functionality to marshal and unmarshal TraceContext in the tracing library.
Instead of passing only the traceparent in debug_info, the entire TraceContext is now passed as JSON.

This change enables the transfer of baggage across xenopsd boundaries, improving tracing propagation and debugging capabilities. This should also enable later use of baggage as means of passing the thread classification between components.

Latest BVT+BST:211567

@GabrielBuica GabrielBuica force-pushed the private/dbuica/tracecontext-in-debuginfo branch from 9bc7086 to 39d5dfc Compare January 15, 2025 10:01
@GabrielBuica GabrielBuica force-pushed the private/dbuica/tracecontext-in-debuginfo branch from 5aec6e6 to ff91579 Compare January 16, 2025 09:55
ocaml/libs/tracing/tracing.ml Outdated Show resolved Hide resolved
@GabrielBuica GabrielBuica force-pushed the private/dbuica/tracecontext-in-debuginfo branch from ff91579 to fc6d6e0 Compare January 23, 2025 09:29
@edwintorok
Copy link
Contributor

Note that we should merge the current feature/perf into master before merging more changes into feature/perf (otherwise we need to start from scratch with testing feature/perf), so lets wait with merging this PR a bit.

Adds functionality to marshal and unmarshal `TraceContext` in the tracing
library.
Instead of passing only the `traceparent` in `debug_info`, the entire
`TraceContext` is now passed as JSON.

This change enables the transfer of baggage across xenopsd boundaries,
improving tracing propagation and debugging capabilities. This should
also enable later use of `baggage` as means of passing the thread
classification between components.

Signed-off-by: Gabriel Buica <[email protected]>
@GabrielBuica GabrielBuica force-pushed the private/dbuica/tracecontext-in-debuginfo branch from fc6d6e0 to 421fabf Compare January 31, 2025 14:11
Refresh the trace_context with the correct traceparent when creating a
span with `start_tracing_helper` in `context.ml`.

This ensures the tracing of the context has the correct parent.

Signed-off-by: Gabriel Buica <[email protected]>
@GabrielBuica GabrielBuica force-pushed the private/dbuica/tracecontext-in-debuginfo branch from 421fabf to 99afa2e Compare January 31, 2025 15:01
@GabrielBuica GabrielBuica changed the base branch from feature/perf to master February 5, 2025 10:31
@mg12
Copy link
Member

mg12 commented Feb 5, 2025

feature/perf has been merged to master, so this PR is unblocked and can now be merged to master

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.

5 participants