add comment about the blocking await above this config check

comment saying this would have been nice. moved the config checks above
that blocking call.

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2023-12-24 00:38:06 -05:00 committed by June
parent 071f9959a6
commit 757ba60ff9

View file

@ -176,6 +176,8 @@ async fn main() {
info!("Starting server");
run_server().await.unwrap();
// if server runs into critical error and shuts down, shut down the tracer provider if jaegar is used.
// awaiting run_server() is a blocking call so putting this after is fine, but not the other options above.
if config.allow_jaeger {
opentelemetry::global::shutdown_tracer_provider();
}