Skip to content

Commit

Permalink
fix test, add to bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
hughsimpson committed May 24, 2024
1 parent 4e5651d commit c743ea6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 4 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,8 @@ lazy val `kamon-bundle-dependencies-all` = (project in file("bundle/kamon-bundle
`kamon-caffeine`,
`kamon-lagom`,
`kamon-aws-sdk`,
`kamon-apache-httpclient`
`kamon-apache-httpclient`,
`kamon-apache-cxf`
)

/**
Expand Down Expand Up @@ -1193,7 +1194,8 @@ lazy val `kamon-bundle-dependencies-3` = (project in file("bundle/kamon-bundle-d
`kamon-pekko`,
`kamon-pekko-http`,
`kamon-pekko-grpc`,
`kamon-apache-httpclient`
`kamon-apache-httpclient`,
`kamon-apache-cxf`
)

lazy val `kamon-bundle` = (project in file("bundle/kamon-bundle"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import kanela.agent.libs.net.bytebuddy.asm.Advice
import kanela.agent.libs.net.bytebuddy.asm.Advice.This
import org.apache.cxf.frontend.ClientProxyFactoryBean

import scala.annotation.static

class TracingClientFeatureInitializer
object TracingClientFeatureInitializer {

@Advice.OnMethodEnter
def onEnter(@This clientProxyFactoryBean: Any) = clientProxyFactoryBean match {
@static def onEnter(@This clientProxyFactoryBean: Any) = clientProxyFactoryBean match {
case c: ClientProxyFactoryBean => c.getFeatures.add(new TracingClientFeature)
}
}

0 comments on commit c743ea6

Please sign in to comment.