From e852b1c6c6637c349524c95401e21db504d78e87 Mon Sep 17 00:00:00 2001 From: Zen Yui Date: Thu, 3 Jun 2021 19:00:20 -0400 Subject: [PATCH] hotfix: fix registration of otel sdk (#371) --- .../scala/com/namely/chiefofstate/ServiceBootstrapper.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/service/src/main/scala/com/namely/chiefofstate/ServiceBootstrapper.scala b/code/service/src/main/scala/com/namely/chiefofstate/ServiceBootstrapper.scala index d7c6433a..8b09a9c0 100644 --- a/code/service/src/main/scala/com/namely/chiefofstate/ServiceBootstrapper.scala +++ b/code/service/src/main/scala/com/namely/chiefofstate/ServiceBootstrapper.scala @@ -48,7 +48,9 @@ object ServiceBootstrapper { Behaviors.receiveMessage[scalapb.GeneratedMessage] { case _: MigrationDone => // start the telemetry tools and register global tracer - TelemetryTools(cosConfig.telemetryConfig).start() + TelemetryTools(cosConfig.telemetryConfig) + .start() + .buildAndRegisterGlobal() // We only proceed when the data stores and various migrations are done successfully. log.info("Data store migration complete. About to start...")