Skip to content

Commit

Permalink
Fix balance histogram (#2516)
Browse files Browse the repository at this point in the history
The Kamon histogram was not created properly.
  • Loading branch information
thomash-acinq committed Dec 1, 2022
1 parent cd9ca57 commit 3b2eb96
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ object Monitoring {

private val RelayProbabilityEstimate = Kamon.histogram("router.balance-estimates.remote-edge-relay", "Estimated probability (in percent) that the relay will be successful")

def remoteEdgeRelaySuccess(estimatedProbability: Double) = RelayProbabilityEstimate.withTag("success", (estimatedProbability * 100).toLong)
def remoteEdgeRelaySuccess(estimatedProbability: Double) = RelayProbabilityEstimate.withTag("status", "success").record((estimatedProbability * 100).toLong)

def remoteEdgeRelayFailure(estimatedProbability: Double) = RelayProbabilityEstimate.withTag("failure", (estimatedProbability * 100).toLong)
def remoteEdgeRelayFailure(estimatedProbability: Double) = RelayProbabilityEstimate.withTag("status", "failure").record((estimatedProbability * 100).toLong)
}

object Tags {
Expand Down

0 comments on commit 3b2eb96

Please sign in to comment.