7

How to integrate typesafe console with akka-scala based application

 3 years ago
source link: https://blog.knoldus.com/how-to-integrate-typesafe-console-with-akka-scala-based-application/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to integrate typesafe console with akka-scala based application

Reading Time: < 1 minute

We are working on a akka-scala based project. We needed to monitor the akka actors related activities and their profile so we integrated typesafe console with our application.

So i am going to tell here how to integrate it with your akka-scala application.

First we need to add a atmos dependency in our project build.sbt as below.

xxxxxxxxxx
"com.typesafe.atmos" %% "atmos-trace" % "1.3.0"

Add below setting to your build.sbt.

xxxxxxxxxx
atmosSettings
atmosTestSettings

Now go to your project directory and do sbt update.  It will download the above atmos dependency.

After doing an update run below command.

xxxxxxxxxx
sbt atoms:run

On the console you will see a message as below.

Starting Atmos and Typesafe Console …
Typesafe Console is available at http://localhost:9900

Typesafe-console UI  can be accessed by pointing to http://localhost:9900 and you will see a screen like this.

You can find the related code here on github.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK