diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-26 22:04:34 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2017-08-26 22:04:34 +0200 |
commit | 80d3d7706e5f4cbbfe2164d1b17b2649782e0e0e (patch) | |
tree | 5d6593b930390b42360d410a4899fff398bb8ab1 /kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala | |
parent | 194bc4fc90c53199eae6b6ca05964f7aa03bbdb3 (diff) | |
download | Kamon-80d3d7706e5f4cbbfe2164d1b17b2649782e0e0e.tar.gz Kamon-80d3d7706e5f4cbbfe2164d1b17b2649782e0e0e.tar.bz2 Kamon-80d3d7706e5f4cbbfe2164d1b17b2649782e0e0e.zip |
make Span.addTag work only on Span tags
Diffstat (limited to 'kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala')
-rw-r--r-- | kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala | 18 |
1 files changed, 9 insertions, 9 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 f6bd3517..966fdbad 100644 --- a/kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala +++ b/kamon-core-tests/src/test/scala/kamon/trace/LocalSpanSpec.scala @@ -30,7 +30,7 @@ class LocalSpanSpec extends WordSpec with Matchers with BeforeAndAfterAll with E "sampled and finished" should { "be sent to the Span reporters" in { Kamon.buildSpan("test-span") - .withSpanTag("test", "value") + .withTag("test", "value") .withStartTimestamp(100) .start() .finish(200) @@ -46,16 +46,16 @@ class LocalSpanSpec extends WordSpec with Matchers with BeforeAndAfterAll with E "pass all the tags, annotations and baggage to the FinishedSpan instance when started and finished" in { Kamon.buildSpan("full-span") - .withSpanTag("builder-string-tag", "value") - .withSpanTag("builder-boolean-tag-true", true) - .withSpanTag("builder-boolean-tag-false", false) - .withSpanTag("builder-number-tag", 42) + .withTag("builder-string-tag", "value") + .withTag("builder-boolean-tag-true", true) + .withTag("builder-boolean-tag-false", false) + .withTag("builder-number-tag", 42) .withStartTimestamp(100) .start() - .addSpanTag("span-string-tag", "value") - .addSpanTag("span-boolean-tag-true", true) - .addSpanTag("span-boolean-tag-false", false) - .addSpanTag("span-number-tag", 42) + .addTag("span-string-tag", "value") + .addTag("span-boolean-tag-true", true) + .addTag("span-boolean-tag-false", false) + .addTag("span-number-tag", 42) .setOperationName("fully-populated-span") .finish(200) |