diff --git a/buildscripts/semantic-convention/templates/registry/otel4s/metrics/SemanticMetrics.scala.j2 b/buildscripts/semantic-convention/templates/registry/otel4s/metrics/SemanticMetrics.scala.j2 index 0fac3d7bb..ee00ced86 100644 --- a/buildscripts/semantic-convention/templates/registry/otel4s/metrics/SemanticMetrics.scala.j2 +++ b/buildscripts/semantic-convention/templates/registry/otel4s/metrics/SemanticMetrics.scala.j2 @@ -72,7 +72,12 @@ package org.typelevel.otel4s package semconv +{%- if params.experimental == true %} +package experimental package metrics +{%- else %} +package metrics +{%- endif %} import org.typelevel.otel4s.metrics._ diff --git a/buildscripts/semantic-convention/templates/registry/otel4s/metrics/weaver.yaml b/buildscripts/semantic-convention/templates/registry/otel4s/metrics/weaver.yaml index e50ee0a7b..7e6cbfbbf 100644 --- a/buildscripts/semantic-convention/templates/registry/otel4s/metrics/weaver.yaml +++ b/buildscripts/semantic-convention/templates/registry/otel4s/metrics/weaver.yaml @@ -3,6 +3,7 @@ params: excluded_attributes: ["messaging.client_id"] excluded_stability: ["experimental", "deprecated"] # stable - ["experimental", "deprecated"]; experimental - [] object_prefix: "" # stable - "", experimental - "Experimental" + experimental: false # stable - false, experimental - true comment_formats: scaladoc: format: html diff --git a/project/SemanticConventionsGenerator.scala b/project/SemanticConventionsGenerator.scala index aa262be83..43b8ada8b 100644 --- a/project/SemanticConventionsGenerator.scala +++ b/project/SemanticConventionsGenerator.scala @@ -64,7 +64,8 @@ object SemanticConventionsGenerator { if (experimental) List( "--param=excluded_stability=[]", - "--param=object_prefix=Experimental" + "--param=object_prefix=Experimental", + "--param=experimental=true" ) else Nil diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ContainerExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ContainerExperimentalMetrics.scala index c524dc80b..33aa3c5df 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ContainerExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ContainerExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DbExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DbExperimentalMetrics.scala index e4267a8db..85641c204 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DbExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DbExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -28,8 +29,7 @@ object DbExperimentalMetrics { object ClientConnectionCount { val Name = "db.client.connection.count" - val Description = - "The number of connections that are currently in state described by the `state` attribute" + val Description = "The number of connections that are currently in state described by the `state` attribute" val Unit = "{connection}" object AttributeSpecs { @@ -110,9 +110,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -250,8 +248,7 @@ object DbExperimentalMetrics { object ClientConnectionPendingRequests { val Name = "db.client.connection.pending_requests" - val Description = - "The number of pending requests for an open connection, cumulative for the entire pool" + val Description = "The number of pending requests for an open connection, cumulative for the entire pool" val Unit = "{request}" object AttributeSpecs { @@ -292,8 +289,7 @@ object DbExperimentalMetrics { object ClientConnectionTimeouts { val Name = "db.client.connection.timeouts" - val Description = - "The number of connection timeouts that have occurred trying to obtain a connection from the pool" + val Description = "The number of connection timeouts that have occurred trying to obtain a connection from the pool" val Unit = "{timeout}" object AttributeSpecs { @@ -334,8 +330,7 @@ object DbExperimentalMetrics { object ClientConnectionUseTime { val Name = "db.client.connection.use_time" - val Description = - "The time between borrowing a connection and returning it to the pool" + val Description = "The time between borrowing a connection and returning it to the pool" val Unit = "s" object AttributeSpecs { @@ -362,9 +357,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -379,8 +372,7 @@ object DbExperimentalMetrics { object ClientConnectionWaitTime { val Name = "db.client.connection.wait_time" - val Description = - "The time it took to obtain an open connection from the pool" + val Description = "The time it took to obtain an open connection from the pool" val Unit = "s" object AttributeSpecs { @@ -407,9 +399,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -421,10 +411,7 @@ object DbExperimentalMetrics { /** Deprecated, use `db.client.connection.create_time` instead. Note: the unit also changed from `ms` to `s`. */ - @deprecated( - "Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`.", - "" - ) + @deprecated("Replaced by `db.client.connection.create_time`. Note: the unit also changed from `ms` to `s`.", "") object ClientConnectionsCreateTime { val Name = "db.client.connections.create_time" @@ -453,9 +440,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -588,8 +573,7 @@ object DbExperimentalMetrics { object ClientConnectionsPendingRequests { val Name = "db.client.connections.pending_requests" - val Description = - "Deprecated, use `db.client.connection.pending_requests` instead." + val Description = "Deprecated, use `db.client.connection.pending_requests` instead." val Unit = "{request}" object AttributeSpecs { @@ -716,10 +700,7 @@ object DbExperimentalMetrics { /** Deprecated, use `db.client.connection.use_time` instead. Note: the unit also changed from `ms` to `s`. */ - @deprecated( - "Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`.", - "" - ) + @deprecated("Replaced by `db.client.connection.use_time`. Note: the unit also changed from `ms` to `s`.", "") object ClientConnectionsUseTime { val Name = "db.client.connections.use_time" @@ -748,9 +729,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -762,10 +741,7 @@ object DbExperimentalMetrics { /** Deprecated, use `db.client.connection.wait_time` instead. Note: the unit also changed from `ms` to `s`. */ - @deprecated( - "Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`.", - "" - ) + @deprecated("Replaced by `db.client.connection.wait_time`. Note: the unit also changed from `ms` to `s`.", "") object ClientConnectionsWaitTime { val Name = "db.client.connections.wait_time" @@ -794,9 +770,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -912,9 +886,7 @@ object DbExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If and only if the operation failed." - ), + Requirement.conditionallyRequired("If and only if the operation failed."), Stability.stable ) @@ -944,9 +916,7 @@ object DbExperimentalMetrics { List( 65123, ), - Requirement.recommended( - "If and only if `network.peer.address` is set." - ), + Requirement.recommended("If and only if `network.peer.address` is set."), Stability.stable ) @@ -1000,9 +970,7 @@ object DbExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DnsExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DnsExperimentalMetrics.scala index 1d2a3c050..bcbcd347d 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DnsExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/DnsExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -66,9 +67,7 @@ object DnsExperimentalMetrics { "no_recovery", "java.net.UnknownHostException", ), - Requirement.conditionallyRequired( - "if and only if an error has occurred." - ), + Requirement.conditionallyRequired("if and only if an error has occurred."), Stability.stable ) @@ -79,9 +78,7 @@ object DnsExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/FaasExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/FaasExperimentalMetrics.scala index 07057be57..9517fe67a 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/FaasExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/FaasExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -86,9 +87,7 @@ object FaasExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -139,8 +138,7 @@ object FaasExperimentalMetrics { object InitDuration { val Name = "faas.init_duration" - val Description = - "Measures the duration of the function's initialization, such as a cold start" + val Description = "Measures the duration of the function's initialization, such as a cold start" val Unit = "s" object AttributeSpecs { @@ -162,9 +160,7 @@ object FaasExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -237,9 +233,7 @@ object FaasExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -276,9 +270,7 @@ object FaasExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -315,9 +307,7 @@ object FaasExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/GenAiExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/GenAiExperimentalMetrics.scala index 03d9c50e2..75284d0b6 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/GenAiExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/GenAiExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -48,9 +49,7 @@ object GenAiExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "if the operation ended in an error" - ), + Requirement.conditionallyRequired("if the operation ended in an error"), Stability.stable ) @@ -168,9 +167,7 @@ object GenAiExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -317,9 +314,7 @@ object GenAiExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -334,8 +329,7 @@ object GenAiExperimentalMetrics { object ServerRequestDuration { val Name = "gen_ai.server.request.duration" - val Description = - "Generative AI server request duration such as time-to-last byte or last output token" + val Description = "Generative AI server request duration such as time-to-last byte or last output token" val Unit = "s" object AttributeSpecs { @@ -355,9 +349,7 @@ object GenAiExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "if the operation ended in an error" - ), + Requirement.conditionallyRequired("if the operation ended in an error"), Stability.stable ) @@ -475,9 +467,7 @@ object GenAiExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -492,8 +482,7 @@ object GenAiExperimentalMetrics { object ServerTimePerOutputToken { val Name = "gen_ai.server.time_per_output_token" - val Description = - "Time per output token generated after the first token for successful responses" + val Description = "Time per output token generated after the first token for successful responses" val Unit = "s" object AttributeSpecs { @@ -611,9 +600,7 @@ object GenAiExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -746,9 +733,7 @@ object GenAiExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/HttpExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/HttpExperimentalMetrics.scala index 7148f274d..18eaa79bb 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/HttpExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/HttpExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -154,8 +155,7 @@ object HttpExperimentalMetrics { object ClientConnectionDuration { val Name = "http.client.connection.duration" - val Description = - "The duration of the successfully established outbound HTTP connections." + val Description = "The duration of the successfully established outbound HTTP connections." val Unit = "s" object AttributeSpecs { @@ -250,9 +250,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -267,8 +265,7 @@ object HttpExperimentalMetrics { object ClientOpenConnections { val Name = "http.client.open_connections" - val Description = - "Number of outbound HTTP connections that are currently active or idle on the client." + val Description = "Number of outbound HTTP connections that are currently active or idle on the client." val Unit = "{connection}" object AttributeSpecs { @@ -424,9 +421,7 @@ object HttpExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -467,9 +462,7 @@ object HttpExperimentalMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -484,9 +477,7 @@ object HttpExperimentalMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -591,9 +582,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -636,9 +625,7 @@ object HttpExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -679,9 +666,7 @@ object HttpExperimentalMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -696,9 +681,7 @@ object HttpExperimentalMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -784,9 +767,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -834,9 +815,7 @@ object HttpExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -877,9 +856,7 @@ object HttpExperimentalMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -894,9 +871,7 @@ object HttpExperimentalMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -1001,9 +976,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -1160,9 +1133,7 @@ object HttpExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -1203,9 +1174,7 @@ object HttpExperimentalMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -1237,9 +1206,7 @@ object HttpExperimentalMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -1333,9 +1300,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -1378,9 +1343,7 @@ object HttpExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -1421,9 +1384,7 @@ object HttpExperimentalMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -1455,9 +1416,7 @@ object HttpExperimentalMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -1551,9 +1510,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -1601,9 +1558,7 @@ object HttpExperimentalMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -1644,9 +1599,7 @@ object HttpExperimentalMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -1678,9 +1631,7 @@ object HttpExperimentalMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -1774,9 +1725,7 @@ object HttpExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/JvmExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/JvmExperimentalMetrics.scala index 594ce43fd..1be431c7e 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/JvmExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/JvmExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -244,8 +245,7 @@ object JvmExperimentalMetrics { object CpuCount { val Name = "jvm.cpu.count" - val Description = - "Number of processors available to the Java virtual machine." + val Description = "Number of processors available to the Java virtual machine." val Unit = "{cpu}" def create[F[_]: Meter]: F[UpDownCounter[F, Long]] = @@ -266,8 +266,7 @@ object JvmExperimentalMetrics { object CpuRecentUtilization { val Name = "jvm.cpu.recent_utilization" - val Description = - "Recent CPU utilization for the process as reported by the JVM." + val Description = "Recent CPU utilization for the process as reported by the JVM." val Unit = "1" def create[F[_]: Meter]: F[Gauge[F, Long]] = @@ -345,9 +344,7 @@ object JvmExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -586,8 +583,7 @@ object JvmExperimentalMetrics { object MemoryUsedAfterLastGc { val Name = "jvm.memory.used_after_last_gc" - val Description = - "Measure of memory used, as measured after the most recent garbage collection event on this pool." + val Description = "Measure of memory used, as measured after the most recent garbage collection event on this pool." val Unit = "By" object AttributeSpecs { @@ -648,8 +644,7 @@ object JvmExperimentalMetrics { object SystemCpuLoad1m { val Name = "jvm.system.cpu.load_1m" - val Description = - "Average CPU load of the whole system for the last minute as reported by the JVM." + val Description = "Average CPU load of the whole system for the last minute as reported by the JVM." val Unit = "{run_queue_item}" def create[F[_]: Meter]: F[Gauge[F, Long]] = @@ -670,8 +665,7 @@ object JvmExperimentalMetrics { object SystemCpuUtilization { val Name = "jvm.system.cpu.utilization" - val Description = - "Recent CPU utilization for the whole system as reported by the JVM." + val Description = "Recent CPU utilization for the whole system as reported by the JVM." val Unit = "1" def create[F[_]: Meter]: F[Gauge[F, Long]] = diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/MessagingExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/MessagingExperimentalMetrics.scala index d6de45983..20868302b 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/MessagingExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/MessagingExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -33,8 +34,7 @@ object MessagingExperimentalMetrics { object ClientConsumedMessages { val Name = "messaging.client.consumed.messages" - val Description = - "Number of messages that were delivered to the application." + val Description = "Number of messages that were delivered to the application." val Unit = "{message}" object AttributeSpecs { @@ -60,9 +60,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -241,8 +239,7 @@ object MessagingExperimentalMetrics { object ClientOperationDuration { val Name = "messaging.client.operation.duration" - val Description = - "Duration of messaging operation initiated by a producer or consumer client." + val Description = "Duration of messaging operation initiated by a producer or consumer client." val Unit = "s" object AttributeSpecs { @@ -268,9 +265,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -445,9 +440,7 @@ object MessagingExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -464,8 +457,7 @@ object MessagingExperimentalMetrics { object ClientPublishedMessages { val Name = "messaging.client.published.messages" - val Description = - "Number of messages producer attempted to publish to the broker." + val Description = "Number of messages producer attempted to publish to the broker." val Unit = "{message}" object AttributeSpecs { @@ -491,9 +483,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -663,9 +653,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -826,9 +814,7 @@ object MessagingExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -844,8 +830,7 @@ object MessagingExperimentalMetrics { object ProcessMessages { val Name = "messaging.process.messages" - val Description = - "Deprecated. Use `messaging.client.consumed.messages` instead." + val Description = "Deprecated. Use `messaging.client.consumed.messages` instead." val Unit = "{message}" object AttributeSpecs { @@ -871,9 +856,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -950,8 +933,7 @@ object MessagingExperimentalMetrics { object PublishDuration { val Name = "messaging.publish.duration" - val Description = - "Deprecated. Use `messaging.client.operation.duration` instead." + val Description = "Deprecated. Use `messaging.client.operation.duration` instead." val Unit = "s" object AttributeSpecs { @@ -977,9 +959,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -1041,9 +1021,7 @@ object MessagingExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -1059,8 +1037,7 @@ object MessagingExperimentalMetrics { object PublishMessages { val Name = "messaging.publish.messages" - val Description = - "Deprecated. Use `messaging.client.produced.messages` instead." + val Description = "Deprecated. Use `messaging.client.produced.messages` instead." val Unit = "{message}" object AttributeSpecs { @@ -1086,9 +1063,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -1165,8 +1140,7 @@ object MessagingExperimentalMetrics { object ReceiveDuration { val Name = "messaging.receive.duration" - val Description = - "Deprecated. Use `messaging.client.operation.duration` instead." + val Description = "Deprecated. Use `messaging.client.operation.duration` instead." val Unit = "s" object AttributeSpecs { @@ -1192,9 +1166,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) @@ -1256,9 +1228,7 @@ object MessagingExperimentalMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -1274,8 +1244,7 @@ object MessagingExperimentalMetrics { object ReceiveMessages { val Name = "messaging.receive.messages" - val Description = - "Deprecated. Use `messaging.client.consumed.messages` instead." + val Description = "Deprecated. Use `messaging.client.consumed.messages` instead." val Unit = "{message}" object AttributeSpecs { @@ -1301,9 +1270,7 @@ object MessagingExperimentalMetrics { "KAFKA_STORAGE_ERROR", "channel-error", ), - Requirement.conditionallyRequired( - "If and only if the messaging operation has failed." - ), + Requirement.conditionallyRequired("If and only if the messaging operation has failed."), Stability.stable ) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/NodejsExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/NodejsExperimentalMetrics.scala index f70ac424e..58892471c 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/NodejsExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/NodejsExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ProcessExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ProcessExperimentalMetrics.scala index 9e5ceff15..845905554 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ProcessExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/ProcessExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/RpcExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/RpcExperimentalMetrics.scala index 6092b3947..e98273d68 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/RpcExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/RpcExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -34,9 +35,7 @@ object RpcExperimentalMetrics { val Description = "Measures the duration of outbound RPC." val Unit = "ms" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -53,13 +52,10 @@ object RpcExperimentalMetrics { object ClientRequestSize { val Name = "rpc.client.request.size" - val Description = - "Measures the size of RPC request messages (uncompressed)." + val Description = "Measures the size of RPC request messages (uncompressed)." val Unit = "By" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -80,9 +76,7 @@ object RpcExperimentalMetrics { val Description = "Measures the number of messages received per RPC." val Unit = "{count}" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -99,13 +93,10 @@ object RpcExperimentalMetrics { object ClientResponseSize { val Name = "rpc.client.response.size" - val Description = - "Measures the size of RPC response messages (uncompressed)." + val Description = "Measures the size of RPC response messages (uncompressed)." val Unit = "By" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -126,9 +117,7 @@ object RpcExperimentalMetrics { val Description = "Measures the number of messages sent per RPC." val Unit = "{count}" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -149,9 +138,7 @@ object RpcExperimentalMetrics { val Description = "Measures the duration of inbound RPC." val Unit = "ms" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -168,13 +155,10 @@ object RpcExperimentalMetrics { object ServerRequestSize { val Name = "rpc.server.request.size" - val Description = - "Measures the size of RPC request messages (uncompressed)." + val Description = "Measures the size of RPC request messages (uncompressed)." val Unit = "By" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -195,9 +179,7 @@ object RpcExperimentalMetrics { val Description = "Measures the number of messages received per RPC." val Unit = "{count}" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -214,13 +196,10 @@ object RpcExperimentalMetrics { object ServerResponseSize { val Name = "rpc.server.response.size" - val Description = - "Measures the size of RPC response messages (uncompressed)." + val Description = "Measures the size of RPC response messages (uncompressed)." val Unit = "By" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -241,9 +220,7 @@ object RpcExperimentalMetrics { val Description = "Measures the number of messages sent per RPC." val Unit = "{count}" - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/SystemExperimentalMetrics.scala b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/SystemExperimentalMetrics.scala index e55c91d6d..94ca889ee 100644 --- a/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/SystemExperimentalMetrics.scala +++ b/semconv/metrics/experimental/src/main/scala/org/typelevel/otel4s/semconv/experimental/metrics/SystemExperimentalMetrics.scala @@ -16,6 +16,7 @@ package org.typelevel.otel4s package semconv +package experimental package metrics import org.typelevel.otel4s.metrics._ @@ -83,8 +84,7 @@ object SystemExperimentalMetrics { object CpuPhysicalCount { val Name = "system.cpu.physical.count" - val Description = - "Reports the number of actual physical processor cores on the hardware" + val Description = "Reports the number of actual physical processor cores on the hardware" val Unit = "{cpu}" def create[F[_]: Meter]: F[UpDownCounter[F, Long]] = @@ -662,8 +662,7 @@ object SystemExperimentalMetrics { object LinuxMemorySlabUsage { val Name = "system.linux.memory.slab.usage" - val Description = - "Reports the memory used by the Linux kernel for managing caches of frequently used objects." + val Description = "Reports the memory used by the Linux kernel for managing caches of frequently used objects." val Unit = "By" object AttributeSpecs { @@ -893,8 +892,7 @@ object SystemExperimentalMetrics { object NetworkDropped { val Name = "system.network.dropped" - val Description = - "Count of packets that are dropped or discarded even though there was no error" + val Description = "Count of packets that are dropped or discarded even though there was no error" val Unit = "{packet}" object AttributeSpecs { @@ -1295,8 +1293,7 @@ object SystemExperimentalMetrics { object ProcessCreated { val Name = "system.process.created" - val Description = - "Total number of processes created over uptime of the host" + val Description = "Total number of processes created over uptime of the host" val Unit = "{process}" def create[F[_]: Meter]: F[Counter[F, Long]] = diff --git a/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/HttpMetrics.scala b/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/HttpMetrics.scala index b8070993c..cfce39d5f 100644 --- a/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/HttpMetrics.scala +++ b/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/HttpMetrics.scala @@ -56,9 +56,7 @@ object HttpMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -99,9 +97,7 @@ object HttpMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -116,9 +112,7 @@ object HttpMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -204,9 +198,7 @@ object HttpMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -249,9 +241,7 @@ object HttpMetrics { "server_certificate_invalid", "500", ), - Requirement.conditionallyRequired( - "If request has ended with an error." - ), + Requirement.conditionallyRequired("If request has ended with an error."), Stability.stable ) @@ -292,9 +282,7 @@ object HttpMetrics { List( 200, ), - Requirement.conditionallyRequired( - "If and only if one was received/sent." - ), + Requirement.conditionallyRequired("If and only if one was received/sent."), Stability.stable ) @@ -326,9 +314,7 @@ object HttpMetrics { "http", "spdy", ), - Requirement.conditionallyRequired( - "If not `http` and `network.protocol.version` is set." - ), + Requirement.conditionallyRequired("If not `http` and `network.protocol.version` is set."), Stability.stable ) @@ -422,9 +408,7 @@ object HttpMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) diff --git a/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/JvmMetrics.scala b/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/JvmMetrics.scala index 157be625c..225f49eda 100644 --- a/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/JvmMetrics.scala +++ b/semconv/metrics/stable/src/main/scala/org/typelevel/otel4s/semconv/metrics/JvmMetrics.scala @@ -79,8 +79,7 @@ object JvmMetrics { object CpuCount { val Name = "jvm.cpu.count" - val Description = - "Number of processors available to the Java virtual machine." + val Description = "Number of processors available to the Java virtual machine." val Unit = "{cpu}" def create[F[_]: Meter]: F[UpDownCounter[F, Long]] = @@ -101,8 +100,7 @@ object JvmMetrics { object CpuRecentUtilization { val Name = "jvm.cpu.recent_utilization" - val Description = - "Recent CPU utilization for the process as reported by the JVM." + val Description = "Recent CPU utilization for the process as reported by the JVM." val Unit = "1" def create[F[_]: Meter]: F[Gauge[F, Long]] = @@ -180,9 +178,7 @@ object JvmMetrics { ) } - def create[F[_]: Meter]( - boundaries: BucketBoundaries - ): F[Histogram[F, Double]] = + def create[F[_]: Meter](boundaries: BucketBoundaries): F[Histogram[F, Double]] = Meter[F] .histogram[Double](Name) .withDescription(Description) @@ -365,8 +361,7 @@ object JvmMetrics { object MemoryUsedAfterLastGc { val Name = "jvm.memory.used_after_last_gc" - val Description = - "Measure of memory used, as measured after the most recent garbage collection event on this pool." + val Description = "Measure of memory used, as measured after the most recent garbage collection event on this pool." val Unit = "By" object AttributeSpecs {