forked from uc-cdis/commons-frontend-app
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bf06092
commit 501b448
Showing
10 changed files
with
1,299 additions
and
1,784 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
import { | ||
getWebInstrumentations, | ||
initializeFaro, | ||
ReactIntegration, | ||
} from '@grafana/faro-react'; | ||
import { TracingInstrumentation } from '@grafana/faro-web-tracing'; | ||
|
||
// Get the current, runtime version of the App to surface to Faro | ||
// import packageJson from "../../package.json"; | ||
|
||
export const initGrafanaFaro = () => { | ||
return initializeFaro({ | ||
url: 'https://faro.planx-pla.net/collect', | ||
|
||
app: { | ||
name: 'bih-data-commons', | ||
// version: packageJson.version, | ||
version: '10.0.0', | ||
environment: 'local', | ||
}, | ||
|
||
instrumentations: [ | ||
// load the mandatory web instrumentation | ||
...getWebInstrumentations({ | ||
captureConsole: true, | ||
}), | ||
|
||
// add tracing instrumentation which should include the React Profiler | ||
new TracingInstrumentation(), | ||
|
||
new ReactIntegration({ | ||
// In the future, we may choose to integrate with React router instrumentation to | ||
// get deeper metrics on matched routes, navigation types, etc. | ||
// Next/router doesn't seem to be supported which won't give us route metrics. | ||
// | ||
// Reference: https://github.com/grafana/faro-web-sdk/tree/main/packages/react | ||
// | ||
// router: {} | ||
}), | ||
], | ||
}); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.