Skip to main content

Respan instrumentation for Mirascope

This package traces Mirascope 2.x model calls, context-aware calls, sync and async streams, and toolkit execution. Model calls become canonical Respan chat spans; toolkit executions become canonical tool spans. Streaming spans finish when the underlying stream is consumed, emit llm.is_streaming=true, and preserve real iterator errors without treating normal iterator completion as a failure.

from respan_instrumentation_mirascope import MirascopeInstrumentor

instrumentor = MirascopeInstrumentor(capture_content=True)
instrumentor.activate()

capture_content=False omits messages, tool definitions, arguments, and model outputs while retaining models, providers, usage, status, and errors. Activation is reference-counted and safe to repeat.

Mirascope ToolCall.args JSON text is decoded for tool-span input as {"name": ..., "arguments": ...}. Chat spans retain canonical request tool definitions and current-turn calls, while tool outputs store the executed function result rather than Mirascope's transport envelope.

Do not combine this adapter with mirascope.ops.instrument_llm() unless you intentionally want two independent telemetry pipelines for each operation.

Metadata

Release files for respan-instrumentation-mirascope 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for respan-instrumentation-mirascope 0.1.1
File Size Uploaded
respan_instrumentation_mirascope-0.1.1.tar.gz 9.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for respan-instrumentation-mirascope 0.1.1
File Interpreter ABI Platform
respan_instrumentation_mirascope-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.7 kB

Release files / respan_instrumentation_mirascope-0.1.1.tar.gz

Download URL respan_instrumentation_mirascope-0.1.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5729faf9974aee3e238494a8c0d7eab3da35c0dc89ab066454ed82acb0489270
BLAKE2b-256 checksum
How to use checksums
3e9f4ee33107f0d1ca450627c5cf79046df20523aab50e35821c559b21b741db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / respan_instrumentation_mirascope-0.1.1-py3-none-any.whl

Download URL respan_instrumentation_mirascope-0.1.1-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
532f138c35af58cfe4a1b356e463a7dc02ac4dbf9f194c14af14b9b30c1edf67
BLAKE2b-256 checksum
How to use checksums
4a101cd166295a777d211e9ce00835a35eda988eba843612996f41f37804393b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page