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 and preserve iterator errors.

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.

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

respan_instrumentation_mirascope-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file respan_instrumentation_mirascope-0.1.0.tar.gz.

File metadata

File hashes

Hashes for respan_instrumentation_mirascope-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5f0bb80f6fed668c3b000f4118eba0137864ef1aa1153669231ed398c2ae516
MD5 495f7e4b8dd294b15070ac029d16faac
BLAKE2b-256 cae7defe365c180b81855148b88918eb90d5d8511a2ce5201f0905c9164e5aac

See more details on using hashes here.

File details

Details for the file respan_instrumentation_mirascope-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for respan_instrumentation_mirascope-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4b4cf99436026eeeddcb3ccbc0675c18dc50f578114bc2082d35ef98fd7fe611
MD5 e399b35c83412a830eb7f7a4a5d0c578
BLAKE2b-256 392610b580f22a93e30782f2031874d87e6e5ae8f6cf40b0bda7a284e2040e60

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page