@ringcentral/mfe-sentry
TypeScript icon, indicating that this package has built-in type declarations

0.4.5 • Public • Published

@ringcentral/mfe-sentry

Node CI

A micro frontends framework for building Web applications

Usage

npm install @ringcentral/mfe-sentry
# or
yarn add @ringcentral/mfe-sentry

You can visit https://github.com/ringcentral/ringcentral-mfe for more documentation.

Note: Sentry does not fully support micro-frontends, and the library cannot capture default errors in fetch() requests of sub-applications.

Based on Sentry experimental features, it relies on injecting moduleMetadata through webpack bundler. To reduce dependency on builders and improve ease of use, @ringcentral/mfe-sentry only provides runtime API.

interface MfeSentry {
    hub: Hub;
    client: BrowserClient;
    urls: string[];
    setTags: (tags: Record<string, any>) => void;
    setTag: (key: string, value: any) => void;
    setExtra: (key: string, value: any) => void;
    setExtras: (extras: Record<...>) => void;
    setUser: (user: User | null) => void;
}

Readme

Keywords

Package Sidebar

Install

npm i @ringcentral/mfe-sentry

Weekly Downloads

81

Version

0.4.5

License

MIT

Unpacked Size

24.7 kB

Total Files

12

Last publish

Collaborators

  • kirill.konshin
  • tylerlong