diff --git a/build.sbt b/build.sbt index cdd23f61..bf1764bb 100644 --- a/build.sbt +++ b/build.sbt @@ -42,6 +42,7 @@ lazy val money = moneyAspectj, moneyHttpClient, moneyJavaServlet, + moneyJakartaServlet, moneyWire, moneyKafka, moneySpring, diff --git a/money-jakarta-servlet/src/main/scala/com/comcast/money/jakarta/servlet/TraceFilter.scala b/money-jakarta-servlet/src/main/scala/com/comcast/money/jakarta/servlet/TraceFilter.scala index 0bafdc69..360981c5 100644 --- a/money-jakarta-servlet/src/main/scala/com/comcast/money/jakarta/servlet/TraceFilter.scala +++ b/money-jakarta-servlet/src/main/scala/com/comcast/money/jakarta/servlet/TraceFilter.scala @@ -17,11 +17,11 @@ package com.comcast.money.jakarta.servlet import com.comcast.money.core.Money -import io.opentelemetry.context.{Context, Scope} +import io.opentelemetry.context.{ Context, Scope } import org.slf4j.LoggerFactory import jakarta.servlet._ -import jakarta.servlet.http.{HttpServletRequest, HttpServletRequestWrapper, HttpServletResponse} +import jakarta.servlet.http.{ HttpServletRequest, HttpServletRequestWrapper, HttpServletResponse } import scala.collection.JavaConverters._ /** diff --git a/money-jakarta-servlet/src/test/scala/com/comcast/money/jakarta/servlet/TraceFilterSpec.scala b/money-jakarta-servlet/src/test/scala/com/comcast/money/jakarta/servlet/TraceFilterSpec.scala index df523a30..b48082cd 100644 --- a/money-jakarta-servlet/src/test/scala/com/comcast/money/jakarta/servlet/TraceFilterSpec.scala +++ b/money-jakarta-servlet/src/test/scala/com/comcast/money/jakarta/servlet/TraceFilterSpec.scala @@ -16,7 +16,7 @@ package com.comcast.money.jakarta.servlet -import com.comcast.money.api.{Span, SpanId} +import com.comcast.money.api.{ Span, SpanId } import com.comcast.money.core.formatters.FormatterUtils.randomRemoteSpanId import com.comcast.money.core.internal.SpanLocal import org.mockito.Mockito._ @@ -24,12 +24,12 @@ import org.mockito.stubbing.OngoingStubbing import org.scalatest.OptionValues._ import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec -import org.scalatest.{BeforeAndAfter, OneInstancePerTest} +import org.scalatest.{ BeforeAndAfter, OneInstancePerTest } import org.scalatestplus.mockito.MockitoSugar import java.util.Collections -import jakarta.servlet.http.{HttpServletRequest, HttpServletResponse} -import jakarta.servlet.{FilterChain, FilterConfig, ServletRequest, ServletResponse} +import jakarta.servlet.http.{ HttpServletRequest, HttpServletResponse } +import jakarta.servlet.{ FilterChain, FilterConfig, ServletRequest, ServletResponse } class TraceFilterSpec extends AnyWordSpec with Matchers with OneInstancePerTest with BeforeAndAfter with MockitoSugar {