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: sourcemap support #63

Open
aroman opened this issue Jun 30, 2023 · 2 comments
Open

feature request: sourcemap support #63

aroman opened this issue Jun 30, 2023 · 2 comments

Comments

@aroman
Copy link

aroman commented Jun 30, 2023

many javascript environments are written using source code files that don't map 1:1 with the codebase used at runtime, due to typescript and/or minification

this makes viewing logs not such a great experience — it would be awesome if betterstack supported JS sourcemaps, particularly for environments like cloudflare workers where all your code gets bundled up into a single giant JS file

CleanShot 2023-06-30 at 11 24 20@2x

@curusarn
Copy link
Contributor

Hi @aroman,

Thanks for reaching out.
This sounds like a useful feature. I'm adding it to our internal ticketing system.
I'll make sure to keep you updated.

Also we are always grateful for contributions.
This looks like a library we could use:
https://www.npmjs.com/package/source-map#consuming-a-source-map

Thanks again for raising this. 🙏

@aroman
Copy link
Author

aroman commented Jul 11, 2023

Hi @aroman,

Thanks for reaching out. This sounds like a useful feature. I'm adding it to our internal ticketing system. I'll make sure to keep you updated.

Also we are always grateful for contributions. This looks like a library we could use: https://www.npmjs.com/package/source-map#consuming-a-source-map

Thanks again for raising this. 🙏

@curusarn that would be great. it's worth pointing out — i think this feature would require support from the logtail API/backend team. actually uploading the sourcemap via logtail-js should be pretty trivial as you pointed out, but those sourcemaps would actually need to be uploaded somewhere presumably stored by logtail and used to display in e.g. the logtail UI, or possibly via API access to logs.

Consider how Sentry does sourcemaps for logs (for JS in the browser and the backend): https://docs.sentry.io/product/cli/releases.

z

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