-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from getmentor/faro
Introduce Grafana Faro
- Loading branch information
Showing
8 changed files
with
431 additions
and
83 deletions.
There are no files selected for viewing
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,22 @@ | ||
import { getWebInstrumentations, initializeFaro } from '@grafana/faro-web-sdk' | ||
//import { TracingInstrumentation } from '@grafana/faro-web-tracing'; | ||
|
||
export const initFaro = () => { | ||
var faro = initializeFaro({ | ||
url: process.env.NEXT_PUBLIC_FARO_ENDPOINT + process.env.NEXT_PUBLIC_FARO_INSTRUMENTATION_KEY, | ||
app: { | ||
name: 'getmentor_dev', | ||
version: '1.0.0', | ||
environment: 'production', | ||
}, | ||
|
||
instrumentations: [ | ||
// Mandatory, overwriting the instrumentations array would cause the default instrumentations to be omitted | ||
...getWebInstrumentations(), | ||
|
||
// Initialization of the tracing package. | ||
// This packages is optional because it increases the bundle size noticeably. Only add it if you want tracing data. | ||
//new TracingInstrumentation(), | ||
], | ||
}) | ||
} |
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
Oops, something went wrong.