Spotlight: Sentry for Development
spotlightjs.com
spotlightjs.com
A basic README that outlines what it does, how it does it, and basic syntax - this is really easy. Table stakes, I might say. I can checkout your repo and I have everything I need to work
We removed bits from the readme as it kept becoming duplicated and eventually wrong. I think that’s the usual reason folks like to avoid it. DRY and all.
Example: https://github.com/getsentry/spotlight/blob/main/packages/we...
The other thing to note: OTel doesn’t do everything and Sentrys error context is a big part of the value prop.
This tooling looks really cool and I'd love to play around with it, but am already pretty entrenched into OTel and funneling data through the collector and don't want to introduce too much additional overhead for devs.
[0] https://github.com/open-telemetry/opentelemetry-collector-co...
The idea is that any data source could stream to the sidecar and at the same time consume from it with a curated panel in the UI.
If you’re interested in poking around def hop in our Discord (https://discord.gg/sentry #spotlight) and let us know your thoughts.
but I am also pretty sure those are going away soon, which will mean the only way to inspect websites will be using tools like this (+ WASM binary formats + google controlled web-runtime[0] means the open web is not open anymore)
[0] https://thewebshowcase.withgoogle.com/bring-code-from-platfo...
Most of these types of home page seem to be written assuming I already know what their tool does.
Only http
NextDNS calls this "Block Newly Registered Domains (NRDs)", and applies to all domains <30 days. ZScaler has something similar for corporate users, so people connecting from work might see a big red warning page.
I guess I can see the upside in terms of helping avoid newly registered phishing sites, but I don't think I could live with the downsides.
Frankly even most new things have older domains. (I know I'm not alone here in having domains registered for projects that may or may not ever materialise..!)
Also maybe worth saying that it's not even really about NextDNS as a tool, it's that block list or ones like it. I'm not sure if it's enabled by default or not.
Often when myself or one of my friends launches a new web project!
So obscuring console.log or network initiators the way Sentry currently does.
Webpack and bundlers seem to generally have this problem too. Sourcemaps help resolve when present in dev.
Currently getting this when trying to do an npm run dev:
[plugin externalize-deps] No known conditions for "./vite-plugin" entry in "@spotlightjs/sidecar" package
The plugin "externalize-deps" was triggered by this import
vite.config.ts:7:29:
7 │ import spotlightSidecar from '@spotlightjs/sidecar/vite-plugin';
Should I be telling externalize-deps to leave it alone somehow?Also, I note the PHP SDK has gotten support for Spotlight - are there plans to do the same for the .NET SDK too?
Would you mind opening a GitHub so we can circle back there?
Regarding .NET - it’s coming to all Sentry SDKs (even mobile!). They were looking at .NET already but I’m not sure off hand what prevented its release. I’d expect our other core languages have full support in the next 60 days.
>
> Would you mind opening a GitHub so we can circle back there?
For anyone else in this boat, I got it working by adding "type": "module" to my package.json file. Getting Tailwind to play nice with this was a bit of a battle, and I didn't manage to figure out how to import the defaultTheme properly, but Spotlight works flawlessly and the Vite plugin auto-starts the sidecar.
I'm actually looking forward to it, I wanted to try on NuGet Trends but stopped on the first hurdle: https://github.com/dotnet/nuget-trends/pull/247
It seems like it isn't, but I can't tell from looking through the website. If it's totally separate, that's a quite unfortunate namespace collision
Hopefully that helps, and definitely something that is quite tough to clarify but we are still looking to improve upon.
Also added a ticket here to track this in case other folks have thoughts: https://github.com/getsentry/spotlight/issues/243
I don't have a npm/npx/etc build mechanism setup, so I'd appreciate instructions for running a separate web server to serve the UI, rather than running the UI integrated directly into my existing Python web application.
Feel free to add a GitHub issue with more details if that’s easier!
Or even something like "npx sentry-spotlight-http-server" which starts a server running containing the UI.
npx @spotlightjs/spotlight1- serve the widget from the sidecar 2- add the CDN distro
Pretty cool that this is a feature. I was assuming you'd be required to use Sentry to use Spotlight.
Is the sidecar run on the server or in the client?
Added a ticket to track improving the docs here: https://github.com/getsentry/spotlight/issues/242
Aside, 2019 and onward JavaScript has become the largest and fastest growing ecosystem of developers.
To others feedback though there’s no reason we should force you to take a bundler running in your UI. We’re gonna fix that quickly.
Makes it much easier to debug local systems during development.
Same kind of thing for errors- takes something that shows up in a console somewhere and brings it into a UI.
Could be confusion
stop vs spot