File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ class AppConfig(BaseSettings):
28
28
DEBUG : bool = False
29
29
30
30
31
- def init_logger (config : AppConfig ):
31
+ def init_logger (config : AppConfig ) -> None :
32
32
"""
33
33
Configure structlog and stdlib logging with shared handler and formatter.
34
34
@@ -43,7 +43,7 @@ def init_logger(config: AppConfig):
43
43
structlog .stdlib .PositionalArgumentsFormatter (),
44
44
structlog .processors .add_log_level ,
45
45
structlog .processors .StackInfoRenderer (),
46
- add_logging_open_telemetry_spans ,
46
+ _add_logging_open_telemetry_spans ,
47
47
]
48
48
49
49
log_level = logging .DEBUG if config .DEBUG else logging .INFO
@@ -94,7 +94,7 @@ def init_logger(config: AppConfig):
94
94
logging .getLogger (_log ).propagate = True
95
95
96
96
97
- def add_logging_open_telemetry_spans (_ , __ , event_dict ):
97
+ def _add_logging_open_telemetry_spans (_ , __ , event_dict ):
98
98
span = trace .get_current_span ()
99
99
if not span .is_recording ():
100
100
event_dict ["span" ] = None
You can’t perform that action at this time.
0 commit comments