Skip to content

Commit

Permalink
Fjerne tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehansen2 committed Apr 11, 2024
1 parent 4130e69 commit 88444b9
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions apps/dine-pleiepenger/src/faro/faro.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Faro, getWebInstrumentations, initializeFaro, LogLevel } from '@grafana/faro-web-sdk';
import { TracingInstrumentation } from '@grafana/faro-web-tracing';
import { browserEnv } from '../utils/env';
import { Faro, initializeFaro, LogLevel } from '@grafana/faro-web-sdk';
import nais from '../../nais.js';
import { browserEnv } from '../utils/env';

let faro: Faro | null = null;

export function initInstrumentation(): void {
Expand All @@ -15,12 +15,6 @@ export function getFaro(): Faro {
faro = initializeFaro({
url: browserEnv.NEXT_PUBLIC_TELEMETRY_URL,
app: nais.app,
instrumentations: [
...getWebInstrumentations({
captureConsole: false,
}),
new TracingInstrumentation(),
],
});
return faro;
}
Expand Down

0 comments on commit 88444b9

Please sign in to comment.