Hey!
I'm building a spring grpc application. I have attached @NewSpan to some suspend service method that makes reactor calls using .awaitSingleOrNull() to convert the Mono to kotlin's suspend syntax.
Tech stack
- Spring Grpc
- Reactor
- Kotlin suspend
- Kotlin reactor bridge (kotlinx.coroutines.reactor)
- opentelemetry-extension-kotlin
I have tried an alternate syntax of wrapping the function body in a span, and that seems to work.
suspend fun example(
argA: String,
argB: String
): {
val span = tracer.nextSpan()
.name("example")
.tag("argA", argA)
.tag("argB", argB)
try {
block...
} finally {
span.end()
}
}
Can this annotation be expanded to support this behavior?
Hey!
I'm building a spring grpc application. I have attached
@NewSpanto some suspend service method that makes reactor calls using.awaitSingleOrNull()to convert theMonoto kotlin's suspend syntax.Tech stack
I have tried an alternate syntax of wrapping the function body in a span, and that seems to work.
Can this annotation be expanded to support this behavior?