Check if currentSpan is not null (#368)

This commit is contained in:
KirillPamPam
2023-12-20 14:01:34 +04:00
committed by GitHub
parent f808500718
commit de6306c781

View File

@@ -100,7 +100,9 @@ class BlockchainRpc(
}.doOnError {
failMetric.increment()
}.doFinally {
providerSpanHandler?.sendSpans(tracer.currentSpan().context())
tracer.currentSpan()?.run {
providerSpanHandler?.sendSpans(this.context())
}
}
}