Skip to content

Commit a187861

Browse files
author
Liudmila Molkova
committed
more nits
1 parent 3fa84ba commit a187861

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

oteps/4333-recording-exceptions-on-logs.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ OTel SHOULD provide configuration option allowing to specify severity threshold
214214
at which exception stack traces are to be collected.
215215

216216
It SHOULD be possible to distinguish between the absence of configuration and an
217-
explicit configuration for the default value to support [backward-compatibility in logging bridges](#migrating-logging-bridges).
217+
explicit configuration for the default value to support [backward-compatibility in log bridges](#migrating-log-bridges).
218218

219219
The exact configuration option name and semantics will be defined at the OTEP implementation stage.
220220
For the scope of this document, let's use 'exception stack traces collection severity threshold'.
@@ -244,14 +244,18 @@ This is a simplified version of [stability opt-in migration](https://github.com/
244244

245245
Today log bridges translate exception instances into attributes on OTel log records.
246246

247-
Log bridges that capture stack traces regardless of log record severity SHOULD preserve
248-
their current behavior when the user has not provided explicit [exception stack traces
249-
collection severity threshold](#configuration).
247+
Log bridges that capture stack traces regardless of log record severity,
248+
in their current major version, SHOULD preserve their current behavior when the
249+
user has not provided explicit [exception stack traces collection severity threshold](#configuration).
250250

251251
If user has provided explicit exception stack traces collection severity threshold,
252252
log bridge SHOULD record stack traces accordingly and MAY use `setException` convenience
253253
method described in [API changes](#api-changes) section.
254254

255+
In the next major version, log bridge SHOULD start using `setException` method or
256+
follow defaults documented for OTel SDK when explicitly recording `exception.*`
257+
attributes.
258+
255259
## Examples
256260

257261
### Logging errors from a client library in a user application

0 commit comments

Comments
 (0)