diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-09 22:55:43 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-11-09 22:56:03 +0100 |
commit | 447605e612d5bbea9765ede288ba19b1a69af48c (patch) | |
tree | 9777130efb47e31bbf262c047cb875d1cdc4724c /kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala | |
parent | 0bb57412690b8694f742d479213bda6f7f090630 (diff) | |
download | Kamon-447605e612d5bbea9765ede288ba19b1a69af48c.tar.gz Kamon-447605e612d5bbea9765ede288ba19b1a69af48c.tar.bz2 Kamon-447605e612d5bbea9765ede288ba19b1a69af48c.zip |
+ core,play,spray: allow segments to identify the library they belong to.
Diffstat (limited to 'kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala')
-rw-r--r-- | kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala b/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala index 125db85e..f16c76c8 100644 --- a/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala +++ b/kamon-play/src/main/scala/kamon/play/instrumentation/WSInstrumentation.scala @@ -18,7 +18,7 @@ package kamon.play.instrumentation import kamon.Kamon import kamon.play.Play -import kamon.trace.{ SegmentMetricIdentityLabel, SegmentMetricIdentity, TraceRecorder } +import kamon.trace.{ SegmentCategory, SegmentMetricIdentity, TraceRecorder } import org.aspectj.lang.ProceedingJoinPoint import org.aspectj.lang.annotation.{ Around, Aspect, Pointcut } import play.api.libs.ws.{ WSRequest, WSResponse } @@ -37,7 +37,7 @@ class WSInstrumentation { val playExtension = Kamon(Play)(system) val executor = playExtension.defaultDispatcher val segmentName = playExtension.generateHttpClientSegmentName(request) - val segment = ctx.startSegment(segmentName, SegmentMetricIdentityLabel.HttpClient) + val segment = ctx.startSegment(segmentName, SegmentCategory.HttpClient, Play.SegmentLibraryName) val response = pjp.proceed().asInstanceOf[Future[WSResponse]] response.map(result ⇒ segment.finish())(executor) |