Adjust the SDK (either modify existing or create a new one) to allow using it on the Cloudflare Workers
Things to consider from initial investigation:
Support for Node packages is limited. Can use node compatibility but it requires native Node modules to be imported with import syntax and with node: prefix which a lot of dependencies don't do.
OpenTelemetry SDK context propagation uses parts of node:async_hooks that are not supported. Might need creating a custom one
Background operations are tricky as Cloudflare Workers don't support async IO, timeouts are only available while handling a request (it can be either a fetch request handler or scheduled handler).
Also worth noting that if something is scheduled in the handler it might actually never be executed unless ctx.waitUntil is used
Adjust the SDK (either modify existing or create a new one) to allow using it on the Cloudflare Workers
Things to consider from initial investigation:
import
syntax and withnode:
prefix which a lot of dependencies don't do.node:async_hooks
that are not supported. Might need creating a custom onectx.waitUntil
is used