Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
skipper1982 authored and lgajowy committed Feb 15, 2023
1 parent 176899f commit 898c525
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ object AkkaActorAgent {
)
)


val classicStashSupportStashAdvice: TypeInstrumentation =
Instrumentation(named("akka.actor.StashSupport"))
.`with`(
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {

Expand Down

0 comments on commit 898c525

Please sign in to comment.