Skip to content

Commit e9ccebd

Browse files
committed
rename from numPropagations -> propagations
1 parent 3ef0b80 commit e9ccebd

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

packages/core/src/baseclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
671671
name: processedEvent.transaction,
672672
source,
673673
timestamp: timestampInSeconds(),
674-
propagations: transactionInfo.num_propagations,
674+
propagations: transactionInfo.propagations,
675675
},
676676
],
677677
};

packages/node/src/integrations/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function _createWrappedRequestMethodFactory(
187187
if (tracingEnabled && span) {
188188
const transaction = span.transaction;
189189
if (transaction) {
190-
transaction.metadata.numPropagations += 1;
190+
transaction.metadata.propagations += 1;
191191
}
192192

193193
if (res.statusCode) {

packages/tracing/src/browser/request.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function fetchCallback(
199199
// eslint-disable-next-line @typescript-eslint/no-explicit-any
200200
const options = (handlerData.args[1] = (handlerData.args[1] as { [key: string]: any }) || {});
201201
options.headers = addTracingHeaders(request, activeTransaction.getBaggage(), span, options);
202-
activeTransaction.metadata.numPropagations += 1;
202+
activeTransaction.metadata.propagations += 1;
203203
}
204204
}
205205

@@ -305,7 +305,7 @@ export function xhrCallback(
305305
BAGGAGE_HEADER_NAME,
306306
mergeAndSerializeBaggage(activeTransaction.getBaggage(), headerBaggageString),
307307
);
308-
activeTransaction.metadata.numPropagations += 1;
308+
activeTransaction.metadata.propagations += 1;
309309
} catch (_) {
310310
// Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.
311311
}

packages/tracing/src/transaction.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
5555
...transactionContext.metadata,
5656
spanMetadata: {},
5757
nameChanges: [],
58-
numPropagations: 0,
58+
propagations: 0,
5959
};
6060

6161
this._trimEnd = transactionContext.trimEnd;
@@ -74,7 +74,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
7474
this._name = newName;
7575
const source = 'custom';
7676
this.metadata.source = source;
77-
this.metadata.nameChanges.push(generateTransactionNameChange(source, this.metadata.numPropagations));
77+
this.metadata.nameChanges.push(generateTransactionNameChange(source, this.metadata.propagations));
7878
}
7979

8080
/**
@@ -83,7 +83,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
8383
public setName(name: string, source: TransactionMetadata['source'] = 'custom'): void {
8484
this.name = name;
8585
this.metadata.source = source;
86-
this.metadata.nameChanges.push(generateTransactionNameChange(source, this.metadata.numPropagations));
86+
this.metadata.nameChanges.push(generateTransactionNameChange(source, this.metadata.propagations));
8787
}
8888

8989
/**
@@ -171,7 +171,7 @@ export class Transaction extends SpanClass implements TransactionInterface {
171171
transaction_info: {
172172
source: metadata.source,
173173
name_changes: metadata.nameChanges,
174-
num_propagations: metadata.numPropagations,
174+
propagations: metadata.propagations,
175175
},
176176
}),
177177
};

packages/types/src/event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface Event {
5151
source: TransactionSource;
5252
name_changes: TransactionNameChange[];
5353
// The total number of propagations that happened
54-
num_propagations: number;
54+
propagations: number;
5555
};
5656
}
5757

packages/types/src/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export interface TransactionMetadata {
155155
nameChanges: TransactionNameChange[];
156156

157157
/** The total number of propagations that happened */
158-
numPropagations: number;
158+
propagations: number;
159159
}
160160

161161
/**

0 commit comments

Comments
 (0)