Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,29 @@ Sentry.init({
});
```

## Options

### `ignoreLayersType`

Requires SDK version `9.29.0` or higher.

_Type: `Array<'middleware' | 'router'>`_

An array of Koa layer types to ignore when creating spans. This allows you to filter out specific types of middleware or router spans from being sent to Sentry.

```javascript
// To ignore middleware spans
const Sentry = require('@sentry/node');

Sentry.init({
integrations: [
Sentry.koaIntegration({
ignoreLayersType: ['middleware']
})
],
})
```

## Supported Versions

- `koa`: `^2.0.0`
Expand Down