Skip to content

Observability with OpenTelemetry #1563

Open
@lmolkova

Description

@lmolkova

Confirm this is a feature request for the Node library and not the underlying OpenAI API.

  • This is a feature request for the Node library

Describe the feature or improvement you're requesting

There are quite a few instrumentation libraries out there that instrument OpenAI.

To name a few:

They use monkey-patching which is error prone and also they provide different set of features and inconsistent (with each other) telemetry.

In OTel world we solve it with semantic conventions which cover GenAI - https://github.com/open-telemetry/semantic-conventions/tree/main/docs/gen-ai

OpenAI providing a common instrumentation library/plugin or baking instrumentation code into the Node SDK would solve observability problem for the end users and simplify support and lib maintenance.

Additional context

Here's an example of how instrumentation via a plugin can be done - https://www.npmjs.com/package/@azure/opentelemetry-instrumentation-azure-sdk

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions