Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.05 KB

File metadata and controls

33 lines (27 loc) · 1.05 KB
// If you're using one of our framework SDK packages, like `@sentry/angular`,
// substitute its name for `@sentry/browser` here
import * as Sentry from "@sentry/browser";

Sentry.init({
  dsn: "___PUBLIC_DSN___",

  // This enables automatic instrumentation (highly recommended), but is not
  // necessary for purely manual usage.
  // If you only want to use manual instrumentation, remove the BrowserTracing integration and add
  // Sentry.addTracingExtensions() above your Sentry.init() call.
  integrations: [new Sentry.BrowserTracing()],

  // We recommend adjusting this value in production, or using tracesSampler
  // for finer control
  tracesSampleRate: 1.0,
});
Sentry.init({
  dsn: "___PUBLIC_DSN___",

  // This enables automatic instrumentation (highly recommended), but is not
  // necessary for purely manual usage
  integrations: [new Sentry.BrowserTracing()],

  // We recommend adjusting this value in production, or using tracesSampler
  // for finer control
  tracesSampleRate: 1.0,
});