Connect with Scala

Content

SBT/Scala commands

Maven

 

SBT/Scala commands

You can add TakipiAgents to your Scala application by passing a JVM argument to scala/sbt with a "-J" prefix:
scala -J-agentlib:TakipiAgentsbt -J-agentlib:TakipiAgent
 
Add TakipiAgents to your Scala application by setting JAVA_OPTS environment variable before starting Scala:
Linux/macOS:
export JAVA_OPTS="$JAVA_OPTS -agentlib:TakipiAgent"
Windows:
set JAVA_OPTS=%JAVA_OPTS% -agentlib:TakipiAgent
Note: In some sbt versions the environment variable is SBT_OPTS and not JAVA_OPTS.
 

Maven

In the terminal/command line, add -agentlib:TakipiAgent to the MAVEN_OPTS environment variable:

Linux/macOS:

export MAVEN_OPTS="$MAVEN_OPTS -agentlib:TakipiAgent"

Windows:

set MAVEN_OPTS=%MAVEN_OPTS% -agentlib:TakipiAgent

 

Related Articles

 

Have more questions? Submit a request