Backend
org.typelevel.otel4s.metrics.Histogram.Backend
Attributes
- Source
- Histogram.scala
- Graph
-
- Supertypes
- Known subtypes
-
class DoubleBackend[F]
Members list
Value members
Abstract methods
Attributes
- Source
- Histogram.scala
Records a value with a set of attributes.
Records a value with a set of attributes.
Value parameters
- attributes
-
the set of attributes to associate with the value
- value
-
the value to record
Attributes
- Source
- Histogram.scala
Records duration of the given effect.
Records duration of the given effect.
Value parameters
- attributes
-
the set of attributes to associate with the value
- timeUnit
-
the time unit of the duration measurement
Attributes
- Example
-
val histogram: Histogram[F] = ??? val attributeKey = AttributeKey.string("query_name") def findUser(name: String) = histogram.recordDuration(TimeUnit.MILLISECONDS, Attribute(attributeKey, "find_user")).use { _ => db.findUser(name) }
- Source
- Histogram.scala
In this article