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

Structural tracing for Cloud Hypervisor #6393

Open
liuw opened this issue Apr 15, 2024 · 3 comments
Open

Structural tracing for Cloud Hypervisor #6393

liuw opened this issue Apr 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@liuw
Copy link
Member

liuw commented Apr 15, 2024

At the moment we can only rely on the output from the log crate for debugging. When there are multiple components that dump into the log, it is not easy to understand what thread does what.

The tracing crate provides structural output. It also can be easily integrated with the OpenTelemetry framework.

@liuw
Copy link
Member Author

liuw commented Apr 16, 2024

The log crate also seems to support structural logging with kv feature enabled per its document. Not sure how easy that is to integrate with OpenTelemetry yet.

@weltling
Copy link
Member

The opentelemetry-rust project states logs are alpha, but it seems that logs have a good chance to be integrated depending on the current logging library in use.

For the traces, indeed the opentelemetry-rust project recommends using the tracing crate on their readme. Actually it seems strange, as the OpenTelemetry framework could be used directly. But one could also wrap both somehow and chose at the compile time, if needed.

It seems it need some exercise also to ensure the solution plays ok with OpenTelemetry.

Thanks

@weltling
Copy link
Member

weltling commented Apr 16, 2024

It also seems the tracing project would be useful even by itself? Thanks

@liuw liuw added the enhancement New feature or request label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants