diff options
author | Diego <diegolparra@gmail.com> | 2017-07-09 13:08:54 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2017-07-09 13:08:54 -0300 |
commit | b91aed8694ce3a291ca000f48d99549d6d27a288 (patch) | |
tree | 0524df885a2d548657543f9ebbc67a5490ab4916 /kamon-core/src/main | |
parent | 640e7098f42c3f497c493244b6652c9408fae9a8 (diff) | |
download | Kamon-b91aed8694ce3a291ca000f48d99549d6d27a288.tar.gz Kamon-b91aed8694ce3a291ca000f48d99549d6d27a288.tar.bz2 Kamon-b91aed8694ce3a291ca000f48d99549d6d27a288.zip |
append child baggage in SpanContext creation
Diffstat (limited to 'kamon-core/src/main')
-rw-r--r-- | kamon-core/src/main/scala/kamon/trace/Tracer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/trace/Tracer.scala b/kamon-core/src/main/scala/kamon/trace/Tracer.scala index 0c4c1c82..9aff6ee9 100644 --- a/kamon-core/src/main/scala/kamon/trace/Tracer.scala +++ b/kamon-core/src/main/scala/kamon/trace/Tracer.scala @@ -131,7 +131,7 @@ class Tracer(metrics: MetricLookup, reporterRegistry: ReporterRegistryImpl, init val spanContext = if(parentContext != null) - new SpanContext(parentContext.traceID, createID(), parentContext.spanID, parentContext.sampled, initialTags) + new SpanContext(parentContext.traceID, createID(), parentContext.spanID, parentContext.sampled, initialTags ++ parentContext.baggageMap) else { val traceID = createID() new SpanContext(traceID, traceID, 0L, configuredSampler.decide(traceID), initialTags) |