diff options
Diffstat (limited to 'kamon-core/src/main/scala')
-rw-r--r-- | kamon-core/src/main/scala/kamon/trace/Tracer.scala | 3 |
1 files changed, 2 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 3aeb968f..0c4c1c82 100644 --- a/kamon-core/src/main/scala/kamon/trace/Tracer.scala +++ b/kamon-core/src/main/scala/kamon/trace/Tracer.scala @@ -76,7 +76,8 @@ class Tracer(metrics: MetricLookup, reporterRegistry: ReporterRegistryImpl, init case spanContext: kamon.trace.SpanContext => this.parentContext = spanContext this - case _ => logger.error("Can't extract the parent ID from a non-Kamon SpanContext"); this + case null => this + case _ => logger.error("Can't extract the parent ID from a non-Kamon SpanContext"); this } override def asChildOf(parent: io.opentracing.BaseSpan[_]): io.opentracing.Tracer.SpanBuilder = |