Skip to content

fix(instrumentation-py): repair Claude Agent SDK, Cohere, and CrewAI OTel 2.x spans - #377

Merged
fran3cc merged 2 commits into
respanai:mainfrom
Nightingalelyy:fix/otel2-py-claude-agent-cohere-crewai
Aug 21, 2026
Merged

fix(instrumentation-py): repair Claude Agent SDK, Cohere, and CrewAI OTel 2.x spans#377
fran3cc merged 2 commits into
respanai:mainfrom
Nightingalelyy:fix/otel2-py-claude-agent-cohere-crewai

Conversation

@Nightingalelyy

@Nightingalelyy Nightingalelyy commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • split current Claude Agent SDK operation spans into common-only agent parents and connected canonical chat children, preserving sessions, usage/cache data, tool calls, and tool execution
  • preserve structured Cohere rerank input/output with reversible reference-counted upstream helper patching
  • normalize CrewAI tool definitions, calls, arguments, and tool-result identity into valid canonical JSON
  • add the supporting respan-tracing exporter regression coverage and a patch release intent for all four changed packages

Validation

  • Claude Agent SDK: 29 passed, 1 skipped

  • Cohere: 12 passed

  • CrewAI: 17 passed, 1 skipped

  • respan-tracing exporter: 22 passed

  • release inventory and release intent validation passed

  • final example marker: otel2-fix-py-group-11-20260816T113500Z

  • MCP audit: 13 complete traces / 39 full records; every tree and record inspected, with matching counts, resolved parents, successful statuses, exact token ownership, canonical tool schemas/calls/results, and no errors, duplicate IDs, or orphan spans

  • Contribution re-audit against every current document under contribution/ passed after cef5a27: Cohere text-completion input is normalized to canonical llm.request.type=chat while retaining the text log type.

  • Fresh correction validation: Claude Agent SDK 29 passed / 1 skipped, Cohere 12 passed, CrewAI 17 passed / 1 skipped; Cohere wheel, release inventory/intents, formatting/import, and diff checks passed; marker otel2-pr-contract-corrections-20260818T133300Z produced 1 connected Cohere trace / 2 full records, both inspected.

External follow-ups

  • None documented.

Companion examples

@Nightingalelyy Nightingalelyy changed the title fix(instrumentations): repair claude-agent-sdk, cohere, and crewai spans fix(instrumentation): repair Claude Agent SDK, Cohere, and CrewAI OTel 2.x spans Aug 17, 2026
@Nightingalelyy Nightingalelyy changed the title fix(instrumentation): repair Claude Agent SDK, Cohere, and CrewAI OTel 2.x spans fix(instrumentation-py): repair Claude Agent SDK, Cohere, and CrewAI OTel 2.x spans Aug 18, 2026
@Nightingalelyy
Nightingalelyy marked this pull request as ready for review August 19, 2026 15:49

@greptile-apps greptile-apps Bot 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@fran3cc
fran3cc merged commit bc05b7e into respanai:main Aug 21, 2026
70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants