UNPKG

axiom

Version:

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

36 lines (19 loc) 814 B
[**axiom v0.51.1**](../../README.md) *** [axiom](../../README.md) / [index](../README.md) / initAxiomAI # Function: initAxiomAI() > **initAxiomAI**(`config`): `void` Register this in your `instrumentation.ts` to set up axiom. This function stores the tracer's scope information globally to enable Context Propagation and Instrumentation Scope. The tracer will be available across all execution contexts including Next.js. This function is idempotent - calling it multiple times with the same scope has no additional cost. ## Parameters ### config #### redactionPolicy? [`AxiomAIRedactionPolicy`](../type-aliases/AxiomAIRedactionPolicy.md) Optional redaction policy to control what data is captured in spans. #### tracer `Tracer` The tracer that you are using in your application. ## Returns `void`