Skip to content
Snippets Groups Projects
Commit 757ba60f authored by 🥺's avatar 🥺 :transgender_flag: Committed by 🥺
Browse files

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: default avatarstrawberry <strawberry@puppygock.gay>
parent 071f9959
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment