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

Improve language runtime detection for SDK #314

Open
mlejva opened this issue Feb 16, 2024 · 0 comments
Open

Improve language runtime detection for SDK #314

mlejva opened this issue Feb 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mlejva
Copy link
Member

mlejva commented Feb 16, 2024

Currently, we're a bit naive when detecting a language runtime. We only detect if it's a browser or Node.

The platform library we're using isn't able to detect well other runtimes besides Node

Relevant code:

lang_version: platform.version || 'unknown',

sdk_runtime: typeof window === 'undefined' ? 'node' : 'browser',

Describe the solution you'd like
We should be able to detect at least Node, Deno, and Bun.

@mlejva mlejva added the bug Something isn't working label Feb 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Planned
Development

No branches or pull requests

1 participant