MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getCurrentSpan

Function getCurrentSpan

src/utils/telemetry/sessionTracing.ts:778–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

776}
777
778export function getCurrentSpan(): Span | null {
779 if (!isAnyTracingEnabled()) {
780 return null
781 }
782
783 return (
784 toolContext.getStore()?.span ?? interactionContext.getStore()?.span ?? null
785 )
786}
787
788export async function executeInSpan<T>(
789 spanName: string,

Callers

nothing calls this directly

Calls 1

isAnyTracingEnabledFunction · 0.85

Tested by

no test coverage detected