Show OpenTelemetry SDK initialization & shutdown in debug mode only (#6096)

This commit is contained in:
Jerop Kipruto
2025-08-13 10:38:45 +09:00
committed by GitHub
parent 806af05b97
commit 431a312d4d
3 changed files with 16 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ describe('telemetry', () => {
afterEach(async () => {
// Ensure we shut down telemetry even if a test fails.
if (isTelemetrySdkInitialized()) {
await shutdownTelemetry();
await shutdownTelemetry(mockConfig);
}
});
@@ -57,7 +57,7 @@ describe('telemetry', () => {
it('should shutdown the telemetry service', async () => {
initializeTelemetry(mockConfig);
await shutdownTelemetry();
await shutdownTelemetry(mockConfig);
expect(mockNodeSdk.shutdown).toHaveBeenCalled();
});