DataDog / dd-trace-php

Datadog PHP Clients
https://docs.datadoghq.com/tracing/setup/php
Other
498 stars 155 forks source link

[Feature] OpenAI integration #2445

Open fancyweb opened 10 months ago

fancyweb commented 10 months ago

Describe the feature you'd like

Implement the OpenAI integration as it was done for the Python and Node.js APM libraries (ref https://docs.datadoghq.com/integrations/openai/?tab=python)

Is your feature request related to a problem?

No response

Describe alternatives you've considered

No response

Additional context

No response

PROFeNoM commented 10 months ago

Hi @fancyweb :wave:

Thanks for your feature request. There is indeed a growing adoption for this library, and implementing the OpenAI integration as it was done for the Python and Node.js APM libraries was discussed in our roadmap. However, there is no current plan for it this quarter.

With that said, OTel seems to have started some work on auto-instrumenting OpenAI (The 0.0.1 release of their instrumentation was made about 1 hour ago 😄). Since the PHP Tracer supports the OTel API, it should be able to leverage OTel's instrumentations.

PS: Needless to say, we welcome very much external contributions, especially when it comes to implementing new integrations 😃 We'll happily provide any help needed for its realization