File tree 2 files changed +16
-13
lines changed
src/opentelemetry/sdk/_logs/_internal
2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 57
57
_DEFAULT_OTEL_ATTRIBUTE_COUNT_LIMIT = 128
58
58
_ENV_VALUE_UNSET = ""
59
59
_EXCLUDED_ATTRIBUTES = {
60
- # pseudo-private log-record attributes, they just get dropped
60
+ # pseudo-private log-record attributes, they should always be dropped
61
61
"args" ,
62
62
"msg" ,
63
63
"message" ,
71
71
"lineno" ,
72
72
"thread" ,
73
73
"threadName" ,
74
+ # attributes that are omitted because no semantic convention exists for them yet
75
+ "asctime" ,
76
+ "created" ,
77
+ "filename" ,
78
+ "levelname" ,
79
+ "levelno" ,
80
+ "module" ,
81
+ "msecs" ,
82
+ "name" ,
83
+ "process" ,
84
+ "processName" ,
85
+ "relativeCreated" ,
86
+ "taskName" ,
74
87
}
75
88
76
89
Original file line number Diff line number Diff line change @@ -255,20 +255,10 @@ def test_log_record_args_are_translated(self):
255
255
self .assertEqual (
256
256
set (log_record .attributes ),
257
257
{
258
+ "thread.id" ,
258
259
"code.filepath" ,
259
- "code.function" ,
260
260
"code.lineno" ,
261
- "created" ,
262
- "filename" ,
263
- "levelname" ,
264
- "levelno" ,
265
- "module" ,
266
- "msecs" ,
267
- "name" ,
268
- "process" ,
269
- "processName" ,
270
- "relativeCreated" ,
271
- "thread.id" ,
261
+ "code.function" ,
272
262
"thread.name" ,
273
263
},
274
264
)
You can’t perform that action at this time.
0 commit comments