Skip to content

Commit

Permalink
record log [goreleaser]
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Jun 29, 2024
1 parent f5f1bfe commit 85fbda0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ethergo/submitter/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ func (o *otelRecorder) recordNumPending(_ context.Context, observer metric.Obser
)
observer.ObserveInt64(o.numPendingGauge, int64(numPending), opts)

Check warning on line 130 in ethergo/submitter/metrics.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/metrics.go#L124-L130

Added lines #L124 - L130 were not covered by tests
fmt.Println("recoreded", chainID, numPending)

return true
})

Check warning on line 134 in ethergo/submitter/metrics.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/metrics.go#L133-L134

Added lines #L133 - L134 were not covered by tests

Expand All @@ -145,6 +147,7 @@ func (o *otelRecorder) recordNonces(_ context.Context, observer metric.Observer)
attribute.String("wallet", o.signer.Address().Hex()),
)
observer.ObserveInt64(o.nonceGauge, int64(nonce), opts)

Check warning on line 149 in ethergo/submitter/metrics.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/metrics.go#L144-L149

Added lines #L144 - L149 were not covered by tests
fmt.Println("recoreded", chainID, nonce)
return true
})

Check warning on line 152 in ethergo/submitter/metrics.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/metrics.go#L151-L152

Added lines #L151 - L152 were not covered by tests

Expand Down Expand Up @@ -173,6 +176,8 @@ func (o *otelRecorder) recordBalance(_ context.Context, observer metric.Observer
return nil
}

Check warning on line 177 in ethergo/submitter/metrics.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/metrics.go#L174-L177

Added lines #L174 - L177 were not covered by tests

fmt.Println("recoreded", o.currentGasBalances)

o.currentGasBalances.Range(func(chainID uint32, gasPrice *big.Int) bool {
opts := metric.WithAttributes(
attribute.Int(metrics.ChainID, int(chainID)),
Expand All @@ -191,6 +196,8 @@ func (o *otelRecorder) recordOldestPendingTx(_ context.Context, observer metric.
return nil
}

Check warning on line 197 in ethergo/submitter/metrics.go

View check run for this annotation

Codecov / codecov/patch

ethergo/submitter/metrics.go#L194-L197

Added lines #L194 - L197 were not covered by tests

fmt.Println("recoreded", o.oldestPendingPerChain)

o.oldestPendingPerChain.Range(func(chainID uint32, oldestPendingTx time.Duration) bool {
opts := metric.WithAttributes(
attribute.Int(metrics.ChainID, int(chainID)),
Expand Down

0 comments on commit 85fbda0

Please sign in to comment.