fun ping(callback: PingCallback? = null): Unit
(source)
Ping the service. This emits a lightweight message and asks the server to respond ASAP. In some cases, a telemetry ping may be used to establish session-level default context, by specifying global context in headers/trailers alongside the ping request.