Skip to content

Commit b0a5a8d

Browse files
a-recknagelArne Caratti
authored and
Arne Caratti
committed
added a comment exmplaining the reason behind log record attribute exclusion
1 parent 772be51 commit b0a5a8d

File tree

1 file changed

+3
-0
lines changed
  • opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal

1 file changed

+3
-0
lines changed

opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py

+3
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@
5555
_DEFAULT_OTEL_ATTRIBUTE_COUNT_LIMIT = 128
5656
_ENV_VALUE_UNSET = ""
5757
_EXCLUDED_ATTRIBUTES = {
58+
# pseudo-private log-record attributes, they just get dropped
5859
"args",
5960
"msg",
6061
"message",
6162
"stack_info",
6263
"exc_info",
6364
"exc_text",
65+
# attributes that are retained, but with a different name
66+
# following semantic conventions
6467
"pathname",
6568
"funcName",
6669
"lineno",

0 commit comments

Comments
 (0)