Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Troubleshoot the Google Cloud Rust Client Library

Debug logging

The best way to troubleshoot is by enabling logging. See Enabling Logging for more information.

How can I trace gRPC issues?

Clients that use gRPC use tonic for the underlying transport. The primary method for debugging gRPC calls in Rust is using the tracing subscriber filters. You can target specific gRPC crates to see underlying transport details.

NOTE: The tracing crate requires that you first initialize a tracing_subscriber.

For example, setting the RUST_LOG environment variable to include tonic=debug or h2=debug will dump a lot of information regarding the gRPC and HTTP/2 layers.

RUST_LOG=debug,tonic=debug,h2=debug cargo run --example your_program

How can I diagnose proxy issues?

See Client Configuration: Configuring a Proxy.

Reporting a problem

If your issue is still not resolved, ask for help. If you have a support contract with Google, create an issue in the support console instead of filing on GitHub. This will ensure a timely response.

Otherwise, file an issue on GitHub. Although there are multiple GitHub repositories associated with the Google Cloud Libraries, we recommend filing an issue in https://github.com/googleapis/google-cloud-rust unless you are certain that it belongs elsewhere. The maintainers may move it to a different repository where appropriate, but you will be notified of this using the email associated with your GitHub account.