From b3e259fdb5ddae2eafefe9f4177a9099b8771b35 Mon Sep 17 00:00:00 2001 From: Felix Brucker Date: Sun, 21 Jan 2024 18:50:30 +0700 Subject: [PATCH] Use new lb api endpoint --- src/app/api/abstract-api.ts | 2 +- src/main.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/app/api/abstract-api.ts b/src/app/api/abstract-api.ts index 76fafd0..f5bfb90 100644 --- a/src/app/api/abstract-api.ts +++ b/src/app/api/abstract-api.ts @@ -29,7 +29,7 @@ export abstract class AbstractApi< protected readonly client: AxiosInstance public constructor(poolIdentifier: string) { - this.client = axios.create({ baseURL: `https://api2.foxypool.io/api/v3/${poolIdentifier}` }) + this.client = axios.create({ baseURL: `https://api.foxypool.io/api/v3/${poolIdentifier}` }) } public async getPoolConfig(): Promise { diff --git a/src/main.ts b/src/main.ts index 11c12d0..edf2e74 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,7 +6,7 @@ import './extensions/extensions' import { AppModule } from './app/app.module' import { environment } from './environments/environment' import { gitCommitHash } from './environments/config' -import {Event, EventHint} from '@sentry/angular-ivy' +import {BrowserTracing, Event, EventHint, Replay} from '@sentry/angular-ivy' const ignoreErrors = [ 'Request failed with status code', @@ -32,12 +32,14 @@ const ignoreErrors = [ Sentry.init({ dsn: 'https://37abd9100b744f01a9b38464c91c28e3@o236153.ingest.sentry.io/4505596429860864', release: gitCommitHash || null, + tracePropagationTargets: ['localhost', 'https://api.foxypool.io/api'], integrations: [ - new Sentry.BrowserTracing({ - tracePropagationTargets: ['localhost', 'https://api2.foxypool.io/api'], + new BrowserTracing({ routingInstrumentation: Sentry.routingInstrumentation, }), - new Sentry.Replay(), + new Replay({ + networkDetailAllowUrls: ['https://api.foxypool.io', 'https://oracle.foxypool.io'], + }), ], // Performance Monitoring tracesSampleRate: 0.05,