import { Highlight } from '@highlight-run/node'
const app = express()
// define any configurations needed
// <https://docs.highlight.run/api/hinit#w0-highlightoptions>
const highlightOptions = {}
const highlightHandler = Highlight.Handlers.errorHandler(highlightOptions)
app.use(highlightHandler)
app.use('/error', () => {
throw new Error('a fake failure was thrown')
})
With our pixel-perfect replays of your Express app, you'll get to the bottom of issues in no time and better understand how your app is being used.
Our alerting infrastructure can take abnormal metrics or errors raised in your Express app and notify your engineering team over Slack, Discord, and more!
Highlight allows you to track performance, request timings, and several other metrics in your Express application.