@@ -191,23 +191,21 @@ export function _callOnClient(method: string, ...args: any[]): void {
191191}
192192
193193/**
194- * Starts a new `Transaction` and returns it. This is the entry point to manual
195- * tracing instrumentation.
194+ * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
196195 *
197- * A tree structure can be built by adding child spans to the transaction, and
198- * child spans to other spans. To start a new child span within the transaction
199- * or any span, call the respective `.startChild()` method.
196+ * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
197+ * new child span within the transaction or any span, call the respective `.startChild()` method.
200198 *
201- * Every child span must be finished before the transaction is finished,
202- * otherwise the unfinished spans are discarded.
199+ * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
203200 *
204- * The transaction must be finished with a call to its `.finish()` method, at
205- * which point the transaction with all its finished child spans will be sent to
206- * Sentry.
201+ * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its
202+ * finished child spans will be sent to Sentry.
207203 *
208204 * @param context Properties of the new `Transaction`.
209205 * @param customSampleContext Information given to the transaction sampling function (along with context-dependent
210206 * default values). See {@link Options.tracesSampler}.
207+ *
208+ * @returns The transaction which was just started
211209 */
212210export function startTransaction ( context : TransactionContext , customSampleContext ?: CustomSampleContext ) : Transaction {
213211 return callOnHub ( 'startTransaction' , { ...context } , customSampleContext ) ;
0 commit comments