Skip to content

Commit 98636d5

Browse files
chore(txm): pr review
1 parent bf314e4 commit 98636d5

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

packages/txm/lib/BlockMonitor.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ export class BlockMonitor {
8686
this.unwatch = undefined
8787
}
8888

89+
// Delay block monitor restart by 500ms
90+
// This prevents an infinite loop of rapid restarts
91+
// when the blockchain node is unresponsive or down
8992
setTimeout(() => {
9093
context.with(ROOT_CONTEXT, () => {
9194
this.start()

packages/txm/lib/telemetry/traces.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
import { unknownToError } from "@happy.tech/common"
22
import { context, trace } from "@opentelemetry/api"
33

4-
export const blockMonitorTracer = trace.getTracer("txm.block-monitor")
5-
export const transactionCollectorTracer = trace.getTracer("txm.transaction-collector")
6-
export const transactionSubmitterTracer = trace.getTracer("txm.transaction-submitter")
7-
84
export function TraceMethod(spanName?: string) {
95
return (_target: unknown, propertyKey: string, descriptor: PropertyDescriptor) => {
106
const originalMethod = descriptor.value

0 commit comments

Comments
 (0)