Skip to content

Commit 259c299

Browse files
codydecoolguyzone
andauthored
Update docs/platforms/javascript/common/tracing/instrumentation/index.mdx
Co-authored-by: Alex Krawiec <[email protected]>
1 parent e0810b3 commit 259c299

File tree

1 file changed

+1
-1
lines changed
  • docs/platforms/javascript/common/tracing/instrumentation

1 file changed

+1
-1
lines changed

docs/platforms/javascript/common/tracing/instrumentation/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ Only `name` is required, all other options are optional.
8686

8787
## Starting an Active Span (`startSpan`)
8888

89-
For most scenarios, we recommend to start active spans with `Sentry.startSpan()`. This will start a new span that is active in the provided callback, and will automatically end the span when the callback is done. The callback can be synchronous, or asynchronous (a promise). In the case of an asynchronous callback, the span will be ended when the promise is resolved or rejected. If the provided callback errors or rejects, the span will be marked as failed.
89+
For most scenarios, we recommend to start active spans with `Sentry.startSpan()`. This will start a new span that is active in the provided callback, and will automatically end the span when the callback is done. The callback can be synchronous or asynchronous (a promise). In the case of an asynchronous callback, the span will be ended when the promise is resolved or rejected. If the provided callback throws an error or rejects a promise, the span will be marked as failed.
9090

9191
<PlatformContent includePath="performance/start-span" />
9292

0 commit comments

Comments
 (0)