We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cd2baf commit 8207aa2Copy full SHA for 8207aa2
datadog_lambda/wrapper.py
@@ -49,14 +49,10 @@
49
if profiling_env_var:
50
from ddtrace.profiling import profiler
51
52
-llmobs_api_key = None
53
llmobs_env_var = os.environ.get("DD_LLMOBS_ENABLED", "false").lower() in ("true", "1")
54
if llmobs_env_var:
55
- from datadog_lambda.api import get_api_key
56
from ddtrace.llmobs import LLMObs
57
58
- llmobs_api_key = get_api_key()
59
-
60
logger = logging.getLogger(__name__)
61
62
DD_FLUSH_TO_LOG = "DD_FLUSH_TO_LOG"
@@ -226,10 +222,7 @@ def __init__(self, func):
226
222
227
223
# Enable LLM Observability
228
224
229
- LLMObs.enable(
230
- agentless_enabled=True,
231
- api_key=llmobs_api_key,
232
- )
225
+ LLMObs.enable()
233
234
logger.debug("datadog_lambda_wrapper initialized")
235
except Exception as e:
0 commit comments