Tail Workers #1095
Replies: 1 comment 1 reply
-
This is an oversight. I believe all the implementation code exists in workerd to enable tail workers, but it wasn't ever wired up at the top level, as you discovered in your link. Probably we should extend One weird thing: Technically a tail event can include multiple events in a batch. The intent of this was supposed to be that if you have several workers operating in a "pipeline" making requests to each other, you'd get one tail event batch for each incoming request from the network, and it would include all of the worker invocations that resulted from that one incoming request, transitively. So if the worker receiving the request made a subrequest to another worker (in the same workerd instance), you'd get both invocation reports in a single batch. However, I think in practice we don't ever deliver batches with more than one event in production? Like, if a tailed worker invokes a service binding, I don't think we actually include the other worker's invocation in the tail batch... and we probably shouldn't, since the service binding could belong to someone else. I wonder if this "batch" functionality should be made available in workerd at all, or if maybe we should remove it entirely. cc @irvinebroque and @mrbbot |
Beta Was this translation helpful? Give feedback.
-
Hi there;
As I've been prototyping what it would look like to move our workload onto workerd I've been working through the observability story. I've managed to implement a workable observability layer (collecting prometheus-style metrics/logs and pushing them over to a service tasked with being the collection point) but it feels to me like a bit of a hack, given that tail workers are clearly the intended mechanism here and obviously fit a lot more cleanly.
Poking around the code, it looks like top-level support for tail workers has been pretty explicitly removed from the public version of workerd... Is that the intended situation long term, or is there a roadmap here toward expressing tail workers in the workerd.capnp schema?
Beta Was this translation helpful? Give feedback.
All reactions