Skip to content

fix(instrumentation-py): repair Mirascope, Mistral, and Ollama OTel 2.x spans - #385

Merged
fran3cc merged 1 commit into
respanai:mainfrom
Nightingalelyy:fix/otel2-py-mirascope-mistral-ollama
Aug 21, 2026
Merged

fix(instrumentation-py): repair Mirascope, Mistral, and Ollama OTel 2.x spans#385
fran3cc merged 1 commit into
respanai:mainfrom
Nightingalelyy:fix/otel2-py-mirascope-mistral-ollama

Conversation

@Nightingalelyy

@Nightingalelyy Nightingalelyy commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • repair Mirascope 2.5 streaming, real tool argument/result translation, lifecycle ownership, privacy-safe bounded serialization, early-close handling, and current-runtime coverage
  • repair Mistral 2.9.3/OpenInference 2.0.6 streaming finalization, lifecycle/refcounting, canonical tools, precise 401/500 errors, redaction, duplicate suppression, and tested dependency floors
  • repair Ollama 0.6.2 lifecycle ownership, bounded incremental streaming, call-time parenting, cancellation/early-close cleanup, canonical tools, exact 503 errors, and privacy-safe serialization
  • add one patch release intent for all three instrumentation packages

Validation

  • focused package tests: Mirascope 30/30, Mistral 18/18, Ollama 16/16 (64/64)

  • all three wheels build successfully

  • release inventory, release intent, Ruff format/check, Python compilation, and diff checks pass

  • exact example marker: otel2-fix-py-group-19-20260817T152514Z

  • complete example processes: 18/18

  • The exact marker returned 19 traces and 42 records. Every tree and full record was inspected: one root per trace, matching list/tree/detail sets, exact parent links, 42 unique record IDs and 42 unique span IDs, meaningful bounded content, exact model/usage/stream data, connected tools, controlled failures, grouping, privacy, and no forbidden aliases.

  • 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

  • native failed workflow roots are still projected as success/200 after ingestion even though in-memory exporter tests prove OTel ERROR
  • canonical tool definitions/calls remain available in semantic metadata and completion messages while separate platform tool arrays remain empty
  • Mirascope/Ollama canonical provider metadata does not populate platform provider_id
  • aggregate instrumentation minimums currently reference unpublished package versions; this PR follows the contribution release-intent workflow and does not hand-edit package versions

Companion examples

@Nightingalelyy Nightingalelyy changed the title fix(instrumentation): repair Mirascope, Mistral, and Ollama OTel 2.x spans fix(instrumentation-py): repair Mirascope, Mistral, and Ollama 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 49321d7 into respanai:main Aug 21, 2026
6 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