Open
Description
Description
Currently our withSentry
function only instruments known methods on the handler like fetch
, schedule
etc.
Like for Durable Objects, Cloudflare lets you add other methods to your exported object which are exposed as RPC endpoints which can be called from other workers:
https://developers.cloudflare.com/workers/runtime-apis/rpc/
We already do this for durable objects so we should do instrument these for workers too!