text-embeddings-inference icon indicating copy to clipboard operation
text-embeddings-inference copied to clipboard

Get opentelemetry trace id from request headers instead of creating a new trace

Open ptanov opened this issue 6 months ago • 1 comments

Feature request

Currently a new trace is created per each HTTP request. It would be useful if trace is get (if available) from the request using traceparent header as defined in https://opentelemetry.io/docs/specs/otel/context/api-propagators/#propagators-distribution https://www.w3.org/TR/trace-context/

In this way you will be able to trace the request through microservice invocations.

Motivation

I want to track the request using opentelemetry starting from frontend, backend and then TEI

Your contribution

I don't have enough understanding of TEI code

ptanov avatar Aug 08 '24 13:08 ptanov