Fix span naming with multiple requests (#227)

This commit is contained in:
KirillPamPam
2023-06-08 16:13:15 +04:00
committed by GitHub
parent c972e27d43
commit 83fc91c500

View File

@@ -157,7 +157,7 @@ open class NativeCall(
): Context {
if (requestCount > 1) {
val span = tracer.nextSpan(requestSpan)
.name(requestId)
.name("emerald.blockchain/nativecall")
.tag(SPAN_REQUEST_ID, requestId)
.start()
return ReactorSleuth.putSpanInScope(tracer, ctx, span)