Faro: Send context with faro logError function (#79499)

* Faro: Send context with faro logError function

* Empty commit
This commit is contained in:
Esteban Beltran
2024-01-03 10:45:23 +01:00
committed by GitHub
parent 6465d87afd
commit fd2c326964

View File

@@ -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,
});
}
}