mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Faro: Send context with faro logError function (#79499)
* Faro: Send context with faro logError function * Empty commit
This commit is contained in:
parent
6465d87afd
commit
fd2c326964
@ -52,6 +52,8 @@ export function logDebug(message: string, contexts?: LogContext) {
|
||||
*/
|
||||
export function logError(err: Error, contexts?: LogContext) {
|
||||
if (config.grafanaJavascriptAgent.enabled) {
|
||||
faro.api.pushError(err);
|
||||
faro.api.pushError(err, {
|
||||
context: contexts,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user