Skip to content

Commit

Permalink
reword everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
mydea committed Sep 18, 2024
1 parent 157f59b commit f7590aa
Show file tree
Hide file tree
Showing 19 changed files with 65 additions and 18 deletions.
2 changes: 1 addition & 1 deletion docs/platforms/apple/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/dart/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/dotnet/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/elixir/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/flutter/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/go/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/java/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
title: Process Isolation
description: "Learn more about how process isolation (or request isolation) works in the Sentry SDK."
supported:
- javascript.nextjs
- javascript.node
- javascript.connect
- javascript.express
- javascript.fastify
- javascript.hapi
- javascript.koa
- javascript.nestjs
- javascript.nuxt
- javascript.solidstart
- javascript.sveltekit
- javascript.astro
- javascript.remix
notSupported:
- javascript
---

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.

However, the request isolation happens when the request itself is processed. This means that if you e.g. have a middleware where you want to set Sentry data (e.g. `Sentry.setUser()` in an auth middleware), you have to manually fork the isolation scope with `Sentry.withIsolationScope()` - see [Using withIsolationScope](../scopes/#using-withisolationscope).

This is also necessary if you want to isolate a non-request process, e.g. a background job.

The following example shows how you can use `withIsolationScope` to attach a user and a tag in an auth middleware:

```javascript
const auth = (req, res, next) => {
Sentry.withIsolationScope(() => {
const authUser = findUserForHeader(req.headers["authorization"]);
if (!authUser) {
Sentry.setTag("Authenticated", false);
Sentry.setUser(null);
next(new Error("Authentication Error"));
} else {
Sentry.setTag("Authenticated", true);
Sentry.setUser(authUser);
next();
}
});
};
```

This way, the user & tag will only be attached to events captured during the request that passed the auth middleware.
2 changes: 1 addition & 1 deletion docs/platforms/javascript/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/kotlin-multiplatform/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/native/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/php/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/php/guides/laravel/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ In Laravel, you can pass an error object to `captureException()` to get it captu

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />

Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/powershell/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/python/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/ruby/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/rust/common/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/unity/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />
2 changes: 1 addition & 1 deletion docs/platforms/unreal/usage/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ While capturing an event, you can also record the breadcrumbs that lead up to th

Another common operation is to capture a bare message. A message is textual information that should be sent to Sentry. Typically, our SDKs don't automatically capture messages, but you can capture them manually.

Messages also show up in your issue stream.
Messages show up as issues on your issue stream, with the message as the issue name.

<PlatformContent includePath="capture-message" />

0 comments on commit f7590aa

Please sign in to comment.