<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [server](./server.md) &gt; [Telemetry](./server.telemetry.md) &gt; [initializeSentry](./server.telemetry.initializesentry.md)

## Telemetry.initializeSentry() method

Initializes Sentry telemetry with the provided DSN.

**Signature:**

```typescript
static initializeSentry(sentryDsn: string, tickTimeMsThreshold?: number): void;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

sentryDsn


</td><td>

string


</td><td>

The Sentry Data Source Name (DSN) for your project.


</td></tr>
<tr><td>

tickTimeMsThreshold


</td><td>

number


</td><td>

_(Optional)_ The tick duration that must be exceeded to send a performance span to Sentry for a given tick. Defaults to 50ms.

\*\*Requires:\*\* A valid Sentry DSN and network access.

\*\*Side effects:\*\* Initializes the Sentry SDK and registers global hooks.

\*\*Category:\*\* Telemetry


</td></tr>
</tbody></table>
**Returns:**

void

## Remarks

This method configures Sentry for error tracking and performance monitoring. It sets up filtering to only send performance spans that exceed the provided threshold duration, reducing noise and costs. The initialization includes game-specific tags and process statistics attachment.

