getsentry/spotlight

Not able to view assets in Electron

Shubhdeep12 opened this issue · 1 comments

Environment

What version are you running? Etc.

Steps to Reproduce

  1. Try previewing the span with span.op as resource.img in the spanDetails page both in the browser and in the Electron app

Expected Result

Ideally, the assets should be visible in the Electron app also

Actual Result

Browser
image

.

Local App
image

Reason - description of these spans with preview is treated as src for img tag and this description usually contains the path not the exact URL of assets(images).
In the browser, it works because local assets need a browser base path
but the electron app is opened on port 5317 locally, causing the error.

Solution brainstorm - there is a request with URL value in transaction data, which I think we can use.

Same issue if we open spotlight in new tab using sidecar URL - http://localhost:8969/