This repository was archived by the owner on Nov 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import { enableProdMode } from '@angular/core' ;
22import { platformBrowserDynamic } from '@angular/platform-browser-dynamic' ;
3- import * as Sentry from " @sentry/angular" ;
4- import { BrowserTracing } from " @sentry/tracing" ;
3+ import * as Sentry from ' @sentry/angular' ;
4+ import { BrowserTracing } from ' @sentry/tracing' ;
55
66import { AppModule } from './app/app.module' ;
77import { environment } from './environments/environment' ;
88
99Sentry . init ( {
10- dsn : process . env . NG_APP_SENTRY_DSN ,
10+ dsn : environment . sentryDsn ,
1111 integrations : [
1212 new BrowserTracing ( {
13- tracingOrigins : [ " localhost" , "https://yourserver.io/api" ] ,
13+ tracingOrigins : [ ' localhost' , environment . baseUrl ] ,
1414 routingInstrumentation : Sentry . routingInstrumentation ,
1515 } ) ,
1616 ] ,
1717
1818 // Set tracesSampleRate to 1.0 to capture 100%
1919 // of transactions for performance monitoring.
2020 // We recommend adjusting this value in production
21- tracesSampleRate : process . env . NG_APP_SENTRY_TRACES_SAMPLE_RATE ,
21+ tracesSampleRate : environment . sentryTracesSampleRate ,
2222} ) ;
2323
2424if ( environment . production ) {
You can’t perform that action at this time.
0 commit comments