Skip to content

Commit

Permalink
Do not prefix Zipkin kind keys (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Ländle <969523+alaendle@users.noreply.github.com>
alaendle and alaendle authored Feb 11, 2024
1 parent 410d071 commit aa0cc70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Monitor/Tracing/Zipkin.hs
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ addTag key val bldr =
-- Use this method if you want to create a root consumer span. Otherwise use 'consumerSpanWith' to
-- create a sub span with consumer kind.
addConsumerKind :: Builder -> Builder
addConsumerKind = addTag kindKey consumerKindValue
addConsumerKind = appEndo $ insertTag kindKey consumerKindValue

-- | Adds a producer kind tag to a builder. This is a convenience method to use with 'rootSpanWith',
-- for example:
@@ -193,7 +193,7 @@ addConsumerKind = addTag kindKey consumerKindValue
-- Use this method if you want to create a root producer span. Otherwise use 'producerSpanWith' to
-- create a sub span with producer kind.
addProducerKind :: Builder -> Builder
addProducerKind = addTag kindKey producerKindValue
addProducerKind = appEndo $ insertTag kindKey producerKindValue

-- | Adds an inherited tag to a builder. Unlike a tag added via 'addTag', this tag:
--

0 comments on commit aa0cc70

Please sign in to comment.