aboutsummaryrefslogtreecommitdiff
path: root/kamon-core/src/test/scala/kamon/trace
diff options
context:
space:
mode:
authorIvan Topolnjak <ivantopo@gmail.com>2014-11-09 22:55:43 +0100
committerIvan Topolnjak <ivantopo@gmail.com>2014-11-09 22:56:03 +0100
commit2f274788aa8c96eed918ef3ddb69de496d5d0346 (patch)
treea4c373ad250dad44caa88497771db46a00178975 /kamon-core/src/test/scala/kamon/trace
parent17ff90ce6e91554b464a9951ddd5e6ffafb4d3ff (diff)
downloadKamon-2f274788aa8c96eed918ef3ddb69de496d5d0346.tar.gz
Kamon-2f274788aa8c96eed918ef3ddb69de496d5d0346.tar.bz2
Kamon-2f274788aa8c96eed918ef3ddb69de496d5d0346.zip
+ core,play,spray: allow segments to identify the library they belong to.
Diffstat (limited to 'kamon-core/src/test/scala/kamon/trace')
-rw-r--r--kamon-core/src/test/scala/kamon/trace/TraceContextManipulationSpec.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-core/src/test/scala/kamon/trace/TraceContextManipulationSpec.scala b/kamon-core/src/test/scala/kamon/trace/TraceContextManipulationSpec.scala
index e2031a72..0875deff 100644
--- a/kamon-core/src/test/scala/kamon/trace/TraceContextManipulationSpec.scala
+++ b/kamon-core/src/test/scala/kamon/trace/TraceContextManipulationSpec.scala
@@ -78,7 +78,7 @@ class TraceContextManipulationSpec extends TestKitBase with WordSpecLike with Ma
"allow creating a segment within a trace" in {
val createdContext = TraceRecorder.withNewTraceContext("trace-with-segments") {
- val segment = TraceRecorder.currentContext.startSegment("segment-1", "segment-1-label")
+ val segment = TraceRecorder.currentContext.startSegment("segment-1", "segment-1-category", "segment-library")
TraceRecorder.currentContext
}
@@ -88,7 +88,7 @@ class TraceContextManipulationSpec extends TestKitBase with WordSpecLike with Ma
"allow renaming a segment" in {
TraceRecorder.withNewTraceContext("trace-with-renamed-segment") {
- val segment = TraceRecorder.currentContext.startSegment("original-segment-name", "segment-label")
+ val segment = TraceRecorder.currentContext.startSegment("original-segment-name", "segment-label", "segment-library")
segment.name should be("original-segment-name")
segment.rename("new-segment-name")