/** * Checks if a given value is a valid measurement value. */ function isMeasurementValue(value) { return typeof value === 'number' && isFinite(value); } /** * Helper function to start child on transactions. This function will make sure that the transaction will * use the start timestamp of the created child span if it is earlier than the transactions actual * start timestamp. */ function _startChild(transaction, { startTimestamp, ...ctx }) { if (startTimestamp && transaction.startTimestamp > startTimestamp) { transaction.startTimestamp = startTimestamp; } return transaction.startChild({ startTimestamp, ...ctx, }); } export { _startChild, isMeasurementValue }; //# sourceMappingURL=utils.js.map