Skip to content

Commit

Permalink
Merge pull request #454 from iRevive/meter-improve-docs
Browse files Browse the repository at this point in the history
metrics: improve Scaladoc regarding supported measurement values
  • Loading branch information
iRevive authored Jan 28, 2024
2 parents d55916a + 4d91b24 commit f3a690f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ import org.typelevel.otel4s.meta.InstrumentMeta
* the higher-kinded type of a polymorphic effect
*
* @tparam A
* the type of the values to record. OpenTelemetry specification expects `A`
* to be either [[scala.Long]] or [[scala.Double]]
* the type of the values to record. The type must have an instance of
* [[MeasurementValue]]. [[scala.Long]] and [[scala.Double]] are supported
* out of the box.
*/
trait Counter[F[_], A] extends CounterMacro[F, A]

Expand All @@ -45,8 +46,9 @@ object Counter {
* the higher-kinded type of a polymorphic effect
*
* @tparam A
* the type of the values to record. OpenTelemetry specification expects
* `A` to be either [[scala.Long]] or [[scala.Double]].
* the type of the values to record. The type must have an instance of
* [[MeasurementValue]]. [[scala.Long]] and [[scala.Double]] are supported
* out of the box.
*/
trait Builder[F[_], A] {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ import scala.concurrent.duration.TimeUnit
* the higher-kinded type of a polymorphic effect
*
* @tparam A
* the type of the values to record. OpenTelemetry specification expects `A`
* to be either [[scala.Long]] or [[scala.Double]].
* the type of the values to record. The type must have an instance of
* [[MeasurementValue]]. [[scala.Long]] and [[scala.Double]] are supported
* out of the box.
*/
trait Histogram[F[_], A] extends HistogramMacro[F, A]

Expand All @@ -51,8 +52,9 @@ object Histogram {
* the higher-kinded type of a polymorphic effect
*
* @tparam A
* the type of the values to record. OpenTelemetry specification expects
* `A` to be either [[scala.Long]] or [[scala.Double]].
* the type of the values to record. The type must have an instance of
* [[MeasurementValue]]. [[scala.Long]] and [[scala.Double]] are supported
* out of the box.
*/
trait Builder[F[_], A] {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ trait Meter[F[_]] {
* the name of the instrument
*
* @tparam A
* the type of the measurement. `Long` and `Double` are supported out of
* the box
* the type of the measurement. [[scala.Long]] and [[scala.Double]] are
* supported out of the box
*/
def counter[A: MeasurementValue](name: String): Counter.Builder[F, A]

Expand Down Expand Up @@ -95,8 +95,8 @@ trait Meter[F[_]] {
* the name of the instrument
*
* @tparam A
* the type of the measurement. `Long` and `Double` are supported out of
* the box
* the type of the measurement. [[scala.Long]] and [[scala.Double]] are
* supported out of the box
*/
def histogram[A: MeasurementValue](name: String): Histogram.Builder[F, A]

Expand Down Expand Up @@ -128,8 +128,8 @@ trait Meter[F[_]] {
* the name of the instrument
*
* @tparam A
* the type of the measurement. `Long` and `Double` are supported out of
* the box
* the type of the measurement. [[scala.Long]] and [[scala.Double]] are
* supported out of the box
*/
def upDownCounter[A: MeasurementValue](
name: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ import org.typelevel.otel4s.meta.InstrumentMeta
* the higher-kinded type of a polymorphic effect
*
* @tparam A
* the type of the values to record. OpenTelemetry specification expects `A`
* to be either [[scala.Long]] or [[scala.Double]]
* the type of the values to record. The type must have an instance of
* [[MeasurementValue]]. [[scala.Long]] and [[scala.Double]] are supported
* out of the box.
*/
trait UpDownCounter[F[_], A] extends UpDownCounterMacro[F, A]

Expand All @@ -45,8 +46,9 @@ object UpDownCounter {
* the higher-kinded type of a polymorphic effect
*
* @tparam A
* the type of the values to record. OpenTelemetry specification expects
* `A` to be either [[scala.Long]] or [[scala.Double]].
* the type of the values to record. The type must have an instance of
* [[MeasurementValue]]. [[scala.Long]] and [[scala.Double]] are supported
* out of the box.
*/
trait Builder[F[_], A] {

Expand Down

0 comments on commit f3a690f

Please sign in to comment.