[**@s4ai/core Documentation v0.3.23**](../../../README.md)

***

[@s4ai/core Documentation](../../../modules.md) / [services/sentry](../README.md) / attachSentryErrorHandlers

# Function: attachSentryErrorHandlers()

> **attachSentryErrorHandlers**(`app`): `void`

Defined in: services/sentry.js:34

Attach Sentry error handlers to Express app
Must be called after all routes/middleware but before server.listen()

## Parameters

### app

`any`

Express application instance

Note: Sentry is fully initialized in instrument.js (imported first in server.js)
Express middleware setup is handled automatically by modern @sentry/node SDK
This function remains for backward compatibility but is no longer required

## Returns

`void`
