add console transport
This commit is contained in:
+8
-1
@@ -2,6 +2,8 @@ import "@/App.css";
|
|||||||
|
|
||||||
import {
|
import {
|
||||||
ConsoleInstrumentation,
|
ConsoleInstrumentation,
|
||||||
|
ConsoleTransport,
|
||||||
|
FetchTransport,
|
||||||
getWebInstrumentations,
|
getWebInstrumentations,
|
||||||
initializeFaro,
|
initializeFaro,
|
||||||
ReactIntegration,
|
ReactIntegration,
|
||||||
@@ -14,7 +16,6 @@ function App() {
|
|||||||
|
|
||||||
if (window.location.hostname === "localhost" && isProduction) {
|
if (window.location.hostname === "localhost" && isProduction) {
|
||||||
initializeFaro({
|
initializeFaro({
|
||||||
url: "http://alloy:12347/collect",
|
|
||||||
app: {
|
app: {
|
||||||
name: "monitor-im-flur",
|
name: "monitor-im-flur",
|
||||||
version: "0.0.1",
|
version: "0.0.1",
|
||||||
@@ -26,6 +27,12 @@ function App() {
|
|||||||
new WebVitalsInstrumentation(),
|
new WebVitalsInstrumentation(),
|
||||||
new ReactIntegration(),
|
new ReactIntegration(),
|
||||||
],
|
],
|
||||||
|
transports: [
|
||||||
|
new FetchTransport({
|
||||||
|
url: "http://alloy:12347/collect",
|
||||||
|
}),
|
||||||
|
new ConsoleTransport(),
|
||||||
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user