Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
services
/
echo
/
File Content:
EchoSrv.ts
import { faro } from '@grafana/faro-web-sdk'; import { getEchoSrv, EchoEventType } from '@grafana/runtime'; import { PerformanceEvent } from './backends/PerformanceBackend'; export const reportPerformance = (metric: string, value: number) => { getEchoSrv().addEvent<PerformanceEvent>({ type: EchoEventType.Performance, payload: { name: metric, value: value, }, }); }; // Farp will process the error, then push it to EchoSrv as GrafanaJavascriptAgent event export const reportError = (error: Error) => faro?.api?.pushError(error);
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
backends
---
0755
Echo.ts
2323 bytes
0644
EchoSrv.ts
561 bytes
0644
utils.ts
490 bytes
0644
N4ST4R_ID | Naxtarrr