[**@gram-ai/elements v1.33.0**](../README.md)

***

[@gram-ai/elements](../globals.md) / trackError

# Function: trackError()

> **trackError**(`error`, `context`): `void`

Track an error to Datadog RUM.
Includes context about where the error originated.

## Parameters

### error

`unknown`

### context

[`ErrorContext`](../interfaces/ErrorContext.md)

## Returns

`void`
