I use an external library that internally uses grpc\'s ThreadLocalContextStorage. However it seems not to work very well with Kotlin (actually, Ktor) and its coroutines - it