Skip to main content

Logging and Instrumentation

Application insights is used to monitor both the node(express) instance and the NextJS client code running on the browser.

AppInsights is configured with the instrumentationKey (or process.env.APPINSIGHTS_INSTRUMENTATIONKEY) provided from the environment variables.

By default this will add telemetry to the Redux Reducers, and track all the dispatched actions!


Utility Functions

There is also a set of utility functions to handle custom telemetry:

   trackError(error :  Error)

customTrace(error : Error)

You can find those in utility/telemetry.ts file.