splunk-react
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

splunk-react on npm

VTEX Admin

splunk-react

Reach us at #frontend-monitoring channel on Slack


SplunkMonitoring instance

import { SplunkMonitoring } from "splunk-react";

const monitoring = new SplunkMonitoring({
  token: "12345",
  endpoint: "http://my-splunk-endpoint:9999",
  // Only set `vtexIO` info in case your app
  // is running on top of VTEX IO
  vtexIO: {
    runtimeInfo: {
      account: global.__RUNTIME__.account,
      workspace: global.__RUNTIME__.workspace,
      renderMajor: global.__RUNTIME__.renderMajor,
      production: global.__RUNTIME__.production,
    },
    appInfo: {
      appId: process.env.VTEX_APP_ID as string,
      appVersion: process.env.VTEX_APP_VERSION as string,
    },
  },
});

High order methods available in this application

withErrorBoundary monitoring

import { SplunkMonitoring, withErrorBoundary } from "splunk-react";

const monitoring = new SplunkMonitoring({
  // Your config here
});

const App = () => <div>Hello world</div>;

const AppWithErrorBoundaryMonitoring = withErrorBoundary(monitoring)(App);

Readme

Keywords

none

Package Sidebar

Install

npm i splunk-react

Weekly Downloads

0

Version

0.0.5

License

MIT

Unpacked Size

28.4 kB

Total Files

28

Last publish

Collaborators

  • marcelovicentegc