Skip to content

Commit

Permalink
fix akka 2.5 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed Nov 9, 2023
1 parent 965a9c7 commit 8641f8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ lazy val `kamon-pekko` = (project in file("instrumentation/kamon-pekko"))
.disablePlugins(AssemblyPlugin)
.settings(instrumentationSettings: _*)
.settings(Seq(
crossScalaVersions := Seq(`scala_2.12_version`, `scala_2.13_version`),
crossScalaVersions := Seq(`scala_2.12_version`, `scala_2.13_version`, scala_3_version),
libraryDependencies ++= Seq(
"org.apache.pekko" %% "pekko-actor" % pekkoHttpVersion % "provided"
)
Expand All @@ -515,7 +515,7 @@ lazy val `kamon-pekko-http` = (project in file("instrumentation/kamon-pekko-http
.disablePlugins(AssemblyPlugin)
.settings(instrumentationSettings)
.settings(Seq(
crossScalaVersions := Seq(`scala_2.12_version`, `scala_2.13_version`),
crossScalaVersions := Seq(`scala_2.12_version`, `scala_2.13_version`, scala_3_version),
libraryDependencies ++= Seq(
kanelaAgent % "provided",
"org.apache.pekko" %% "pekko-http" % pekkoHttpVersion % "provided",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ import kanela.agent.libs.net.bytebuddy.asm.Advice.{Argument, OnMethodEnter, OnMe

class ActorInstrumentation extends InstrumentationBuilder {

onType("akka.actor.dungeon.Dispatch")
.advise(method("sendMessage").and(takesArguments(1)), SendMessageAdvice)

/**
* This is where most of the Actor processing magic happens. Handling of messages, errors and system messages.
*/
Expand All @@ -40,6 +37,7 @@ class ActorInstrumentation extends InstrumentationBuilder {
.advise(method("invoke"), classOf[ActorCellInvokeAdvice])
.advise(method("handleInvokeFailure"), HandleInvokeFailureMethodAdvice)
.advise(method("terminate"), TerminateMethodAdvice)
.advise(method("sendMessage").and(takesArguments(1)), SendMessageAdvice)
.advise(method("swapMailbox"), ActorCellSwapMailboxAdvice)
.advise(method("invokeAll$1"), InvokeAllMethodInterceptor)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class TracingTestActor extends Actor {
}

class ActorWithMaterializer extends Actor {
implicit val mat: Materializer = Materializer(context)
implicit val mat: Materializer = ActorMaterializer()

override def receive: Receive = {
case "stream" =>
Expand Down

0 comments on commit 8641f8d

Please sign in to comment.