24 Commits

Author SHA1 Message Date
Rishesh Agarwal
09218ae889 Adding layering_check and parse_headers in test files (#41226)
Closes #41226

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/41226 from rishesh007:layering_test 02e735767f22e934850d5e150c5e3d577bdfbecb
PiperOrigin-RevId: 844606259
2025-12-14 23:05:28 -08:00
Yousuk Seung
0a34a8cbc8 Skip sleuth.so and sleuth tests on Windows
PiperOrigin-RevId: 841929574
2025-12-08 15:06:45 -08:00
Alisha Nanda
8766eb4ae0 Update Sleuth version.
PiperOrigin-RevId: 838844425
2025-12-01 10:52:51 -08:00
Yousuk Seung
8adedd8f2f Keep sleuth binary target name
PiperOrigin-RevId: 833982212
2025-11-18 14:59:13 -08:00
Yousuk Seung
96353e6c0b Always link the sleuth library (#40970)
Closes #40970

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40970 from yousukseung:alwayslink a84e7152b7c32550ffe83fcb88cfd2d8e7f58d0f
PiperOrigin-RevId: 825579850
2025-10-29 09:26:33 -07:00
Yousuk Seung
7c1a546992 Add sleuth.so target (#40965)
This is a shared library target for gRPC Sleuth Python extension.

<!--

If you know who should review your pull request, please assign it to that
person, otherwise the pull request would get assigned randomly.

If your pull request is for a specific language, please add the appropriate
lang label.

-->

Closes #40965

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40965 from yousukseung:sleuth-so b6f99b496b46e8dd599b08662370d4fdf4050b9c
PiperOrigin-RevId: 825233373
2025-10-28 15:38:22 -07:00
Rishesh Agarwal
3b48111cdc Enable layering_check and parse_headers for gRPC test targets.
PiperOrigin-RevId: 824369369
2025-10-26 23:30:20 -07:00
Yousuk Seung
67171d5e61 Move tool dependencies to the library.
PiperOrigin-RevId: 823564058
2025-10-24 09:44:54 -07:00
Yousuk Seung
1ab62ba748 Sleuth Tool Refactoring for Cython Export
- Use a print function instead of stdout/stderr
- Made existing main() into a library accessible via an API.
- Enabled multiple executions of the current main().
- Removed absl flags for better flag management when using the API.
- Consolidated SLEUTH_TOOL and absl flags (only behavioral change).

PiperOrigin-RevId: 823083768
2025-10-23 10:05:09 -07:00
Rishesh Agarwal
96f9dd853a adding bad regexs to improve code sanity (#40915)
Closes #40915

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40915 from rishesh007:add_sanity_checks 56a3c329fbf4ea6df115573230e05c14b55811df
PiperOrigin-RevId: 820056643
2025-10-15 22:00:24 -07:00
Craig Tiller
339906443b [clang-format] Match include file ordering to internal clang-format (#40905)
gRPC is currently getting formatted with two different clang-format implementations, and due to some weirdness they have different include file orderings. This change introduces clang-format configuration to ensure that the two systems align - it's *highly* expected that this will need some maintenance going forward as the two systems evolve.

Closes #40905

PiperOrigin-RevId: 819606209
2025-10-15 00:24:11 -07:00
Yousuk Seung
396b07997d Add versioning to the sleuth tool.
PiperOrigin-RevId: 816511205
2025-10-07 21:00:44 -07:00
Rishesh Agarwal
ecb1d4a9b7 This PR adds the missing dependencies src/core:grpc_check and :channel_arg_names to the relevant parts of the codebase
PiperOrigin-RevId: 814622149
2025-10-03 03:29:30 -07:00
Craig Tiller
17d3a0540c Cleanup visibility
PiperOrigin-RevId: 814347756
2025-10-02 12:54:14 -07:00
Yousuk Seung
6dc7ff1d0f Internal change
PiperOrigin-RevId: 813969629
2025-10-02 19:21:18 +00:00
Yousuk Seung
238bcb0690 Internal change
PiperOrigin-RevId: 813931069
2025-10-02 19:19:55 +00:00
Craig Tiller
22f37d371d Add fetch_latent_see_json tool to gRPC Sleuth.
This change introduces a new tool to the `sleuth` utility, allowing users to fetch latent see data from a gRPC server. The `fetch_latent_see_json` tool connects to a specified target, samples latent see data, and outputs it in JSON format to a file or stdout. The `Client` class is updated to include a `LatentSee` stub and a method to call the latent see service.

PiperOrigin-RevId: 813787648
2025-10-01 09:36:17 -07:00
Craig Tiller
d47f237ab7 Add ls command to channelz_tool for listing entities.
This change introduces a new `ls` command to sleuth which allows listing channelz entities. The command can optionally filter by entity kind. A new flag `--channelz_columns` is added to customize the columns displayed in the output, allowing users to specify which entity properties to show. The underlying `EntityTableColumn` struct is updated to use `std::string` for better lifetime management.

PiperOrigin-RevId: 807749528
2025-09-16 10:32:19 -07:00
Craig Tiller
4faeb6ceda Add ZTrace collection to chaotic good legacy transport.
This change introduces `LegacyZTraceCollector` to capture read and write frame events within the chaotic good legacy transport, using `ReadFrameTrace` and `WriteFrameTrace` structs to store frame header information.

PiperOrigin-RevId: 806040637
2025-09-11 17:10:50 -07:00
ac-patel
e268b80e7d [PH2] Fix initial value of keepalive_permit_without_calls (#40667)
1. Keepalive_permit_without_calls now reads value from channel_args.
2. Modified a test to be more robust.
3. fix sanity

Closes #40667

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/40667 from ac-patel:keepalive1 587536ebcffb9747734a6de124870e5ed87a84b3
PiperOrigin-RevId: 805703360
2025-09-11 00:41:06 -07:00
Tanvi Jagtap
f0d6a960ab [Fix][Build][BuildFix] Fixing
PiperOrigin-RevId: 805666395
2025-09-10 22:29:28 -07:00
Craig Tiller
f9384d6eb2 Add tool for ztrace to sleuth
PiperOrigin-RevId: 805641814
2025-09-10 20:53:08 -07:00
Craig Tiller
e0010668d6 Add text-based channelz visualization layout.
This change introduces `grpc_zviz::layout::TextElement` and `TextTable` to render channelz entities in a human-readable plain text format. A new `dump_channelz_text` command is added to the `sleuth` tool, which uses this new layout to output all channelz data. The `SLEUTH_TOOL` macro is also updated to prevent variable redefinition.

PiperOrigin-RevId: 805641583
2025-09-10 20:49:04 -07:00
Craig Tiller
b91f0fa280 Refactor cli_credentials_internal and introduce gRPC sleuth tool.
This change refactors `cli_credentials_internal` into a separate `cc_library` to allow reuse. It also introduces a new gRPC debugging tool called `sleuth`. The initial version of `sleuth` includes a `dump_channelz` command, which queries and prints all channelz entities from a specified target.

PiperOrigin-RevId: 805635745
2025-09-10 20:29:04 -07:00