fix(syncing-server): disable ot tracing

This commit is contained in:
Karol Sójko 2024-01-08 06:16:54 +01:00
parent b767e1f072
commit a881dd2d79
No known key found for this signature in database
GPG key ID: C2F813669419D05F

View file

@ -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}`)