Skip to content

Commit d5bed30

Browse files
mydealizokm
andauthored
Apply suggestions from code review
Co-authored-by: Liza Mock <liza.mock@sentry.io>
1 parent 73317d9 commit d5bed30

File tree

1 file changed

+3
-3
lines changed
  • docs/platforms/javascript/common/enriching-events/process-isolation

1 file changed

+3
-3
lines changed

docs/platforms/javascript/common/enriching-events/process-isolation/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ notSupported:
1919
- javascript
2020
---
2121

22-
In server-side environments, the <PlatformLink to='/enriching-events/scopes'>isolation scope</PlatformLink> is automatically forked around request boundaries. This means that each request will have its own isolation scope, and data set on the isolation scope will only apply to events captured during that request. This is done automatically by the SDK.
22+
In server-side environments, the <PlatformLink to='/enriching-events/scopes'>isolation scope</PlatformLink> automatically forks around request boundaries. This is done automatically by the SDK. As a result, each request has its own isolation scope, and data set on the isolation scope only applies to events captured during that request.
2323

24-
However, there are also other cases where you may want to have isolation, for example in background jobs or when you want to isolate a specific part of your code. In these cases, you can use `Sentry.withIsolationScope()` to create a new isolation scope that is valid inside of the callback you pass to it - see [Using withIsolationScope](../scopes/#using-withisolationscope).
24+
However, there are also other times when you may want to have isolation, for example, in background jobs or when you want to isolate a specific part of your code. In these cases, you can use `Sentry.withIsolationScope()` to create a new isolation scope that's valid inside of the callback you pass to it. Learn more about using [withIsolationScope](../scopes/#using-withisolationscope).
2525

26-
The following example shows how you can use `withIsolationScope` to attach data for a specific job run:
26+
The following example shows how you can use `withIsolationScope` to attach data to a specific job run:
2727

2828
```javascript
2929
async function job(jobId) {

0 commit comments

Comments
 (0)