Add debugging section with grpcdebug (#1314)

This commit is contained in:
Purnesh Dixit 2024-07-04 01:10:58 +05:30 committed by GitHub
parent 3e77ddfd85
commit 2387f6a2eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,33 @@
---
title: Debugging
description: >-
Explains the debugging process of gRPC applications using grpcdebug
---
### Overview
[grpcdebug] is a command line tool within the gRPC ecosystem designed to assist developers in debugging and troubleshooting gRPC services. grpcdebug fetches the internal states of the gRPC library from the application via gRPC protocol and provides a human-friendly UX to browse them. Currently, it supports [Channelz]/[Health] Checking/CSDS (aka. [admin services]). In other words, it can fetch statistics about how many RPCs have being sent or failed on a given gRPC channel, it can inspect address resolution results, it can dump the active xDS configuration that directs the routing of RPCs.
### Language examples
| Language | Example | Notes |
|----------|------------------|------------------------------------------------------------------|
| C++ | [C++ Example] | |
| Go | [Go Example] | [Go test server implementing admin services from grpcdebug docs] |
| Java | [Java Example] | |
### References
* [grpcdebug installation]
* [grpcdebug quick start]
[grpcdebug]: https://github.com/grpc-ecosystem/grpcdebug
[Health]:https://github.com/grpc/grpc/blob/master/src/proto/grpc/health/v1/health.proto
[Channelz]: https://github.com/grpc/proposal/blob/master/A14-channelz.md
[admin services]: https://github.com/grpc/proposal/blob/master/A38-admin-interface-api.md
[C++ Example]: https://github.com/grpc/grpc/tree/master/examples/cpp/debugging#using-grpcdebug
[Go Example]: https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file#quick-start
[Java Example]: https://github.com/grpc/grpc-java/tree/master/examples/example-debug#using-grpcdebug
[grpcdebug installation]: https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file#installation
[grpcdebug quick start]: https://github.com/grpc-ecosystem/grpcdebug?tab=readme-ov-file#quick-start
[Go test server implementing admin services from grpcdebug docs]: https://github.com/grpc-ecosystem/grpcdebug/tree/main/internal/testing/testserver