fix code style
This commit is contained in:
+25
-25
@@ -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 <Dashboard />;
|
||||
return <Dashboard />;
|
||||
}
|
||||
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user