Skip to content

Commit de29728

Browse files
committed
feat: Add BrowserTracing heartbeatInterval option description
1 parent 3540efd commit de29728

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/platforms/javascript/common/performance/instrumentation/automatic-instrumentation.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Supported options:
5252

5353
### tracingOrigins
5454

55-
A list of strings and regular expressions. The JavaScript SDK will attach the `sentry-trace` and `baggage` headers to all outgoing XHR/fetch requests whose destination contains a string in the list or matches a regex in the list. If your frontend is making requests to a different domain, you'll need to add it there to propagate the `sentry-trace` and `baggage` headers to the backend services, which is required to link transactions together as part of a single trace.
55+
A list of strings and regular expressions. The JavaScript SDK will attach the `sentry-trace` and `baggage` headers to all outgoing XHR/fetch requests whose destination contains a string in the list or matches a regex in the list. If your frontend is making requests to a different domain, you'll need to add it there to propagate the `sentry-trace` and `baggage` headers to the backend services, which is required to link transactions together as part of a single trace.
5656

5757
**The `tracingOrigins` option matches against the whole request URL, not just the domain. Using stricter regex to match certain parts of the URL ensures that requests do not unnecessarily have the additional headers attached.**
5858

@@ -80,6 +80,12 @@ The idle time, measured in ms, to wait until the transaction will be finished. T
8080

8181
The default is `1000`.
8282

83+
### heartbeatInterval
84+
85+
The time, measured in ms, one heartbeat takes. If no new spans were started or no open spans finished within **three heartbeats**, the transaction will be finished. The heartbeat count restarts whenever a new span is created or an open span is finished.
86+
87+
The default is `5000`.
88+
8389
### startTransactionOnLocationChange
8490

8591
This flag enables or disables creation of `navigation` transaction on history changes.

0 commit comments

Comments
 (0)