UNPKG

axiom

Version:

Axiom AI SDK provides - an API to wrap your AI calls with observability instrumentation. - offline evals - online evals

42 lines (21 loc) 571 B
[**axiom v0.51.1**](../../README.md) *** [axiom](../../README.md) / [index](../README.md) / withSpan # Function: withSpan() > **withSpan**\<`Return`, `Capability`, `Step`\>(`meta`, `fn`, `opts?`): `Promise`\<`Return`\> ## Type Parameters ### Return `Return` ### Capability `Capability` *extends* `string` = `string` ### Step `Step` *extends* `string` = `string` ## Parameters ### meta `WithSpanMeta` & `object` ### fn (`span`) => `Promise`\<`Return`\> ### opts? [`WithSpanOptions`](../type-aliases/WithSpanOptions.md) ## Returns `Promise`\<`Return`\>