Bump axum-prometheus from 0.4.0 to 0.6.1 in /axum1 #471
Annotations
2 errors
the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied:
src/startup.rs#L81
error[E0277]: the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied
--> src/startup.rs:81:13
|
80 | .layer(
| ----- required by a bound introduced by this call
81 | / tower::ServiceBuilder::new()
82 | | .layer(TraceLayer::new_for_http())
83 | | .layer(metric_layer)
84 | | .layer(Extension(discord_oauth_client))
... |
98 | | .allow_credentials(true),
99 | | ),
| |_________________^ the trait `tower::Service<axum::http::Request<_>>` is not implemented for `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>`
|
= help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `axum_prometheus::lifecycle::service::LifeCycle<S, MC, CallbacksT, OnBodyChunkT>`
= note: required for `Trace<LifeCycle<AddExtension<AddExtension<Session<Cors<Route>, ...>, ...>, ...>, ..., ..., ...>, ...>` to implement `tower::Service<axum::http::Request<_>>`
= note: the full type name has been written to '/home/runner/work/Recipe/Recipe/axum1/target/debug/deps/axum1-a3b1e955cafb203b.long-type-17156561217800144687.txt'
note: required by a bound in `axum::Router::<S, B>::layer`
--> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/axum-0.6.20/src/routing/mod.rs:236:21
|
233 | pub fn layer<L, NewReqBody>(self, layer: L) -> Router<S, NewReqBody>
| ----- required by a bound in this associated function
...
236 | L::Service: Service<Request<NewReqBody>> + Clone + Send + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Router::<S, B>::layer`
|
the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied:
src/startup.rs#L80
error[E0277]: the trait bound `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>: tower::Service<axum::http::Request<_>>` is not satisfied
--> src/startup.rs:80:10
|
80 | .layer(
| ^^^^^ the trait `tower::Service<axum::http::Request<_>>` is not implemented for `axum_prometheus::lifecycle::service::LifeCycle<axum::middleware::AddExtension<axum::middleware::AddExtension<session::Session<tower_http::cors::Cors<axum::routing::Route>, async_redis_session::RedisSessionStore>, utils::GoogleOAuthClient>, utils::DiscordOAuthClient>, tower_http::classify::SharedClassifier<tower_http::classify::status_in_range_is_error::StatusInRangeAsFailures>, axum_prometheus::Traffic<'_>, std::option::Option<axum_prometheus::BodySizeRecorder>>`
|
= help: the trait `tower::Service<http::request::Request<ReqBody>>` is implemented for `axum_prometheus::lifecycle::service::LifeCycle<S, MC, CallbacksT, OnBodyChunkT>`
= note: required for `Trace<LifeCycle<AddExtension<AddExtension<Session<Cors<Route>, ...>, ...>, ...>, ..., ..., ...>, ...>` to implement `tower::Service<axum::http::Request<_>>`
= note: the full type name has been written to '/home/runner/work/Recipe/Recipe/axum1/target/debug/deps/axum1-a3b1e955cafb203b.long-type-17156561217800144687.txt'
|