-
Notifications
You must be signed in to change notification settings - Fork 296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial sketch of streaming tail workers #2852
base: main
Are you sure you want to change the base?
Conversation
31ff8c6
to
2dcbac7
Compare
794cdc2
to
e40d411
Compare
Can we please get a design doc showing what the API looks like from the application developer's perspective? It's hard to figure that out from a PR. |
There's already an internal wiki doc discussing this that has already been shared with you previously. Check your email. Was shared about a month ago and updated yesterday |
Overall LGTM |
8fde2e2
to
cb7e8ba
Compare
@danlapid ... thanks for the review! I updated a couple of those. On the naming concern, I'm going to leave the names as they are for now. Those will be trivial to change later if necessary before this goes live. |
Adds the ability for a workerd worker configuration to specify a tail worker configuration. This is useful for testing tail worker development locally, which up to now has not been possible.
* Collapse Info events into the Onset * Remove ActorFlushInfo * Other cleanups
No need to express it explicitly. Can be inferred if necessary based on span outcome.
Original thought on these is that using an optional numeric key would allow for more efficient encoding. However, it makes the implementation more complicated so let's just use string keys.
463db3b
to
af4a3ff
Compare
Use SpanCose consistently even for the root span/stream. Rework the StreamingTrace interface to better handle rootspan.
Implements the key pieces of the new streaming tail workers model. Does not yet introduce the changes to make it active. This PR focuses on the core data model and restructuring of parts of the current tail workers impl to accomodate both models. Look at the tests (specifically trace-streaming-test.c++) to get a good feel for how the streaming trace is structured.
Among other changes included here...