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

[FEATURE REQUEST] rust-wasm client #36

Open
nullrocket opened this issue Aug 21, 2019 · 4 comments
Open

[FEATURE REQUEST] rust-wasm client #36

nullrocket opened this issue Aug 21, 2019 · 4 comments

Comments

@nullrocket
Copy link

My company is migrating our browser client to rust-wasm, and I'm wondering if there are any thoughts towards TrackJs supporting that environment?

Currently we are planning on just wrapping the TrackJs client to expose the API in rust, but a deeper integration would be nice.

Looks like sentry is doing it for native rust at least https://blog.sentry.io/2018/10/22/getting-started-with-rust-error-tracking

@toddhgardner
Copy link
Member

Hi @nullrocket. Thanks for the suggestion! Wrapping the client is a good first step, as it should give you visitor, network, and console telemetry, as well as exposing global errors.

What sort of things would you want from a native implementation?

@nullrocket
Copy link
Author

@toddhgardner wrapping the client gets quite a way there, and after looking at https://github.com/rustwasm/console_error_panic_hook and how it dumps to the console on panic, I realized stacktraces will get sent to trackjs via the javascript client when they occur.

It looks like we don't really need an official TrackJs rust-wasm client, but having it available would still be useful, as in we don't have to keep it up to date ourselves :)

@toddhgardner
Copy link
Member

@nullrocket absolutely, I understand. Can you share the wrapper you built with us, maybe we can use it as a starting point?

@nullrocket
Copy link
Author

Sure can, it will take us a bit to extract it, if you don't mind leaving this issue open for a while as a placeholder, I'll circle back when we have something ready.

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

No branches or pull requests

2 participants