File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 4949if profiling_env_var :
5050 from ddtrace .profiling import profiler
5151
52- llmobs_api_key = None
5352llmobs_env_var = os .environ .get ("DD_LLMOBS_ENABLED" , "false" ).lower () in ("true" , "1" )
5453if llmobs_env_var :
55- from datadog_lambda .api import get_api_key
5654 from ddtrace .llmobs import LLMObs
5755
58- llmobs_api_key = get_api_key ()
59-
6056logger = logging .getLogger (__name__ )
6157
6258DD_FLUSH_TO_LOG = "DD_FLUSH_TO_LOG"
@@ -226,10 +222,7 @@ def __init__(self, func):
226222
227223 # Enable LLM Observability
228224 if llmobs_env_var :
229- LLMObs .enable (
230- agentless_enabled = True ,
231- api_key = llmobs_api_key ,
232- )
225+ LLMObs .enable ()
233226
234227 logger .debug ("datadog_lambda_wrapper initialized" )
235228 except Exception as e :
You can’t perform that action at this time.
0 commit comments