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

Source Map Upload *summary* #712

Open
jrr opened this issue Mar 28, 2025 · 3 comments
Open

Source Map Upload *summary* #712

jrr opened this issue Mar 28, 2025 · 3 comments
Assignees

Comments

@jrr
Copy link

jrr commented Mar 28, 2025

Problem Statement

Today, when configuring the verbosity of my withSentryConfig(), it seems like I have two options for logging what's going on with source maps:

  1. silent:true -> no evidence of source maps working at all
  2. silent:false -> hundreds of lines of output.

Solution Brainstorm

Here's an example of what we see today:

getsentry/sentry-javascript#20 49.36 > Found 252 files
getsentry/sentry-javascript#20 49.39 > Analyzing 252 sources
getsentry/sentry-javascript#20 49.44 > Adding source map references
getsentry/sentry-javascript#20 51.08 > Bundled 252 files for upload
getsentry/sentry-javascript#20 51.08 > Bundle ID: 66b7d9d0-08a0-58e1-9a72-1cb685c7d9e8
getsentry/sentry-javascript#20 52.34 > Uploaded files to Sentry
getsentry/sentry-javascript#20 52.49 > File upload complete (processing pending on server)
getsentry/sentry-javascript#20 52.49 > Organization: my-org
getsentry/sentry-javascript#20 52.49 > Project: my-proj
getsentry/sentry-javascript#20 52.49 > Release: my-release-123
getsentry/sentry-javascript#20 52.49 > Dist: None
getsentry/sentry-javascript#20 52.49 > Upload type: artifact bundle
getsentry/sentry-javascript#20 52.49 
getsentry/sentry-javascript#20 52.49 Source Map Upload Report
getsentry/sentry-javascript#20 52.49   Scripts
getsentry/sentry-javascript#20 52.49     ~/007f03f0-75b6-4f4e-af77-5229486f1559-70.js (sourcemap at 2829.js.map, debug id 007f03f0-75b6-4f4e-af77-5229486f1559)
getsentry/sentry-javascript#20 52.49     ~/0255c949-852e-4016-9049-b6646eb02e71-96.js (sourcemap at 6684.js.map, debug id 0255c949-852e-4016-9049-b6646eb02e71)
getsentry/sentry-javascript#20 52.49     ~/0366c355-39c2-4b90-a7be-5f8e6671916b-26.js (sourcemap at page.js.map, debug id 0366c355-39c2-4b90-a7be-5f8e6671916b)
getsentry/sentry-javascript#20 52.49     ~/084f15e6-c388-4f5c-a173-1e532bc5be45-51.js (sourcemap at page.js.map, debug id 084f15e6-c388-4f5c-a173-1e532bc5be45)
( ... and hundreds of lines more )

It's also a little confusing that there are three separate upload steps. (edge/client/node?)

Ideally, I'd like the tools to default to a reasonable amount of logging, telling me the basics of what's going on without listing every single file. Maybe something like this:

Sentry source map upload (node.js): 252 files uploaded for release my-release-123
Sentry source map upload (edge): 258 files uploaded for release my-release-123
Sentry source map upload (client): 228 files uploaded for release my-release-123

Am I missing something? Is there a good way to get a reasonable amount of verbosity with today's tools?

@lforst
Copy link
Member

lforst commented Mar 31, 2025

That is an extremely reasonable ask. @szokeasaurusrex can we somehow add a structured output to the JS layer of the CLI?

@Lms24 Lms24 transferred this issue from getsentry/sentry-javascript Mar 31, 2025
@Lms24
Copy link
Member

Lms24 commented Mar 31, 2025

Agreed, this sounds very reasonable and it's not the first time we're getting requests around logs. I just transferred the issue to our bundler plugins repo because this needs to be addressed in our plugins once the CLI allows us to do so.

@szokeasaurusrex
Copy link
Member

@lforst by structured output do you mean like a JSON output?

We can probably add it, only question is how difficult it will be to implement. Will need to investigate that more thoroughly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

4 participants