Skip to content

Commit

Permalink
fix debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rmyz committed Feb 13, 2025
1 parent ced8cf9 commit ea99d35
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export async function ingestSynthtraceDataHook(config: FullConfig, data: Synthtr
log
);

log.debug('[setup] loading apm synthtrace data');
await Promise.all(
apm.map((event) => {
apmSynthtraceEsClient.index(
Expand All @@ -80,7 +81,7 @@ export async function ingestSynthtraceDataHook(config: FullConfig, data: Synthtr
})
);

log.debug('[setup] loading apm synthtrace data');
log.debug('[setup] apm synthtrace data loaded successfully');
}

if (hasInfraData) {
Expand All @@ -92,6 +93,7 @@ export async function ingestSynthtraceDataHook(config: FullConfig, data: Synthtr
log
);

log.debug('[setup] loading infra synthtrace data');
await Promise.all(
infra.map((event) => {
infraSynthtraceEsClient.index(
Expand All @@ -100,12 +102,13 @@ export async function ingestSynthtraceDataHook(config: FullConfig, data: Synthtr
})
);

log.debug('[setup] loading infra synthtrace data');
log.debug('[setup] infra synthtrace data loaded successfully');
}

if (hasOtelData) {
const otelSynthtraceEsClient = getOtelSynthtraceEsClient(esClient, log);

log.debug('[setup] loading otel synthtrace data');
await Promise.all(
otel.map((event) => {
otelSynthtraceEsClient.index(
Expand All @@ -114,7 +117,7 @@ export async function ingestSynthtraceDataHook(config: FullConfig, data: Synthtr
})
);

log.debug('[setup] loading otel synthtrace data');
log.debug('[setup] otel synthtrace data loaded successfully');
}
});
}

0 comments on commit ea99d35

Please sign in to comment.