Issue
I’m building a Chrome Extension and want to capture errors and performance data with Sentry. What’s the best way to integrate Sentry into my extension?
Applies To
All customers
Resolution
You can use Sentry in a Chrome Extension, but because extensions run in multiple isolated contexts (background scripts, content scripts, popup UI, etc.), we recommend initializing the SDK manually in each context rather than relying on our default browser integration. This avoids conflicts between the extension and the host web pages.
For detailed guidance on setting up Sentry in shared or nonstandard JavaScript environments - including Chrome Extensions - please see our best practices guide here.
