From ad2a97106b35dc9cc2d72f2181c547c807080d9d Mon Sep 17 00:00:00 2001 From: Kev <6111995+k-fish@users.noreply.github.com> Date: Fri, 12 Aug 2022 13:57:52 -0400 Subject: [PATCH] docs(sdk): Add long tasks experiment to doc This adds the new 'experiments' option for `BrowserTracing` with the on-by-default `enableLongTasks` flag. --- .../automatic-instrumentation.mdx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/platforms/javascript/common/performance/instrumentation/automatic-instrumentation.mdx b/src/platforms/javascript/common/performance/instrumentation/automatic-instrumentation.mdx index ad7efd02ac45f..359ed26acfa7d 100644 --- a/src/platforms/javascript/common/performance/instrumentation/automatic-instrumentation.mdx +++ b/src/platforms/javascript/common/performance/instrumentation/automatic-instrumentation.mdx @@ -99,3 +99,21 @@ The default is `600`. This option flags transactions 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. The default is `true`. + + +### _experiments + +This is an object containing experimental flags for features that may involve breaking changes that haven't yet landed in a new major version. + +The default is +``` +{ + enableLongTasks: true +} +``` + +#### _experiments.enableLongTasks + +This experimental option determines whether spans for long tasks automatically get created. + +The default is `true`.