We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9ad0ce commit a920898Copy full SHA for a920898
core/src/main/scala/brave/play/ZipkinTraceServiceLike.scala
@@ -1,5 +1,5 @@
1
/**
2
- * Copyright 2017-2020 The OpenZipkin Authors
+ * Copyright 2017-2021 The OpenZipkin Authors
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5
* in compliance with the License. You may obtain a copy of the License at
@@ -183,7 +183,8 @@ trait ZipkinTraceServiceLike {
183
(carrier: A, key: String) => getHeader(carrier, key).orNull
184
).extract(headers)
185
186
- tracer.joinSpan(contextOrFlags.context())
+ Option(contextOrFlags.context())
187
+ .map(tracer.joinSpan).getOrElse(tracer.nextSpan(contextOrFlags))
188
}
189
190
0 commit comments