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

Automatic tracing of user interactions in the browser (e.g. clicks) #492

Closed
draffensperger opened this issue Nov 6, 2019 · 1 comment · Fixed by #658
Closed

Automatic tracing of user interactions in the browser (e.g. clicks) #492

draffensperger opened this issue Nov 6, 2019 · 1 comment · Fixed by #658
Assignees
Milestone

Comments

@draffensperger
Copy link
Contributor

draffensperger commented Nov 6, 2019

In OpenCensus Web, we developed fully automatic tracing of user interactions such as click events. This worked by monkey-patching the Zone.runTask function (and other Zone functions) to intercept events (code link). Then when a click event occurs, we would start a new tracing zone (equivalent to a scope in OpenTelemetry) and then wait for that zone to become "stable", that is to finish all tasks that it spaws besides setInterval periodic timers.

Here's a (doc about its automatic tracing algorithm).

@obecny what would you think about porting this functionality to OpenTelemetry as a new plugin e.g. UserInteractionPlugin or similar?

It would give people the option of getting started quickly with OpenTelemetry since they would get nice spans for their click events without having to do any manual instrumentation besides enabling the tracer and plugin.

@draffensperger draffensperger changed the title a Automatic tracing of user interactions in the browser (e.g. clicks) Nov 6, 2019
@obecny
Copy link
Member

obecny commented Nov 6, 2019

sounds great, pls assign this to me

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

Successfully merging a pull request may close this issue.

3 participants