File tree Expand file tree Collapse file tree 2 files changed +16
-13
lines changed
src/opentelemetry/sdk/_logs/_internal Expand file tree Collapse file tree 2 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 5757_DEFAULT_OTEL_ATTRIBUTE_COUNT_LIMIT = 128
5858_ENV_VALUE_UNSET = ""
5959_EXCLUDED_ATTRIBUTES = {
60- # pseudo-private log-record attributes, they just get dropped
60+ # pseudo-private log-record attributes, they should always be dropped
6161 "args" ,
6262 "msg" ,
6363 "message" ,
7171 "lineno" ,
7272 "thread" ,
7373 "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" ,
7487}
7588
7689
Original file line number Diff line number Diff line change @@ -255,20 +255,10 @@ def test_log_record_args_are_translated(self):
255255 self .assertEqual (
256256 set (log_record .attributes ),
257257 {
258+ "thread.id" ,
258259 "code.filepath" ,
259- "code.function" ,
260260 "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" ,
272262 "thread.name" ,
273263 },
274264 )
You can’t perform that action at this time.
0 commit comments