Skip to content

Commit 8207aa2

Browse files
authored
revert llmobs api key and forced agentless (#585)
1 parent 7cd2baf commit 8207aa2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

datadog_lambda/wrapper.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,10 @@
4949
if profiling_env_var:
5050
from ddtrace.profiling import profiler
5151

52-
llmobs_api_key = None
5352
llmobs_env_var = os.environ.get("DD_LLMOBS_ENABLED", "false").lower() in ("true", "1")
5453
if 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-
6056
logger = logging.getLogger(__name__)
6157

6258
DD_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:

0 commit comments

Comments
 (0)