diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-26 21:56:50 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-26 21:56:50 +0200 |
commit | 194bc4fc90c53199eae6b6ca05964f7aa03bbdb3 (patch) | |
tree | 0409c77e8d1cbe30999eef6d96a5713d2c5ce320 /kamon-core-tests/src/test/scala | |
parent | 7d81f4ca59b2f22da7a23e825a3c562f3d9336a9 (diff) | |
download | Kamon-194bc4fc90c53199eae6b6ca05964f7aa03bbdb3.tar.gz Kamon-194bc4fc90c53199eae6b6ca05964f7aa03bbdb3.tar.bz2 Kamon-194bc4fc90c53199eae6b6ca05964f7aa03bbdb3.zip |
remove the annotations API from the Span
Diffstat (limited to 'kamon-core-tests/src/test/scala')
-rw-r--r-- | kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala b/kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala index 6da7829d..f6bd3517 100644 --- a/kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala +++ b/kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala @@ -56,10 +56,6 @@ class LocalSpanSpec extends WordSpec with Matchers with BeforeAndAfterAll with E .addSpanTag("span-boolean-tag-true", true) .addSpanTag("span-boolean-tag-false", false) .addSpanTag("span-number-tag", 42) - .annotate("simple-annotation") - .annotate("regular-annotation", Map("data" -> "something")) - .annotate(4200, "custom-annotation-1", Map("custom" -> "yes-1")) - .annotate(Annotation(4201, "custom-annotation-2", Map("custom" -> "yes-2"))) .setOperationName("fully-populated-span") .finish(200) @@ -78,23 +74,6 @@ class LocalSpanSpec extends WordSpec with Matchers with BeforeAndAfterAll with E "span-boolean-tag-false" -> TagValue.False, "span-number-tag" -> TagValue.Number(42) ) - - finishedSpan.annotations.length shouldBe (4) - val annotations = finishedSpan.annotations.groupBy(_.name) - annotations.keys should contain allOf( - "simple-annotation", - "regular-annotation", - "custom-annotation-1", - "custom-annotation-2" - ) - - val customAnnotationOne = annotations("custom-annotation-1").head - customAnnotationOne.timestampMicros shouldBe (4200) - customAnnotationOne.fields shouldBe (Map("custom" -> "yes-1")) - - val customAnnotationTwo = annotations("custom-annotation-2").head - customAnnotationTwo.timestampMicros shouldBe (4201) - customAnnotationTwo.fields shouldBe (Map("custom" -> "yes-2")) } } } |