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
process.env.APPINSIGHTS_INSTRUMENTATIONKEY) provided from the environment
By default this will add telemetry to the Redux Reducers, and track all the dispatched actions!
There is also a set of utility functions to handle custom telemetry:
trackError(error : Error)
customTrace(error : Error)
You can find those in