@atlaskit/report-error
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

Platform error reporter

Platform error bus can be used by platform component to report errors to products.

Platform usage

import { reportError } from '@atlaskit/report-error';

reportError({
	error: Error; // Error
	errorInfo: ErrorInfo; // ErrorInfo from 'react', available within ErrorBoundary
	interractionId?: string; // UFO interractionId, if available
})

Product usage

// product root file
import { installErrorHandler } from '@atlaskit/report-error';

installErrorHandler(({
	error: Error; // Error
	errorInfo: ErrorInfo; // ErrorInfo from 'react', available within ErrorBoundary
	interactionId?: string; // UFO interractionId, if available
}) => {
	// log error to splunk

	// log error to sentry

	// any other custom error logging...
});

Readme

Keywords

none

Package Sidebar

Install

npm i @atlaskit/report-error

Weekly Downloads

49

Version

0.0.0

License

none

Unpacked Size

4.6 kB

Total Files

8

Last publish

Collaborators

  • atlassianartifactteam