Skip to content

Commit 171e2a1

Browse files
committed
ref: Set unlabled transaction name
1 parent 19840c3 commit 171e2a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/apm/src/hubextensions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ function startSpan(context: SpanContext | TransactionContext): Transaction | Spa
4040
if ((context as TransactionContext)._isTransaction && !(context as TransactionContext).name) {
4141
logger.warn('You are trying to start a Transaction but forgot to provide a `name` property.');
4242
logger.warn('Will fall back to <unlabeled transaction>, use `transaction.setName()` to change it.');
43+
(context as TransactionContext).name = '<unlabeled transaction>';
4344
}
4445

4546
if ((context as TransactionContext).name) {

0 commit comments

Comments
 (0)