UNPKG

hytopia

Version:

The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.

74 lines (35 loc) 1.29 kB
<!-- 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. </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.