File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
packages/sveltekit/src/client Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,14 @@ const DEFAULT_TAGS = {
9
9
} ;
10
10
11
11
/**
12
+ * Automatically creates pageload and navigation transactions for the client-side SvelteKit router.
12
13
*
13
- * @param startTransactionFn
14
- * @param startTransactionOnPageLoad
15
- * @param startTransactionOnLocationChange
16
- * @returns
14
+ * This instrumentation makes use of SvelteKit's `page` and `navigating` stores which can be accessed
15
+ * anywhere on the client side.
16
+ *
17
+ * @param startTransactionFn the function used to start (idle) transactions
18
+ * @param startTransactionOnPageLoad controls if pageload transactions should be created (defaults to `true`)
19
+ * @param startTransactionOnLocationChange controls if navigation transactions should be created (defauls to `true`)
17
20
*/
18
21
export function svelteKitRoutingInstrumentation < T extends Transaction > (
19
22
startTransactionFn : ( context : TransactionContext ) => T | undefined ,
You can’t perform that action at this time.
0 commit comments