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

Default to RPC for rust? #71

Open
kegsay opened this issue May 24, 2024 · 1 comment
Open

Default to RPC for rust? #71

kegsay opened this issue May 24, 2024 · 1 comment

Comments

@kegsay
Copy link
Member

kegsay commented May 24, 2024

Rust has a single global logger without namespacing. This makes it really hard to see which logs lines are for alice vs bob vs a 2nd device. In contrast, JS SDK prefixes console log lines with the URL and user ID, allowing users/devices to be uniquely identified.

If we swap to RPC by default for rust, then 1 namespaced file is made per device of the form rust_sdk_logs_1user-2-bob_hs1_JBLTLBGVYV.2024-05-24-08

The downside to doing this however is that we then would mandate RPC binaries for all rust tests, which isn't as dev-friendly.

@andybalaam
Copy link
Contributor

The rust SDK uses the tracing library, which I feel almost sure would allow us to provide a prefix that would be applied to its log messages.

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