MCPcopy Create free account
hub / github.com/Noumena-Network/code / getCurrentSpan

Function getCurrentSpan

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isAnyTracingEnabledFunction · 0.85

Tested by

no test coverage detected