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
-[Trade-offs and mitigations](#trade-offs-and-mitigations)
16
16
-[Prior art and alternatives](#prior-art-and-alternatives)
@@ -51,8 +51,13 @@ starting point, but they are encouraged to adjust it to their needs.
51
51
This guidance boils down to the following:
52
52
53
53
Instrumentations should record exception information (along with other context) on the log record and
54
-
use appropriate severity - only unhandled exceptions should be recorded as `Error` or higher. Instrumentations
55
-
should strive to report each exception once.
54
+
use appropriate severity - only unhandled exceptions should be recorded as `Error` or higher.
55
+
56
+
> [!NOTE]
57
+
>
58
+
> As a result of applying this guidance, only top-level instrumentations (native and non-native) should record exceptions at `Error` (or higher) severity.
59
+
60
+
Instrumentations should strive to report each exception once.
56
61
57
62
Instrumentations should provide the whole exception instance to the OTel SDK (instead of individual attributes)
58
63
and the SDK should, based on configuration, decide which information to record. As a default,
@@ -66,17 +71,13 @@ this OTEP proposes to record exception stack traces on logs with `Error` or high
66
71
2. Instrumentations for incoming requests, message processing, background job execution, or others that wrap user code and usually create local root spans, should record logs
67
72
for unhandled exceptions with `Error` severity.
68
73
69
-
> [!NOTE]
70
-
>
71
-
> Only top-level instrumentations (native and non-native) should record exceptions at `Error` (or higher) severity.
72
-
73
74
Some runtimes provide global exception handler that can be used to log exceptions.
74
75
Priority should be given to the instrumentation point where the operation context is available.
75
76
Language SIGs are encouraged to give runtime-specific guidance. For example, here is the
0 commit comments