In my usecase i used a customer version of exporter-logs-otlp-http and created a logging function.
The current exprimental library of exporter-logs-otlp-http does not work with cloudflare workers due to node/browser package exports. It resolves to browser version of the exporters which does not work with cloudflare as cloudflare only supports fetch and not XHR (exporter-logs-otlp-http uses XHR for browser)
You'll have to create your own version of OTLPExporterNode that extends OTLPExporterBase
You'll have to make sure the fetch is properly registered if you use it with this library first and then make your calls.
Does this library also intercept console.logs form cloudflare worker and sent it to otel consumer?
Or should i use logpush and try to correlate the otel outputs?