()
| 777 | } |
| 778 | |
| 779 | export 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 | |
| 789 | export async function executeInSpan<T>( |
| 790 | spanName: string, |
nothing calls this directly
no test coverage detected