# ContextLines | Sentry for Koa

*Import name: `Sentry.contextLinesIntegration`*

This integration is enabled by default. If you'd like to modify your default integrations, read [this](https://docs.sentry.io/platforms/javascript/guides/koa/configuration/integrations.md#modifying-default-integrations).

This integration adds source code to your stack frames. It ensures that you can see the code that caused the error directly in the Sentry UI.

```javascript
import * as Sentry from "@sentry/node";

Sentry.init({
  dsn: "https://examplePublicKey@o0.ingest.sentry.io/0",
  integrations: [Sentry.contextLinesIntegration()],
});
```

## [Options](https://docs.sentry.io/platforms/javascript/guides/koa/configuration/integrations/contextlines.md#options)

### [`frameContextLines`](https://docs.sentry.io/platforms/javascript/guides/koa/configuration/integrations/contextlines.md#framecontextlines)

*Type: `number`*

The number of lines to collect around each stack frame's line number. Defaults to 7.
