UNPKG

axiom

Version:

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

35 lines (20 loc) 822 B
[**axiom v0.51.1**](../../README.md) *** [axiom](../../README.md) / [config](../README.md) / AxiomEvalInstrumentationHook # Type Alias: AxiomEvalInstrumentationHook() > **AxiomEvalInstrumentationHook** = (`options`) => `AxiomEvalInstrumentationResult` \| `Promise`\<`AxiomEvalInstrumentationResult`\> Hook function to initialize application OpenTelemetry instrumentation. Called before eval execution with resolved Axiom connection details. ## Parameters ### options `AxiomEvalInstrumentationOptions` Configuration options ## Returns `AxiomEvalInstrumentationResult` \| `Promise`\<`AxiomEvalInstrumentationResult`\> TracerProvider or Promise resolving to TracerProvider ## Example ```typescript instrumentation: ({ url, token, dataset }) => { return setupAppInstrumentation({ url, token, dataset }); } ```