@@ -18,7 +18,7 @@ Semantic conventions for Exceptions are defined for the following signals:
1818
1919** Status** : [ Development] [ DocumentStatus ]
2020
21- When instrumented operation fails with an exception, instrumentation SHOULD record
21+ When an instrumented operation fails with an exception, instrumentation SHOULD record
2222this exception as a [ span event] ( exceptions-spans.md ) or a [ log record] ( exceptions-logs.md ) .
2323
2424Recording exceptions on spans SHOULD be accompanied by
@@ -28,16 +28,16 @@ Recording exceptions on spans SHOULD be accompanied by
2828Refer to the [ Recording errors] ( /docs/general/recording-errors.md ) document for additional
2929details on how to record errors across different signals.
3030
31- It's RECOMMENDED to use ` Span.recordException ` API or logging library API that takes exception instance
31+ It's RECOMMENDED to use the ` Span.recordException ` API or logging library API that takes exception instance
3232instead of providing individual attributes. This enables the OpenTelemetry SDK to
3333control what information is recorded based on application configuration.
3434
3535It's NOT RECOMMENDED to record the same exception more than once.
3636It's NOT RECOMMENDED to record exceptions that are handled by the instrumented library.
3737
38- For example, in this code-snippet, ` ResourceNotFoundException ` is handled and corresponding
39- native instrumentation should not record it. Other exceptions, that are propagated
40- to the caller, should be recorded (or logged) once.
38+ For example, in this code-snippet, ` ResourceAlreadyExistsException ` is handled and the corresponding
39+ native instrumentation should not record it. Exceptions which are propagated
40+ to the caller should be recorded (or logged) once.
4141
4242``` java
4343public boolean createIfNotExists(String resourceId) throws IOException {
0 commit comments