Repository navigation
Add OpenAI embeddings instrumentation - #81
Merged
Merged
Conversation
Coverage report
Top uncovered files
|
piotrekno1
force-pushed
the
feat/openai-embeddings
branch
from
October 20, 2026 16:01
ca1f3d4 to
9577047
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Applications calling
client.embeddings.create()currently emit no inference telemetry. This adds sync and async embeddings instrumentation, recording latency, provider-reported input tokens, batch size, dimensions, resolved model metadata, and API errors. Text, string batches, token IDs, and token-ID batches are handled without consuming arbitrary input iterables. Application responses are returned unchanged; raw inputs and vectors are not uploaded.Adds optional
tokens_intoEmbeddingOutputMeta, matching the existing ingest schema and analytics extraction path, so embedding input usage is queryable. Dimensions are measured from returned float vectors or decoded float32 byte length for explicit base64 output. Embeddings do not report generated tokens or TTFT.Includes a runnable sync/async example, documentation, unit tests, and real OpenAI SDK tests using mocked HTTP. This PR is independently based on devel; it does not include or depend on the Responses changes in #80.
Validation
embeddings-local-e2e-0b23ac028d21.