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

example with rocket.rs #1058

Open
genofire opened this issue May 9, 2023 · 4 comments
Open

example with rocket.rs #1058

genofire opened this issue May 9, 2023 · 4 comments
Labels
A-trace Area: issues related to tracing documentation/examples Improvements or additions to documentation or examples good first issue Good for newcomers help wanted Good for taking. Extra help will be provided by maintainers/approvers

Comments

@genofire
Copy link

genofire commented May 9, 2023

for logging / Tracing and metrics would be nice

@cijothomas
Copy link
Member

Does rocket.rs have an instrumentation producing otel traces (or tokio/tracing) similar to https://github.com/open-telemetry/opentelemetry-rust/blob/main/examples/actix-http-tracing/Cargo.toml#L9 ?

@TommyCpp TommyCpp added documentation/examples Improvements or additions to documentation or examples A-trace Area: issues related to tracing labels May 25, 2023
@hdost hdost added good first issue Good for newcomers help wanted Good for taking. Extra help will be provided by maintainers/approvers labels Oct 25, 2023
@sescer
Copy link

sescer commented Nov 30, 2023

I'm learning rust at the moment and I would like to take issue for education purposes. Can you provide me detail about the examples that you want to have? Thank you

@genofire
Copy link
Author

i like to have an webserver developed with https://rocket.rs/ just to show a hello world as "static" site. But the generated logs / traces and metrics are exposed the opentelemetry way. (an accesslog and metrics about resonse of statuscode and responsetime)

@cijothomas
Copy link
Member

https://github.com/open-telemetry/opentelemetry-rust/tree/main/examples/tracing-http-propagator Here is an example based on hyper. See if this helps.. I am not quite sure if this repo wants to maintain an example for each webserver, as it'll be hard to maintain it in the long run..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trace Area: issues related to tracing documentation/examples Improvements or additions to documentation or examples good first issue Good for newcomers help wanted Good for taking. Extra help will be provided by maintainers/approvers
Projects
None yet
Development

No branches or pull requests

5 participants