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:
parent
071f9959a6
commit
757ba60ff9
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue