refactor: Initialize telemetry with correct service name in Telemetry and InfrastructureStatus

This commit is contained in:
Simon Larsen 2024-08-02 16:50:13 -06:00
parent e60b06d014
commit 3f8a5291f0
No known key found for this signature in database
GPG Key ID: 96C5DCA24769DBCA
2 changed files with 1 additions and 5 deletions

View File

@ -22,7 +22,6 @@ const APP_NAME: string = "app";
const init: PromiseVoidFunction = async (): Promise<void> => {
try {
// Initialize telemetry
Telemetry.init({
serviceName: APP_NAME,

View File

@ -102,7 +102,6 @@ export default class Telemetry {
}
public static init(data: { serviceName: string }): opentelemetry.NodeSDK {
if (!this.sdk) {
const headers: Dictionary<string> = this.getHeaders();
@ -150,8 +149,6 @@ export default class Telemetry {
logs.setGlobalLoggerProvider(loggerProvider);
const nodeSdkConfiguration: Partial<opentelemetry.NodeSDKConfiguration> =
{
idGenerator: new AWSXRayIdGenerator(),