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
This document defines how to record exceptions and
6
-
their required attributes.
5
+
This document defines how to record exceptions and their attributes.
7
6
8
7
<!-- toc -->
9
8
@@ -14,9 +13,14 @@ their required attributes.
14
13
15
14
## Recording an Exception
16
15
17
-
An exception SHOULD be recorded as an `Event` on the span during which it occurred.
16
+
An exception SHOULD be recorded as an `Event` on the span during which it occurred
17
+
if and only if it remains unhandled when the span ends and causes the span status
18
+
to be set to ERROR.
19
+
18
20
The name of the event MUST be `"exception"`.
19
21
22
+
**Status**: [Development](../document-status.md) - Refer to the [Recording Errors](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/recording-errors.md) document for the details on how to report errors across signals.
23
+
20
24
A typical template for an auto-instrumentation implementing this semantic convention
21
25
using an [API-provided `recordException` method](api.md#record-exception)
0 commit comments