File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6868 try :
6969 from ddtrace .profiling import profiler
7070 except Exception as e :
71- logger .error (f' Failed to initialize profiler: [{ e .__class__ .__name__ } )] { e } ' )
71+ logger .error (f" Failed to initialize profiler: [{ e .__class__ .__name__ } )] { e } " )
7272
7373if config .llmobs_enabled :
7474 from ddtrace .llmobs import LLMObs
Original file line number Diff line number Diff line change @@ -967,6 +967,8 @@ def lambda_handler(event, context):
967967@patch ("datadog_lambda.config.Config.profiling_enabled" , True )
968968def test_profiling_import_errors_caught (monkeypatch ):
969969 # when importing profiler fails, disable profiling instead of crashing app
970- monkeypatch .setitem (sys .modules , "ddtrace.profiling" , None ) # force ModuleNotFoundError
970+ monkeypatch .setitem (
971+ sys .modules , "ddtrace.profiling" , None
972+ ) # force ModuleNotFoundError
971973 importlib .reload (wrapper )
972974 assert not hasattr (wrapper .datadog_lambda_wrapper , "prof" )
You can’t perform that action at this time.
0 commit comments