transformTransaction.tsx 363 B

12345678910111213
  1. import type {NormalizedTrendsTransaction} from 'sentry/views/performance/trends/types';
  2. export default function transformTransaction(
  3. transaction: NormalizedTrendsTransaction
  4. ): NormalizedTrendsTransaction {
  5. if (transaction?.breakpoint) {
  6. return {
  7. ...transaction,
  8. breakpoint: transaction.breakpoint * 1000,
  9. };
  10. }
  11. return transaction;
  12. }