Skip to main content

Documentation Index

Fetch the complete documentation index at: https://handbook.fiddler.ai/llms.txt

Use this file to discover all available pages before exploring further.

Get currently active span as Fiddler wrapper (inside a traced function). Gets the span from the current context and verifies it belongs to Fiddler’s tracer to maintain isolation from other OpenTelemetry tracers.

Returns

Current span wrapper or None if no active span or not a Fiddler span.

Parameters

ParameterTypeRequiredDefaultDescription
as_typeLiteral['span', 'generation', 'chain', 'tool']spanWrapper type (‘span’, ‘generation’, ‘chain’, ‘tool’).