mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
refactor: Initialize telemetry with correct service name in Telemetry and InfrastructureStatus
This commit is contained in:
parent
e60b06d014
commit
3f8a5291f0
@ -22,12 +22,11 @@ const APP_NAME: string = "app";
|
||||
|
||||
const init: PromiseVoidFunction = async (): Promise<void> => {
|
||||
try {
|
||||
|
||||
// Initialize telemetry
|
||||
Telemetry.init({
|
||||
serviceName: APP_NAME,
|
||||
});
|
||||
|
||||
|
||||
const statusCheck: PromiseVoidFunction = async (): Promise<void> => {
|
||||
// Check the status of infrastructure components
|
||||
return await InfrastructureStatus.checkStatus({
|
||||
|
@ -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