-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
What's the best way for Rust developers to get started? #1425
Comments
I think https://github.com/lukemathwalker/tracing-actix-web could be worth exploring. We are setting up a Rust backend against Honeycomb right now and will open source our progress here: https://github.com/deversify/dev_api/blob/main/src/tracing.rs When we solved a few kinks, we can document it more if it's of value to the community. The best guide for me so far has been Luca Palmieri's Zero to Prod book and the articles. I know that there are links to some of his content via |
The best way to log things seem to be to add the |
Yeah, I definitely think going through tracing (with opentelemetry-tracing) is the easiest/most idiomatic way to get going. |
I don't think there is a most famous/widely used web server framework in Rust. actix web and axum maybe two that worthing looking.
We do have integration with actix in https://github.com/OutThereLabs/actix-web-opentelemetry
Personally, I think
Rust is unique as it already has |
We have a rust getting started now, so some requirements for this issue have been resolved. But I think there is some more that needs to be done (e.g. how much we need to write something about |
@cijothomas has the rust sig come to a consensus on how to get started? I'm fine with keeping this open since we do have a getting started page now, although it does not use the |
Not really :-( We are trying to resolve the fundamental question of using OTel Tracing API vs the I didn't see this particular issue until now. Will share an update here once we resolve open-telemetry/opentelemetry-rust#1571. It'll be ~1-2 months before a decision is made (the actual implementation, could take more time, depending on the decided path) https://opentelemetry.io/docs/languages/rust/getting-started/ is a reasonable start using only OTel Tracing API. It doesn't look like its taking care of context propagation/restoration. If the intention was for the getting-started guide to showcase context propagation/restoration, then https://github.com/open-telemetry/opentelemetry-rust/tree/main/examples/tracing-http-propagator is a good source to adopt from. |
Sounds good! |
I wrote that getting started guide for rust without having that much experience with rust, so it's basic and needs some love and attention, so if it can be made better in any way let's go for it. For the context propagation we could take that existing example and create an additional page on that topic similar to the pages on that subject we have for other languages. |
I was re-learning Rust last evening with aims to figure out how to write a decent Getting Started article. But I realized pretty quickly that there's some decision points to make about such an article, and I'm not equipped to make those decisions:
tracer.in_span
which takes care of the span lifecycle and borrowing semantics at the cost of nesting code, andtracer.start
which requires you to manage the span more intricately. Which is better for beginners? Why?Would definitely appreciate @open-telemetry/rust-approvers and anyone who uses Rust with OTel to weigh in here 🙂
The text was updated successfully, but these errors were encountered: