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

Telemetry Mixin #27

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Telemetry Mixin #27

wants to merge 2 commits into from

Conversation

NicholasHallman
Copy link
Contributor

@NicholasHallman NicholasHallman commented Sep 22, 2022

Why?

This mixin provides a simple way for elements to fire user events to the telemetry service.
See: https://gist.github.com/NicholasHallman/7276df9a5051718a13d737eb53805d12

Functional

  • can be initialized by the top level component
  • verifies that required components are present
  • checks that actions and paremeters match the definition
  • events created by TelemetryEvent.dispatch() are intercepted by the top level component
  • events sent by the dispatch helper can move through multiple shadow doms
  • debouncing delays when events are sent to the telemetry service
  • middleware allows for event modification before they are stored or sent to the telemetry service
  • minimizing the tab fires events in the queue
  • changin apps on mobile fires events in the queue
  • closing the browser fires events in the queue

This code has not been ran so use with caution

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