org.typelevel.otel4s.metrics.MeterProvider
See theMeterProvider companion object
A registry for creating named Meter.
Attributes
-
Companion
-
object
-
Source
-
MeterProvider.scala
-
Graph
-
-
Supertypes
-
trait Matchable
class Any
Members list
Value parameters
-
name
-
the name of the instrumentation scope, such as the instrumentation library, package, or fully qualified class name
Attributes
-
Example
-
val meterProvider: MeterProvider[IO] = ???
val meter: IO[Meter[IO]] = meterProvider
.meter("com.service.runtime")
.withVersion("1.0.0")
.withSchemaUrl("https://opentelemetry.io/schema/v1.1.0")
.get
-
Source
-
MeterProvider.scala
Value parameters
-
name
-
the name of the instrumentation scope, such as the instrumentation library, package, or fully qualified class name
Attributes
-
Example
-
val meterProvider: MeterProvider[IO] = ???
val meter: IO[Meter[IO]] = meterProvider.get("com.service.runtime")
-
Source
-
MeterProvider.scala