Skip to content

scala and akka-http #6121

Answered by antosha417
antosha417 asked this question in Q&A
Discussion options

You must be logged in to vote

I managed to get it working 🎉

I ended up using sbt-javaagent plugin to pass opentelemetry-javaagent.jar.
So now my build.sbt look like this:

lazy val root = (project in file("."))
  .settings(
    inThisBuild(
      List(
        organization := "com.example",
        scalaVersion := "2.13.4"
      )
    ),
    name := "akka-http-scala",
    libraryDependencies ++= Seq(
      "com.typesafe.akka" %% "akka-http" % akkaHttpVersion,
      "com.typesafe.akka" %% "akka-http-spray-json" % akkaHttpVersion,
      "com.typesafe.akka" %% "akka-actor-typed" % akkaVersion,
      "com.typesafe.akka" %% "akka-stream" % akkaVersion,
      "ch.qos.logback" % "logback-classic" % "1.2.3",
      "com.typesaf…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by antosha417
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant