Skip to content

Commit

Permalink
no unhandled rejection
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Oct 28, 2024
1 parent 3ddcc6d commit 7046bbb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/telemetry/src/otel-context-aware-slog.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,13 @@ export const makeSlogSender = async options => {
10,
);

logger.emit({
...JSON.parse(serializeSlogObj(logRecord)),
severityNumber: SeverityNumber.INFO,
timestamp: [seconds, nanoSeconds],
});
logger
.emit({
...JSON.parse(serializeSlogObj(logRecord)),
severityNumber: SeverityNumber.INFO,
timestamp: [seconds, nanoSeconds],
})
.catch(() => {});
};

const shutdown = async () => {
Expand Down

0 comments on commit 7046bbb

Please sign in to comment.