Fix span naming with multiple requests (#227)
This commit is contained in:
@@ -157,7 +157,7 @@ open class NativeCall(
|
|||||||
): Context {
|
): Context {
|
||||||
if (requestCount > 1) {
|
if (requestCount > 1) {
|
||||||
val span = tracer.nextSpan(requestSpan)
|
val span = tracer.nextSpan(requestSpan)
|
||||||
.name(requestId)
|
.name("emerald.blockchain/nativecall")
|
||||||
.tag(SPAN_REQUEST_ID, requestId)
|
.tag(SPAN_REQUEST_ID, requestId)
|
||||||
.start()
|
.start()
|
||||||
return ReactorSleuth.putSpanInScope(tracer, ctx, span)
|
return ReactorSleuth.putSpanInScope(tracer, ctx, span)
|
||||||
|
|||||||
Reference in New Issue
Block a user