Skip to content

[bug report] Double incrementing te_request_count metric in successful single openai_embed requests #480

@aarongreen-datadog

Description

@aarongreen-datadog

As mentioned in the title, I believe this line is a bug and should actually be te_request_success. We're setting up observability for TEI, and we use the openai-compatible /v1/embeddings endpoint, and I noticed weird numbers coming from the metrics, which led me to finding this line as the likely culprit.

I think the same bug might exist in the following functions in the HTTP and grpc APIs:
HTTP

GRPC

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions