Skip to content

Commit

Permalink
use metricTag for span.kind and component (#5)
Browse files Browse the repository at this point in the history
span.kind and component will have low cardinality
  • Loading branch information
jtjeferreira authored Aug 6, 2018
1 parent a7c3f51 commit 97ad317
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 97ad317

Please sign in to comment.