From 02950067ee740558827725b57c01c36314f03159 Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Wed, 20 Nov 2024 04:29:01 +0000 Subject: [PATCH] update --- src/modes/interOrderbook.ts | 2 ++ src/modes/intraOrderbook.ts | 2 ++ src/modes/routeProcessor.ts | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/modes/interOrderbook.ts b/src/modes/interOrderbook.ts index 8dcff154..a8779750 100644 --- a/src/modes/interOrderbook.ts +++ b/src/modes/interOrderbook.ts @@ -124,6 +124,7 @@ export async function dryrun({ } catch (e) { const isNodeError = containsNodeError(e as BaseError); const errMsg = errorSnapshot("", e); + spanAttributes["stage"] = 1; spanAttributes["isNodeError"] = isNodeError; spanAttributes["error"] = errMsg; spanAttributes["rawtx"] = JSON.stringify( @@ -180,6 +181,7 @@ export async function dryrun({ } catch (e) { const isNodeError = containsNodeError(e as BaseError); const errMsg = errorSnapshot("", e); + spanAttributes["stage"] = 2; spanAttributes["isNodeError"] = isNodeError; spanAttributes["error"] = errMsg; spanAttributes["rawtx"] = JSON.stringify( diff --git a/src/modes/intraOrderbook.ts b/src/modes/intraOrderbook.ts index 3750daa3..a4ebeda0 100644 --- a/src/modes/intraOrderbook.ts +++ b/src/modes/intraOrderbook.ts @@ -122,6 +122,7 @@ export async function dryrun({ // reason, code, method, transaction, error, stack, message const isNodeError = containsNodeError(e as BaseError); const errMsg = errorSnapshot("", e); + spanAttributes["stage"] = 1; spanAttributes["isNodeError"] = isNodeError; spanAttributes["error"] = errMsg; spanAttributes["rawtx"] = JSON.stringify( @@ -196,6 +197,7 @@ export async function dryrun({ } catch (e) { const isNodeError = containsNodeError(e as BaseError); const errMsg = errorSnapshot("", e); + spanAttributes["stage"] = 2; spanAttributes["isNodeError"] = isNodeError; spanAttributes["error"] = errMsg; spanAttributes["rawtx"] = JSON.stringify( diff --git a/src/modes/routeProcessor.ts b/src/modes/routeProcessor.ts index 9960cef3..4f0739ff 100644 --- a/src/modes/routeProcessor.ts +++ b/src/modes/routeProcessor.ts @@ -190,6 +190,7 @@ export async function dryrun({ // reason, code, method, transaction, error, stack, message const isNodeError = containsNodeError(e as BaseError); const errMsg = errorSnapshot("", e); + spanAttributes["stage"] = 1; spanAttributes["isNodeError"] = isNodeError; spanAttributes["error"] = errMsg; spanAttributes["rawtx"] = JSON.stringify( @@ -249,6 +250,7 @@ export async function dryrun({ } catch (e) { const isNodeError = containsNodeError(e as BaseError); const errMsg = errorSnapshot("", e); + spanAttributes["stage"] = 2; spanAttributes["isNodeError"] = isNodeError; spanAttributes["error"] = errMsg; spanAttributes["rawtx"] = JSON.stringify(