Skip to content

Commit 819270a

Browse files
committed
rename internal startTransaction with leading underscore
1 parent aeb462f commit 819270a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/tracing/src/hubextensions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ function getDefaultSampleContext(): SampleContext {
122122
*
123123
* @see {@link Hub.startTransaction}
124124
*/
125-
function startTransaction(this: Hub, context: TransactionContext, sampleContext?: SampleContext): Transaction {
125+
function _startTransaction(this: Hub, context: TransactionContext, sampleContext?: SampleContext): Transaction {
126126
const transaction = new Transaction(context, this);
127127
return sample(this, transaction, { ...getDefaultSampleContext(), ...sampleContext });
128128
}
@@ -149,7 +149,7 @@ export function _addTracingExtensions(): void {
149149
if (carrier.__SENTRY__) {
150150
carrier.__SENTRY__.extensions = carrier.__SENTRY__.extensions || {};
151151
if (!carrier.__SENTRY__.extensions.startTransaction) {
152-
carrier.__SENTRY__.extensions.startTransaction = startTransaction;
152+
carrier.__SENTRY__.extensions.startTransaction = _startTransaction;
153153
}
154154
if (!carrier.__SENTRY__.extensions.traceHeaders) {
155155
carrier.__SENTRY__.extensions.traceHeaders = traceHeaders;

0 commit comments

Comments
 (0)