0.0.5 • Published 3 years ago

splunk-react v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

splunk-react on npm


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);
0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago