Skip to content

Commit 7c586f2

Browse files
authored
ref(js): Add deprecation note to startTransaction documentation (#8945)
1 parent f601386 commit 7c586f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,15 @@ Sentry maintains a [list of well known span operations](https://develop.sentry.d
3838

3939
<PlatformContent includePath="performance/span-operations" />
4040

41-
## Start Transaction
41+
## (Deprecated) Start Transaction
42+
43+
<Alert level="warning" title="Deprecation">
44+
45+
The `startTransaction` function is deprecated and will be removed in version 8 of the SDK.
46+
47+
To migrate, use the span starting functions documented above as a replacement.
48+
49+
</Alert>
4250

4351
The root span (the span that is the parent of all other spans) is known as a **transaction** in Sentry. Transactions can be accessed and created separately if you need more control over your timing data or if you use a version of the SDK that doesn't support the top-level span APIs.
4452

0 commit comments

Comments
 (0)