Skip to content

Reproduction of issue with tail event not serializable #4315

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

edmundhung
Copy link
Member

Similar to #3706, we are using a "proxy" Worker placed in front of a user Worker to emulate static asset serving locally. However, it seems like tail events cannot be proxied over a service binding because they aren't serializable.

Would it be possible to make TraceItem (or tail events in general) serializable?

To reproduce, run:

pnpm dlx workerd serve --verbose samples/tail-event-proxy/config.capnp
curl http://localhost:8080

You will see an error like this from workerd:

workerd/io/worker.c++:2126: info: uncaught exception; source = Uncaught (in promise); stack = DataCloneError: Could not serialize object of type "TraceItem". This type does not support serialization.
    at Object.tail (worker:3:27)
workerd/io/io-context.c++:377: info: uncaught exception; exception = workerd/jsg/_virtual_includes/iterator/workerd/jsg/value.h:1526: failed: jsg.DOMException(DataCloneError): Could not serialize object of type "TraceItem". This type does not support serialization.

@edmundhung edmundhung requested review from a team as code owners June 12, 2025 11:26
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant