Check if currentSpan is not null (#368)
This commit is contained in:
@@ -100,7 +100,9 @@ class BlockchainRpc(
|
|||||||
}.doOnError {
|
}.doOnError {
|
||||||
failMetric.increment()
|
failMetric.increment()
|
||||||
}.doFinally {
|
}.doFinally {
|
||||||
providerSpanHandler?.sendSpans(tracer.currentSpan().context())
|
tracer.currentSpan()?.run {
|
||||||
|
providerSpanHandler?.sendSpans(this.context())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user