Fix kotlin compiler warning (#11530)
This commit is contained in:
parent
5b2d1b29bd
commit
2c2815abc1
|
@ -10,7 +10,7 @@ import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter
|
|||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.onCompletion
|
||||
|
||||
fun <REQUEST, RESPONSE> onComplete(flow: Flow<*>, instrumenter: Instrumenter<REQUEST, RESPONSE>, context: Context, request: REQUEST): Flow<*> {
|
||||
fun <REQUEST, RESPONSE> onComplete(flow: Flow<*>, instrumenter: Instrumenter<REQUEST, RESPONSE>, context: Context, request: REQUEST & Any): Flow<*> {
|
||||
return flow.onCompletion { cause: Throwable? ->
|
||||
instrumenter.end(context, request, null, cause)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue