breadcrumb.js 453 B

123456789101112131415161718
  1. import {BreadcrumbLevelType, BreadcrumbType} from 'sentry/types/breadcrumbs';
  2. export function Breadcrumb(params = []) {
  3. return {
  4. type: BreadcrumbType.NAVIGATION,
  5. category: 'default',
  6. timestamp: new Date().toISOString(),
  7. level: BreadcrumbLevelType.INFO,
  8. message: 'https://sourcemaps.io/',
  9. data: {
  10. to: 'https://sourcemaps.io/',
  11. },
  12. id: 6,
  13. color: 'green300',
  14. description: 'Navigation',
  15. ...params,
  16. };
  17. }