You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Exporters - especially the ProtoExporters are quite big. How about using the new Cloudflare ServiceBinding to run a ExporterWorker. So the sdk could get split into the minimal instrumentation code which is small and optimized for execution. This part would the send the data in JSON form to the Exporter Worker which transforms it to Protobuf and sends it to the receiver.
Basically it's the idea of the OTLP collectors but fully serverless on CF.
It's an interesting idea for sure! Would make it much simpler to decouple configuration from indivudal services, and with the way bindings work it's essentially no/the-same overhead.
// src/consumerWorker.ts// This could probably have a much better nameimport{traceViaBinding}from"opentelemtry-sdk-workers";exportdefault{fetch: traceViaBinding((request)=>{returnnewResponse("Hello World!");}),/* Take module env, and return exporter binding */env=>env.EXPORTER_SERVICE);};
It probably wouldn't reduce the default size much if any as we'd probably want to communicate via the standard JSON encoding (since it's all HTTP under the covers) but it means you don't have to bloat you worker for Proto support.
The Exporters - especially the ProtoExporters are quite big. How about using the new Cloudflare
ServiceBinding
to run a ExporterWorker. So the sdk could get split into the minimal instrumentation code which is small and optimized for execution. This part would the send the data in JSON form to the Exporter Worker which transforms it to Protobuf and sends it to the receiver.Basically it's the idea of the OTLP collectors but fully serverless on CF.
What do you think @RichiCoder1 ?
The text was updated successfully, but these errors were encountered: