breadcrumb.ts 484 B

12345678910111213141516171819
  1. import * as Sentry from '@sentry/react';
  2. import {BreadcrumbLevelType, BreadcrumbType} from 'sentry/types/breadcrumbs';
  3. export function BreadcrumbFixture(
  4. params: Partial<Sentry.Breadcrumb> = {}
  5. ): Sentry.Breadcrumb {
  6. return {
  7. type: BreadcrumbType.NAVIGATION,
  8. category: 'default',
  9. timestamp: new Date().getTime(),
  10. level: BreadcrumbLevelType.INFO,
  11. message: 'https://sourcemaps.io/',
  12. data: {
  13. to: 'https://sourcemaps.io/',
  14. },
  15. ...params,
  16. };
  17. }