Skip to content

Commit 63e791c

Browse files
committed
add perf note
1 parent 4719c70 commit 63e791c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

specification/logs/sdk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,11 @@ from the exception on the `LogRecord` with the conventions outlined in the
231231
User-provided attributes MUST take precedence and MUST NOT be overwritten by
232232
exception-derived attributes.
233233

234+
Note: For performance optimization, SDKs MAY take the configured
235+
[attribute limits](#logrecord-limits) into consideration when generating large
236+
exception attributes (e.g., `exception.stacktrace`). This can help avoid
237+
unnecessary processing of large attribute values that would be truncated anyway.
238+
234239
**Status**: [Development](../document-status.md) Before processing a log record,
235240
the implementation MUST apply the filtering rules defined by the
236241
[LoggerConfig](#loggerconfig) (in case `Enabled` was not called prior to

0 commit comments

Comments
 (0)