We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: https://docs.sentry.io/platforms/javascript/
For reference this is how I currently instrument it:
import { Capacitor } from '@capacitor/core' import * as Sentry from '@sentry/vue' import { appVersion } from '~/shared/version' export default defineNuxtPlugin({ name: 'sentry', setup(nuxtApp) { if (import.meta.env.TEST) { return } const { public: { errorReportingEnabled, sentry } } = useRuntimeConfig() if (!sentry.client.dsn) { console.error('Sentry DSN not found in environment') return } Sentry.init({ enabled: errorReportingEnabled, app: nuxtApp.vueApp, release: appVersion, dsn: sentry.client.dsn, // debug: true, environment: sentry.environment, ignoreErrors: [/Network Error/i, /Fetch Error/i] }) Sentry.setTag('app-platform', Capacitor.getPlatform()) Sentry.setTag('app-native', Capacitor.isNativePlatform()) return { provide: { sentry: Sentry } } } })
and after the user has logged in or we detect they are already logged in on page load:
this.sentry.setUser({ id, email, username, roles })
Thanks!
The text was updated successfully, but these errors were encountered:
This button brought me here, on reflection this should be in the discussions?
Sorry, something went wrong.
No, that's fine! 👍
We've discussed that in #209 though
No branches or pull requests
Docs: https://docs.sentry.io/platforms/javascript/
For reference this is how I currently instrument it:
and after the user has logged in or we detect they are already logged in on page load:
Thanks!
The text was updated successfully, but these errors were encountered: