Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/tracing/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
this._name = transactionContext.name || '';

this.metadata = {
source: 'custom',
source: 'initialize',
...transactionContext.metadata,
spanMetadata: {},
changes: [],
Expand Down
2 changes: 2 additions & 0 deletions packages/types/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ export interface TransactionMetadata {
* whether or not to scrub identifiers from the transaction name, or replace the entire name with a placeholder.
*/
export type TransactionSource =
/** initialize name */
| 'initialize'
/** User-defined name */
| 'custom'
/** Raw URL, potentially containing identifiers */
Expand Down
2 changes: 1 addition & 1 deletion packages/vue/src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export function vueRouterInstrumentation(router: VueRouter): VueRouterInstrument
if (startTransactionOnPageLoad && isPageLoadNavigation) {
const pageloadTransaction = getActiveTransaction();
if (pageloadTransaction) {
if (pageloadTransaction.metadata.source !== 'custom') {
if (pageloadTransaction.metadata.source !== 'initialize') {
pageloadTransaction.setName(transactionName, transactionSource);
}
pageloadTransaction.setData('params', data.params);
Expand Down