mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-22 07:10:53 +00:00
refactor: Initialize telemetry with correct service name in Telemetry and InfrastructureStatus
This commit is contained in:
parent
e60b06d014
commit
3f8a5291f0
@ -22,7 +22,6 @@ const APP_NAME: string = "app";
|
||||
|
||||
const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
try {
|
||||
|
||||
// Initialize telemetry
|
||||
Telemetry.init({
|
||||
serviceName: APP_NAME,
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user