145 points · by coloneltcb · 2y ago · 78 comments
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...
Most of these types of home page seem to be written assuming I already know what their tool does.
The other thing to note: OTel doesn’t do everything and Sentrys error context is a big part of the value prop.
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...
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?
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
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.
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.
Only http
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/spotlightPretty 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