Skip to content

Commit

Permalink
Bump akka version to 2.6.11
Browse files Browse the repository at this point in the history
  • Loading branch information
SimunKaracic committed Jan 19, 2021
1 parent d18c5c8 commit d58d55b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion instrumentation/kamon-akka/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ val `Akka-2.4-version` = "2.4.20"
// latest is 2.5.9
val `Akka-2.5-version` = "2.5.26"
// latest is 2.6.10
val `Akka-2.6-version` = "2.6.8"
val `Akka-2.6-version` = "2.6.11"

/**
* Compile Configurations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@ class ShardingInstrumentation extends InstrumentationBuilder with VersionFilteri
* whether it should be buffered or forwarded).
*/
onType("akka.cluster.sharding.Shard")
// add sharding instruments
.mixin(classOf[HasShardingInstruments.Mixin])
.mixin(classOf[HasShardCounters.Mixin])
.advise(isConstructor, InitializeShardAdvice)
.advise(method("onLeaseAcquired"), ShardInitializedAdvice)
.advise(method("onEntitiesRemembered"), ShardInitializedAdvice)
.advise(method("postStop"), ShardPostStopStoppedAdvice)
.advise(method("getOrCreateEntity"), ShardGetOrCreateEntityAdvice)
.advise(method("passivateCompleted"), ShardEntityTerminatedAdvice)
Expand All @@ -47,6 +45,16 @@ class ShardingInstrumentation extends InstrumentationBuilder with VersionFilteri
.advise(method("deliverMessage"), ShardDeliverMessageAdvice)
}

untilAkkaVersion("2.6", 10) {
onType("akka.cluster.sharding.Shard")
.advise(method("onEntitiesRemembered"), ShardInitializedAdvice)
}

afterAkkaVersion("2.6", 11) {
onType("akka.cluster.sharding.Shard")
.advise(method("shardInitialized"), ShardInitializedAdvice)
}

}


Expand Down

0 comments on commit d58d55b

Please sign in to comment.