aboutsummaryrefslogtreecommitdiff
path: root/src/garage/server.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-05 10:56:44 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-10 13:25:10 +0200
commit99fcfa3844a346463e5739fec19ac2a6b560adfc (patch)
treecb82b76999f81f0c5e351d062618c89f64ac3e99 /src/garage/server.rs
parent633958c7b1ce9c83df5159051fd299b484d0d797 (diff)
downloadgarage-99fcfa3844a346463e5739fec19ac2a6b560adfc.tar.gz
garage-99fcfa3844a346463e5739fec19ac2a6b560adfc.zip
Make background runner terminate correctly
Diffstat (limited to 'src/garage/server.rs')
-rw-r--r--src/garage/server.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/garage/server.rs b/src/garage/server.rs
index 4c0f8653..ffbe97ec 100644
--- a/src/garage/server.rs
+++ b/src/garage/server.rs
@@ -110,6 +110,7 @@ pub async fn run_server(config_file: PathBuf) -> Result<(), Error> {
// Remove RPC handlers for system to break reference cycles
garage.system.netapp.drop_all_handlers();
+ opentelemetry::global::shutdown_tracer_provider();
// Await for netapp RPC system to end
run_system.await?;