@@ -18,7 +18,7 @@ package fr.acinq.eclair.channel
18
18
19
19
import akka .actor .typed .scaladsl .Behaviors
20
20
import akka .actor .typed .scaladsl .adapter .{ClassicActorContextOps , TypedActorRefOps , actorRefAdapter }
21
- import akka .actor .{ActorContext , ActorRef , FSM , OneForOneStrategy , PossiblyHarmful , Props , Status , SupervisorStrategy , typed }
21
+ import akka .actor .{Actor , ActorContext , ActorRef , FSM , OneForOneStrategy , PossiblyHarmful , Props , Status , SupervisorStrategy , typed }
22
22
import akka .event .Logging .MDC
23
23
import akka .pattern .pipe
24
24
import fr .acinq .bitcoin .Crypto .{PrivateKey , PublicKey }
@@ -30,6 +30,7 @@ import fr.acinq.eclair.blockchain.bitcoind.ZmqWatcher
30
30
import fr .acinq .eclair .blockchain .bitcoind .ZmqWatcher ._
31
31
import fr .acinq .eclair .blockchain .bitcoind .rpc .ExtendedBitcoinClient
32
32
import fr .acinq .eclair .channel .Helpers .{Closing , Funding }
33
+ import fr .acinq .eclair .channel .Monitoring .Metrics .ProcessMessage
33
34
import fr .acinq .eclair .channel .Monitoring .{Metrics , Tags }
34
35
import fr .acinq .eclair .channel .TxPublisher .{PublishRawTx , PublishTx , SetChannelId , SignAndPublishTx }
35
36
import fr .acinq .eclair .crypto .ShaChain
@@ -2557,6 +2558,12 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
2557
2558
// we let the peer decide what to do
2558
2559
override val supervisorStrategy = OneForOneStrategy (loggingEnabled = true ) { case _ => SupervisorStrategy .Escalate }
2559
2560
2561
+ override def aroundReceive (receive : Actor .Receive , msg : Any ): Unit = {
2562
+ KamonExt .time(ProcessMessage .withTag(" MessageType" , msg.getClass.getSimpleName)) {
2563
+ super .aroundReceive(receive, msg)
2564
+ }
2565
+ }
2566
+
2560
2567
initialize()
2561
2568
2562
2569
}
0 commit comments