diff --git a/otel-extension/src/it/scala/io/scalac/mesmer/instrumentation/akka/actor/otel/AkkaActorTest.scala b/otel-extension/src/it/scala/io/scalac/mesmer/instrumentation/akka/actor/otel/AkkaActorTest.scala index 31326b5f7..731bdd5f7 100644 --- a/otel-extension/src/it/scala/io/scalac/mesmer/instrumentation/akka/actor/otel/AkkaActorTest.scala +++ b/otel-extension/src/it/scala/io/scalac/mesmer/instrumentation/akka/actor/otel/AkkaActorTest.scala @@ -197,7 +197,7 @@ final class AkkaActorTest it should "record mailbox size properly" in { val processingTime = 200 - val actor = system.classicSystem.actorOf(SuspendActor.props(processingTime), createUniqueId) + val actor = system.classicSystem.actorOf(SuspendActor.props(processingTime), createUniqueId) def expectMailboxSize(run: Int, size: Int): Unit = assertMetric("mesmer_akka_actor_mailbox_size") { data => @@ -480,8 +480,8 @@ object AkkaActorAgentTest { } class SuspendActor(processingTime: Long) extends classic.Actor { - def receive: Receive = { - case Message => Thread.sleep(processingTime) + def receive: Receive = { case Message => + Thread.sleep(processingTime) } } diff --git a/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/AkkaActorAgent.scala b/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/AkkaActorAgent.scala index 943bfd338..b6e1da38f 100644 --- a/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/AkkaActorAgent.scala +++ b/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/AkkaActorAgent.scala @@ -49,7 +49,6 @@ object AkkaActorAgent { ) ) - val classicStashSupportStashAdvice: TypeInstrumentation = Instrumentation(named("akka.actor.StashSupport")) .`with`( diff --git a/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/Instruments.scala b/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/Instruments.scala index 7ddaec60d..bfde245b5 100644 --- a/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/Instruments.scala +++ b/otel-extension/src/main/scala/io/scalac/mesmer/otelextension/instrumentations/akka/actor/Instruments.scala @@ -1,6 +1,9 @@ package io.scalac.mesmer.otelextension.instrumentations.akka.actor import io.opentelemetry.api.GlobalOpenTelemetry -import io.opentelemetry.api.metrics.{LongCounter, LongHistogram, LongUpDownCounter, MeterProvider} +import io.opentelemetry.api.metrics.LongCounter +import io.opentelemetry.api.metrics.LongHistogram +import io.opentelemetry.api.metrics.LongUpDownCounter +import io.opentelemetry.api.metrics.MeterProvider trait Instruments {