Skip to content

Commit

Permalink
prevent conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Dec 26, 2024
1 parent 982f175 commit f43ecca
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ object MetricsSystem {
maybeSystem.map(_.registry.meter(name).getCount)
}

def getGauge(name: String): Option[Gauge[_]] = {
maybeSystem.map(_.registry.gauge(name))
}

def histogramSnapshot(name: String): Option[Snapshot] = {
maybeSystem.map(_.registry.histogram(name).getSnapshot)
}

def getGauge[T](name: String): Option[Gauge[T]] = {
maybeSystem.map(_.registry.gauge(name))
}
}

0 comments on commit f43ecca

Please sign in to comment.