diff --git a/src/App.tsx b/src/App.tsx
index 5bbe388..f678104 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -1,37 +1,37 @@
import "@/App.css";
import {
- getWebInstrumentations,
- initializeFaro,
- ReactIntegration,
- ConsoleInstrumentation,
- WebVitalsInstrumentation,
+ ConsoleInstrumentation,
+ getWebInstrumentations,
+ initializeFaro,
+ ReactIntegration,
+ WebVitalsInstrumentation,
} from "@grafana/faro-react";
import Dashboard from "@/components/Dashboard/Dashboard";
function App() {
- const isProduction = import.meta.env.PROD;
+ const isProduction = import.meta.env.PROD;
- if (window.location.hostname === "localhost" && isProduction) {
- initializeFaro({
- url: "http://alloy:8027/collect",
- app: {
- name: "monitor-im-flur",
- version: "0.0.1",
- environment: "production",
- },
- instrumentations: [
- ...getWebInstrumentations({
- captureConsole: true,
- }),
- new ConsoleInstrumentation(),
- new WebVitalsInstrumentation(),
- new ReactIntegration(),
- ],
- });
- }
+ if (window.location.hostname === "localhost" && isProduction) {
+ initializeFaro({
+ url: "http://alloy:8027/collect",
+ app: {
+ name: "monitor-im-flur",
+ version: "0.0.1",
+ environment: "production",
+ },
+ instrumentations: [
+ ...getWebInstrumentations({
+ captureConsole: true,
+ }),
+ new ConsoleInstrumentation(),
+ new WebVitalsInstrumentation(),
+ new ReactIntegration(),
+ ],
+ });
+ }
- return ;
+ return ;
}
export default App;