Skip to content

feat(nodejs): Deprecate frameContextLines option and move to integration #4746

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 24, 2022
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions src/platforms/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ The number of context lines for each frame in the stacktrace when loading a file

The number of context lines for each frame when loading a file.

#### Deprecated

`frameContextLines` has moved to the <PlatformLink to="/configuration/integrations/default-integrations/#contextlines">`ContextLines` integration</PlatformLink>.

</ConfigKey>

<ConfigKey name="initial-scope" supported={["javascript","node"]}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,23 @@ Available options:
}
```

### ContextLines

_Import name: `Sentry.Integrations.ContextLines`_

_(Available in version 6.18.0 and above)_

This integration adds source file context to stack frames for captured exceptions

Available options:

```javascript
{
// The number of context lines to include with each frame
frameContextLines: number;
}
```

### LinkedErrors

_Import name: `Sentry.Integrations.LinkedErrors`_
Expand Down