-
Notifications
You must be signed in to change notification settings - Fork 335
[BUG]: Undefined DD_API_KEY + Weird behavior for LLMObs #5428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @abarone-btf! Thanks for opening this issue. This is an interesting scenario - a few questions/suggestions from my end:
We're also working on some changes to improve the logic in the writers (LLMObs spans and evaluation metrics), so stay tuned there, as it could help here as well. |
Hi! @sabrenner thank you for your help!: I tested more and realize that the fetching of the secret (DD_API_KEY_SECRET_ARN) was making the error (I update the lambda with DD_API_KEY directly and the error never appeared). This happens when the agentless is set with I am not submitting any evaluation, just making use of llmobs.trace, wrap (for the workflow), and lot of annotate). |
Its also worth noticing that on my tests the "flushing" is kind of weird, many times the trace dont appear on the LLM Obs panel until I make another request (like literally after sending a second request, the first one appear on the DD console), dont know if its related to this, but its kind of odd and frustrating jajaja (I make a llmobs.flush() call before returning in the lamdba handler) |
Thanks for the extra clarification @abarone-btf! For both of the following points:
and
Flushing is definitely something we need to improve, and I think as we re-work the Node.js support for LLM Observability in AWS Lambda to be more integrated in the layer, these issues should be resolved. I'll keep you updated on this issue, I should be able to take a poke at this over the next week or so. I would say for now to keep the Feel free to bump this issue again if I don't reply within the next week or so! |
No, thank you for your help! @sabrenner I get almost the same behavior with or without the flush, do you recommend me to remove it for now them? Will keep looking every now and then this issue 👌 |
Hi @sabrenner hope you are great!. Just checking if is there an improvement on the flush behavior (not to speed anything but to know so I can upgrade my lambdas and versions to test them out again). Thanks as usual 🚀 |
Hi @abarone-btf, could you give the latest versions of each layer a try (extension layer
are set. let me know if those work any better for you, and definitely feel free to follow up if not! |
Tracer Version(s)
Lambda Layer 123
Node.js Version(s)
20
Bug Report
Hi all!, am using the datadog layer to trace some llmobs calls inside my lambda (using the datadog agent + datadog node layer, both on the latest current version).
Everything works fine but every now and then I get a 500 error on my lambda with this error message (its weird because it happens ocassionally, normally it happens if I make a request very near of a finished request (like just after it ends, send another oner) ).
Is this normal?, maybe its my implementation? (am just using
import tracer from 'dd-trace';
)Cheers!
Reproduction Code
No response
Error Logs
Tracer Config
Operating System
No response
Bundling
ESBuild
The text was updated successfully, but these errors were encountered: