-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Capture performance tracing via Electron contentTracing
API
#504
Comments
@timfish we are not far from being able to visualize that format on the sentry dashboard, there are a couple of important things to note:
|
Indeed it can be, although it looks like you have full control of the categories that are captured so it might be possible to keep it slimmed down.
I'll see what I can do!
Yes, as far as I understand it, it hits up the same code as Chrome dev tools |
That is great, we can hopefully trim it down to the bare minimum.
I'm actually wondering if we could avoid using the electron API and just import our own profiling sdk for node. I know very little about Electron, but the idea that profiling interface is re-exposed through Electron makes me think that our own bindings would not work. |
In Electron you have the main root node process that is mainly used for opening and taking care of windows and orchestrating IPC. Each window (a "renderer") is essentially a Chromium tab and with the default configuration there is no node.js available in these. They highly discourage enabling node.js in the browser windows because of the many security implications when mixed with remote content! There are ways to expose node.js functionality into the browser windows but this is via an isolated context (I think using the same underlying tech as Chromium extensions). However this isolated context probably makes it useless for things like tracing where I'm guessing globals and things get patched, modified etc. |
Electron includes a
contentTracing
API which allows you to capture traces in the Chromium json trace event format.Could this be parsed and converted to format suitable for submitting to Sentry?
The text was updated successfully, but these errors were encountered: