[BUG]: dd-trace throws error for openai integration Cannot read properties of undefined (reading 'context')
#5032
Labels
Cannot read properties of undefined (reading 'context')
#5032
Tracer Version(s)
5.19.0
Node.js Version(s)
18.20.4
Bug Report
With the dd-trace-js "openai" plugin enabled we get an error thrown when making use of the
AzureOpenAI
openai initializer.This only happens when we call this in our sandbox environment, and works perfectly in staging / prod.
I am going to expand this issue over the coming days with more detail, like the re-production code, any references / how it broke for other people and a bit of self investigation.
Reproduction Code
No response
Error Logs
Operating System
Linux places-service-7fdbbb44c-vw4ft 5.10.225-213.878.amzn2.aarch64 #1 SMP Tue Sep 10 22:02:55 UTC 2024 aarch64 GNU/Linux
Bundling
No Bundling
The text was updated successfully, but these errors were encountered: