Skip to content

[opentelemetry-instrumentation-genai-dspy] Add instrumentation for Embeddings - #796

Open
DylanRussell wants to merge 6 commits into
mainfrom
DylanRussell/dspy_embeddings
Open

DylanRussell wants to merge 6 commits into
mainfrom
DylanRussell/dspy_embeddings

Conversation

@DylanRussell

Copy link
Copy Markdown
Contributor

Description

Adds instrumentation for Embeddings: https://dspy.ai/current/api/models/Embedder/

Type of change

  • New feature (non-breaking change which adds functionality)

How has this been tested?

Unit tests. conformance test.

Checklist

  • Followed the style guidelines of this project
  • Changelog updated if the change requires an entry
  • Unit tests added
  • Documentation updated

@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-09-25 16:43 UTC

Investigate required status check failures.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Should this be with reviewers? Comment /dashboard route:reviewers to route it to them.
  • Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 4 Medium severity

Open (4)
What changed in this PR

Adds DSPy Embedder instrumentation with embedding telemetry, tests, conformance coverage, and README updates.

Changes:

  • Adds sync and async embedding span instrumentation.
  • Adds provider, model, dimension, encoding, and server metadata extraction.
  • Adds unit and conformance tests.
File Description
instrumentation/​opentelemetry-instrumentation-genai-dspy/​tests/​test_embedder.py Updated as part of this pull request.
instrumentation/​opentelemetry-instrumentation-genai-dspy/​tests/​test_conformance.py Updated as part of this pull request.
instrumentation/​opentelemetry-instrumentation-genai-dspy/​tests/​conformance/​embedder.py Updated as part of this pull request.
instrumentation/​opentelemetry-instrumentation-genai-dspy/​src/​opentelemetry/​instrumentation/​genai/​dspy/​utils.py Updated as part of this pull request.
instrumentation/​opentelemetry-instrumentation-genai-dspy/​src/​opentelemetry/​instrumentation/​genai/​dspy/​patch.py Updated as part of this pull request.
instrumentation/​opentelemetry-instrumentation-genai-dspy/​README.rst Updated as part of this pull request.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread instrumentation/opentelemetry-instrumentation-genai-dspy/tests/test_embedder.py Outdated

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants