From a881dd2d79d0e394b0b4f5d07e63821c93d45219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Mon, 8 Jan 2024 06:16:54 +0100 Subject: [PATCH] fix(syncing-server): disable ot tracing --- packages/syncing-server/bin/server.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/packages/syncing-server/bin/server.ts b/packages/syncing-server/bin/server.ts index 4a618afb2..b80fec892 100644 --- a/packages/syncing-server/bin/server.ts +++ b/packages/syncing-server/bin/server.ts @@ -1,10 +1,6 @@ import 'reflect-metadata' -import { OpenTelemetrySDK } from '@standardnotes/domain-events-infra' -import { MapperInterface, ServiceIdentifier } from '@standardnotes/domain-core' - -const sdk = new OpenTelemetrySDK({ serviceName: ServiceIdentifier.NAMES.SyncingServer }) -sdk.start() +import { MapperInterface } from '@standardnotes/domain-core' import '../src/Infra/InversifyExpressUtils/AnnotatedFallbackController' import '../src/Infra/InversifyExpressUtils/AnnotatedHealthCheckController' @@ -153,14 +149,6 @@ void container.load().then((container) => { logger.info('gRPC server closed') } }) - sdk - .shutdown() - .then(() => { - logger.info('OpenTelemetry SDK shut down') - }) - .catch((error) => { - logger.error(`Failed to shut down OpenTelemetry SDK: ${error.message}`) - }) }) logger.info(`Server started on port ${process.env.PORT}`)