You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Backend services frequently fail in ways that never become telemetry: uncaught exceptions and unhandled promise rejections. Unless users manually register process-level handlers or add a third-party error tracker, these failures produce no OpenTelemetry logs, which means:
crashes and fatal errors are missing from observability backends
incident timelines are incomplete (no “last error” record)
teams lose the stacktrace context needed to triage production issues quickly
error tracking experiences are inconsistent across services and languages.
Describe the solution you'd like
When an application throws an uncaught exception or has an unhandled rejection, the SDK should emit a LogRecord that captures the exception details.
The log should include the exception semantic convention attributes (exception.type, exception.message, exception.stacktrace) and a meaningful severity (e.g., FATAL for uncaught exceptions, ERROR for unhandled rejections). This can use the new Exceptions API Add log exception support to Logger API/SDK opentelemetry-js#6379
The resulting log should be exported through the normal logs pipeline so it appears in the same backend alongside other logs.
Additional context
Capturing these exceptions as logs provides immediate value for error tracking, incident response, and troubleshooting by ensuring the last failure event is recorded in the OpenTelemetry pipeline. It also reduces the gap between tracing/logs and error tracking, giving a consistent experience across services without forcing each team to add bespoke handlers.
Is your feature request related to a problem? Please describe.
Backend services frequently fail in ways that never become telemetry: uncaught exceptions and unhandled promise rejections. Unless users manually register process-level handlers or add a third-party error tracker, these failures produce no OpenTelemetry logs, which means:
Describe the solution you'd like
LogRecordthat captures the exception details.exception.type,exception.message,exception.stacktrace) and a meaningful severity (e.g., FATAL for uncaught exceptions, ERROR for unhandled rejections). This can use the newExceptionsAPI Add log exception support to Logger API/SDK opentelemetry-js#6379Additional context
Capturing these exceptions as logs provides immediate value for error tracking, incident response, and troubleshooting by ensuring the last failure event is recorded in the OpenTelemetry pipeline. It also reduces the gap between tracing/logs and error tracking, giving a consistent experience across services without forcing each team to add bespoke handlers.
I will send a PR implementing this feature.