File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,7 @@ def as_bool(val):
3838
3939
4040def as_list (val ):
41- if isinstance (val , str ):
42- if not val :
43- return []
44- return [val .strip () for val in val .split ("," ) if val .strip ()]
45- return val
41+ return [val .strip () for val in val .split ("," ) if val .strip ()]
4642
4743
4844class Config :
@@ -53,10 +49,8 @@ class Config:
5349 cold_start_tracing = _get_env ("DD_COLD_START_TRACING" , "true" , as_bool )
5450 min_cold_start_trace_duration = _get_env ("DD_MIN_COLD_START_DURATION" , 3 , int )
5551 cold_start_trace_skip_lib = _get_env (
56- "DD_COLD_START_TRACE_SKIP_LIB" , [
57- "ddtrace.internal.compat" ,
58- "ddtrace.filters" ,
59- ], as_list )
52+ "DD_COLD_START_TRACE_SKIP_LIB" , "ddtrace.internal.compat,ddtrace.filters" ,
53+ as_list )
6054
6155 capture_payload_max_depth = _get_env ("DD_CAPTURE_LAMBDA_PAYLOAD_MAX_DEPTH" , 10 , int )
6256 capture_payload_enabled = _get_env ("DD_CAPTURE_LAMBDA_PAYLOAD" , "false" , as_bool )
You can’t perform that action at this time.
0 commit comments