-
Notifications
You must be signed in to change notification settings - Fork 32
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
Zipkin pipeline fail #32
Comments
Merged
@Farkal it should work if you use the following [dependencies]
# ...
opentelemetry-zipkin = { version = "0.8", features = ["reqwest-client"], default-features = false } |
If you want to use things currently, you can specify the http client when you start the zipkin pipeline: [dependencies]
actix-web = "3.2"
actix-web-opentelemetry = "0.7"
opentelemetry = { version = "0.9", features = ["reqwest"] }
opentelemetry-zipkin = { version = "0.7", default-features = false }
reqwest = "0.10" use actix_web::{get, web, App, HttpServer, Responder};
use actix_web_opentelemetry::RequestTracing;
#[get("/{id}/{name}/index.html")]
async fn index(web::Path((id, name)): web::Path<(u32, String)>) -> impl Responder {
format!("Hello {}! id:{}", name, id)
}
#[actix_web::main]
async fn main() -> std::io::Result<()> {
opentelemetry_zipkin::new_pipeline()
.with_http_client(reqwest::Client::new())
.install()
.expect("pipeline install error");
HttpServer::new(|| App::new().service(index).wrap(RequestTracing::new()))
.bind("127.0.0.1:8080")?
.run()
.await
} |
Wow that was quick ! Thank you very much ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If i try to use zipkin pipeline instead of jaeger it fail with:
Cannot drop a runtime in a context where blocking is not allowed. This happens when a runtime is dropped from within an asynchronous context.
Code:
The text was updated successfully, but these errors were encountered: