Skip to content

Commit f9bb9d6

Browse files
authored
Correct markBackgroundSpan option in JS browser tracing (#15383)
Corrected the `markBackgroundSpan` option of JS browser tracing integration docs. Implementation reference: [Link](https://github.com/getsentry/sentry-javascript/blob/3deeecd8d5e5d3b4be68c7e22982e2d0d26a1a62/packages/browser/src/tracing/browserTracingIntegration.ts#L109)
1 parent 52726fb commit f9bb9d6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/platforms/javascript/common/tracing/instrumentation/automatic-instrumentation.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ You will need to configure your web server [CORS](https://developer.mozilla.org/
8686
<SdkOption name="shouldCreateSpanForRequest" type='(url: string) => boolean'>
8787

8888
This function can be used to filter out unwanted spans such as XHRs running
89-
health checks or something similar.
89+
health checks or something similar.
9090

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

@@ -138,7 +138,7 @@ This option determines whether the <PlatformLink to="/apis/#reportPageLoaded">`S
138138

139139
</SdkOption>
140140

141-
<SdkOption name="markBackgroundSpans" type='boolean' defaultValue='true'>
141+
<SdkOption name="markBackgroundSpan" type='boolean' defaultValue='true'>
142142

143143
This option flags pageload/navigation spans when tabs are moved to the background with "cancelled". Because browser background tab timing is not suited for precise measurements of operations and can affect your statistics in nondeterministic ways, we recommend that this option be enabled.
144144

@@ -229,4 +229,4 @@ performance.measure('input-duration', ...);
229229

230230
By default, all performance API spans are captured.
231231

232-
</SdkOption>
232+
</SdkOption>

0 commit comments

Comments
 (0)