Skip to content

Commit

Permalink
Don't log warmup errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalSumislawski committed Jan 3, 2025
1 parent dd9429a commit 1b4ef84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nodejs/packages/cx-wrapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ if (parseBooleanEnvvar("OTEL_WARM_UP_EXPORTER") ?? true) {
await tracerProvider.forceFlush();
diag.debug(`Initialization: exporter warmed up`);
} catch (e) {
diag.error(`Initialization: exporter warmup failed: ${e}`);
// The export may fail with timeout if the lambda instance gets frozen between init and the first invocation. We don't really care about that failure.
// diag.error(`Initialization: exporter warmup failed: ${e}`);
}
})();
} catch (e) {}
Expand Down

0 comments on commit 1b4ef84

Please sign in to comment.