Skip to content

Commit e62e7d5

Browse files
timfishimatwawana
andauthored
feat(nodejs): Deprecate frameContextLines option and move to integration (#4746)
Co-authored-by: Isabel Matwawana <[email protected]> Co-authored-by: Isabel <[email protected]>
1 parent aced1c0 commit e62e7d5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/platforms/common/configuration/options.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ The number of context lines for each frame in the stacktrace when loading a file
306306

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

309+
#### Deprecated
310+
311+
`frameContextLines` has moved to the <PlatformLink to="/configuration/integrations/default-integrations/#contextlines">`ContextLines` integration</PlatformLink>.
312+
309313
</ConfigKey>
310314

311315
<ConfigKey name="initial-scope" supported={["javascript","node"]}>

src/platforms/node/common/configuration/integrations/default-integrations.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,23 @@ Available options:
100100
}
101101
```
102102

103+
### ContextLines
104+
105+
_Import name: `Sentry.Integrations.ContextLines`_
106+
107+
_(Available in version 6.18.0 and above)_
108+
109+
This integration adds source file context to stack frames for captured exceptions
110+
111+
Available options:
112+
113+
```javascript
114+
{
115+
// The number of context lines to include with each frame
116+
frameContextLines: number;
117+
}
118+
```
119+
103120
### LinkedErrors
104121

105122
_Import name: `Sentry.Integrations.LinkedErrors`_

0 commit comments

Comments
 (0)