this repo has no description
1/**
2 * Checks if a given value is a valid measurement value.
3 */
4function isMeasurementValue(value) {
5 return typeof value === 'number' && isFinite(value);
6}
7
8/**
9 * Helper function to start child on transactions. This function will make sure that the transaction will
10 * use the start timestamp of the created child span if it is earlier than the transactions actual
11 * start timestamp.
12 */
13function _startChild(transaction, { startTimestamp, ...ctx }) {
14 if (startTimestamp && transaction.startTimestamp > startTimestamp) {
15 transaction.startTimestamp = startTimestamp;
16 }
17
18 return transaction.startChild({
19 startTimestamp,
20 ...ctx,
21 });
22}
23
24export { _startChild, isMeasurementValue };
25//# sourceMappingURL=utils.js.map