Skip to content
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

Provide way to see unified log of message events #48

Open
twschiller opened this issue Oct 25, 2021 · 0 comments
Open

Provide way to see unified log of message events #48

twschiller opened this issue Oct 25, 2021 · 0 comments

Comments

@twschiller
Copy link
Collaborator

twschiller commented Oct 25, 2021

Context

  • Browser messaging is a distributed system with some unintuitive message routing behavior
  • During development/debugging, it would be nice to see the exact sequence of message events, possibly using a tool for distributed systems like https://bestchai.bitbucket.io/shiviz/
    -Depending on how it's implemented, for testing, we could even write assertions like "happened before", etc.

Implementation Sketch

  • Create a "trace" flag to control whether event tracing is enabled
  • Send event metadata to a common location, e.g., a text file, IDB database, or to the background page
    • For each message received, log timestamp, who it was received from, and type
    • For each message sent, log timestamp, the target it was sent to, etc.
    • For each message responded to, log timestamp, who it was received from, success/error, etc.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant