Cloudflare Worker SDK API Reference
Cloudflare Worker SDK
Highlight's Cloudflare Worker SDK lets you track your errors and responses in Cloudflare Workers with no impact on performance..
Just getting started?
Check out our getting started guide to get up and running quickly.
H.init() configures the highlight SDK and records console log methods. The session is inferred based on the incoming network request headers.
H.consumeError() reports an error and its corresponding stack trace to Highlight. The session is inferred based on the incoming network request headers.
H.sendResponse() traces a response from your backend. This allows tracking incoming and outgoing headers and bodies.
H.setAttributes() attached structured log attributes to all subsequent console methods. Repeat calls with the same key update the value.