fix(instrumentation-py): repair Cursor SDK, Dify, and DSPy OTel 2.x spans - #378
Merged
fran3cc merged 2 commits intoAug 21, 2026
Merged
Conversation
Emit Cursor cancellation roots with retry-safe state cleanup, preserve provider-exposed Dify models, and lock DSPy agent spans to the common-only contract.
Nightingalelyy
marked this pull request as ready for review
August 19, 2026 15:50
Contributor
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
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.
Summary
Validation
Cursor SDK: 6 passed
Dify: 8 passed
DSPy: 16 passed, 1 opt-in live test skipped
clean wheels built for all three packages
release inventory and release-intent validation passed
corresponding examples: 15/15 completed under
otel2-fix-py-group-12-20260816T142858ZRespan MCP: 15/15 trace trees and 77/77 full records inspected; counts and parent links match, no duplicates/orphans/blank critical content
expected Cursor cancellation is the only failed record (
499)Contribution re-audit against every current document under
contribution/passed afterf9c9a0e: every DSPy LLM surface now uses canonicalllm.request.type=chat, including text-completion models.Fresh correction validation: Cursor SDK 6 passed, Dify 8 passed, DSPy 16 passed / 1 skipped; DSPy wheel, release inventory/intents, formatting/import, and diff checks passed; marker
otel2-pr-contract-corrections-20260818T133300Zproduced 1 connected DSPy trace / 5 full records, all inspected.External follow-ups
Companion examples