From 97ad317b9ddf0fb726a1769efac9d556125a0ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreira?= Date: Mon, 6 Aug 2018 16:10:30 +0100 Subject: [PATCH] use metricTag for span.kind and component (#5) span.kind and component will have low cardinality --- .../reactivemongo/kamon/instrumentation/Instrumentation.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/reactivemongo/kamon/instrumentation/Instrumentation.scala b/src/main/scala/reactivemongo/kamon/instrumentation/Instrumentation.scala index 0e26f63..1a4afdf 100644 --- a/src/main/scala/reactivemongo/kamon/instrumentation/Instrumentation.scala +++ b/src/main/scala/reactivemongo/kamon/instrumentation/Instrumentation.scala @@ -98,8 +98,8 @@ class Instrumentation { // println(s"before $collectionName ${pjp.getSignature}") val clientSpanBuilder = Kamon.buildSpan(generateOperationName) .asChildOf(clientSpan) - .withTag("span.kind", "client") - .withTag("component", "reactivemongo") + .withMetricTag("span.kind", "client") + .withMetricTag("component", "reactivemongo") .withTag("reactivemongo.collection", collectionName) val clientRequestSpan = currentContext.get(SpanCustomizer.ContextKey)