Skip to content

fix(instrumentation-py): repair Chroma, Hugging Face, and Instructor OTel 2.x spans - #381

Merged
fran3cc merged 1 commit into
respanai:mainfrom
Nightingalelyy:fix/otel2-py-chroma-huggingface-instructor
Aug 21, 2026
Merged

fix(instrumentation-py): repair Chroma, Hugging Face, and Instructor OTel 2.x spans#381
fran3cc merged 1 commit into
respanai:mainfrom
Nightingalelyy:fix/otel2-py-chroma-huggingface-instructor

Conversation

@Nightingalelyy

@Nightingalelyy Nightingalelyy commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • restore Chroma workflow serialization through bounded SDK value normalization and end-to-end content privacy
  • preserve complete Hugging Face batch content and validate a real local Transformers pipeline
  • capture Instructor raw response schemas, calls, exact non-stream usage, and sync/async iterable results without SDK-object leakage
  • add the required patch release intent for the four changed release-managed Python packages

Validation

  • Chroma: 3 focused tests passed

  • Hugging Face: 10 focused tests passed

  • Instructor: 17 focused tests passed; 1 opt-in live test skipped

  • affected respan-tracing tests: 60 passed

  • affected respan-sdk tests: 7 passed

  • four changed package wheels built successfully

  • release inventory, release intents, formatting/import checks, and git diff checks passed

  • all 14 linked examples completed under marker otel2-fix-py-group-15-20260817T084907Z

  • Respan MCP: 14 connected traces and all 52 full records inspected; no errors, orphan parents, extra roots, or duplicates

  • Full source and paired-example diffs were audited against every applicable document under contribution/; canonical span fields, OTel attribute shapes, release-intent/version ownership, and package boundaries have no remaining package-owned violation.

External follow-ups

  • Instructor emits canonical llm.request.functions and gen_ai.completion.0.tool_calls. The platform retains both in semantic content and sets has_tool_calls=true, but its separate top-level tool arrays and model projection remain incomplete. The instrumentation intentionally does not add contribution-contract-forbidden aliases.

Companion examples

@Nightingalelyy Nightingalelyy changed the title fix(instrumentations): repair Chroma, Hugging Face, and Instructor tracing fix(instrumentation): repair Chroma, Hugging Face, and Instructor OTel 2.x spans Aug 17, 2026
@Nightingalelyy Nightingalelyy changed the title fix(instrumentation): repair Chroma, Hugging Face, and Instructor OTel 2.x spans fix(instrumentation-py): repair Chroma, Hugging Face, and Instructor OTel 2.x spans Aug 18, 2026
@Nightingalelyy
Nightingalelyy marked this pull request as ready for review August 19, 2026 15:59

@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 7207b4a into respanai:main Aug 21, 2026
72 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