mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
import * as Sentry from '@sentry/react';
|
|
|
|
import {BreadcrumbLevelType, BreadcrumbType} from 'sentry/types/breadcrumbs';
|
|
|
|
export function BreadcrumbFixture(
|
|
params: Partial<Sentry.Breadcrumb> = {}
|
|
): Sentry.Breadcrumb {
|
|
return {
|
|
type: BreadcrumbType.NAVIGATION,
|
|
category: 'default',
|
|
timestamp: new Date().getTime(),
|
|
level: BreadcrumbLevelType.INFO,
|
|
message: 'https://sourcemaps.io/',
|
|
data: {
|
|
to: 'https://sourcemaps.io/',
|
|
},
|
|
...params,
|
|
};
|
|
}
|