Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
8.0.0
Framework Version
3.4.21
Link to Sentry event
No response
SDK Setup
import { BrowserClient, Scope, browserTracingIntegration, defaultStackParser, makeFetchTransport, replayIntegration, vueIntegration } from "@sentry/vue";
import packageJson from '../package.json';
export function initSentry(app, router) {
const client = new BrowserClient({
dsn: "https://________@________.ingest.sentry.io/________",
transport: makeFetchTransport,
stackParser: defaultStackParser,
integrations: [
browserTracingIntegration({ router }),
// replayIntegration({
// maskAllText: false,
// blockAllMedia: false,
// }),
vueIntegration({ app, trackComponents: true }),
],
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", "https://api.example.com"],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Session Replay
// Capture Replay for 10% of all sessions,
// plus for 100% of sessions with an error
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
environment: import.meta.env.MODE,
release: `my-extension@${packageJson.version}`
});
const scope = new Scope();
scope.setClient(client);
client.init();
}
Steps to Reproduce
I just upgraded to v8 of the Sentry JS SDK, and it said that browser extension can't use global init. So, I changed my code to use scope init as above.
Expected Result
It should catch any errors without any setup other than initing the SDK.
Actual Result
I am disappointed that it does not track any errors by itself. Explicit calls using scope.captureException works, but this is undesirable.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
8.0.0
Framework Version
3.4.21
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
I just upgraded to v8 of the Sentry JS SDK, and it said that browser extension can't use global init. So, I changed my code to use scope init as above.
Expected Result
It should catch any errors without any setup other than initing the SDK.
Actual Result
I am disappointed that it does not track any errors by itself. Explicit calls using
scope.captureExceptionworks, but this is undesirable.