diff --git a/App/Index.ts b/App/Index.ts index dffa8a38ce4..8148b6b2f8e 100755 --- a/App/Index.ts +++ b/App/Index.ts @@ -22,12 +22,11 @@ const APP_NAME: string = "app"; const init: PromiseVoidFunction = async (): Promise => { try { - // Initialize telemetry Telemetry.init({ serviceName: APP_NAME, }); - + const statusCheck: PromiseVoidFunction = async (): Promise => { // Check the status of infrastructure components return await InfrastructureStatus.checkStatus({ diff --git a/CommonServer/Utils/Telemetry.ts b/CommonServer/Utils/Telemetry.ts index 2296461a538..f99dc4c79f5 100644 --- a/CommonServer/Utils/Telemetry.ts +++ b/CommonServer/Utils/Telemetry.ts @@ -102,7 +102,6 @@ export default class Telemetry { } public static init(data: { serviceName: string }): opentelemetry.NodeSDK { - if (!this.sdk) { const headers: Dictionary = this.getHeaders(); @@ -150,8 +149,6 @@ export default class Telemetry { logs.setGlobalLoggerProvider(loggerProvider); - - const nodeSdkConfiguration: Partial = { idGenerator: new AWSXRayIdGenerator(),