[**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`
