Menu
Hono SDK API Reference
Hono SDK
Highlight's Hono SDK makes it easy to monitor errors and requests in your Hono applications by providing middleware that automatically traces requests and reports errors.
Just getting started?
Check out our getting started guide to get up and running quickly.
highlightMiddleware
Creates a Hono middleware that automatically traces requests and reports errors to Highlight.
Method Parameters
import { Hono } from 'hono'
import { highlightMiddleware } from '@highlight-run/hono'
const app = new Hono()
app.use(highlightMiddleware({
projectID: '<YOUR_PROJECT_ID>',
serviceName: 'my-hono-app',
}))
app.get('/', (c) => {
return c.text('Hello Highlight!')
})
export default app