236 Commits

Author SHA1 Message Date
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
Yash Tibrewal
a863830385 [OTel C++] Use gRPC's trace-bin TextMapPropagator in example (#39740)
Closes #39740

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/39740 from yashykt:FixTracingExample 3df40d756dee6765d6a11bcbc88ce7deab30a52a
PiperOrigin-RevId: 767219292
2025-06-04 11:23:11 -07:00
Adam Heller
423d678b01 [cleanup] localhork (#39435)
Closes #39435

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/39435 from drfloob:localhork a4513d8e565e47af1682bdc8fa46f0f0a09bb762
PiperOrigin-RevId: 753308915
2025-04-30 14:18:05 -07:00
Tanvi Jagtap
40930a435c [Documentation][gRPC] Multiplexing Example
PiperOrigin-RevId: 744982457
2025-04-07 22:29:01 -07:00
Qucheng Jiang
93971c4b57 [cpp/route_guide] Fix JSON minification removing spaces inside string values (#38954) (#38955)
[cpp/route_guide] Fix JSON minification removing spaces inside string values (#38954)

The existing JSON minification logic removes all whitespace characters using 'std::remove_if(db_.begin(), db_.end(), isspace);'. This approach inadvertently strips spaces inside JSON string values, leading to incorrect data parsing.

This commit introduces a new JSON minification function that:
- Removes spaces **outside** JSON string values.
- Preserves spaces **inside** JSON string values (`"..."`).
- Correctly handles escaped quotes (`\"`).

Fixes #38954

<!--

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.

-->
## Verification

### Before Fix
```bash
> ./cmake/build/route_guide_client
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1741496886.397564  341105 helper.cc:201] DB parsed, loaded 100 features.
-------------- GetFeature --------------
Found feature called BerkshireValleyManagementAreaTrail,Jefferson,NJ,USA at 40.9146, -74.6189
Found no feature at 0, 0
-------------- ListFeatures --------------
Looking for features between 40, -75 and 42, -73
Found feature called PatriotsPath,Mendham,NJ07945,USA at 40.7838, -74.6144
Found feature called 101NewJersey10,Whippany,NJ07981,USA at 40.8123, -74.3999
Found feature called U.S.6,Shohola,PA18458,USA at 41.3628, -74.9016
Found feature called 5ConnersRoad,Kingston,NY12401,USA at 42, -74.0371
Found feature called MidHudsonPsychiatricCenter,NewHampton,NY10958,USA at 41.4008, -74.3951
Found feature called 287FlugertownRoad,LivingstonManor,NY12758,USA at 41.9611, -74.6525
Found feature called 4001TremleyPointRoad,Linden,NJ07036,USA at 40.611, -74.2187
Found feature called 352SouthMountainRoad,Wallkill,NY12589,USA at 41.6802, -74.237
Found feature called BaileyTurnRoad,Harriman,NY10926,USA at 41.295, -74.1077
Found feature called 193-199WawayandaRoad,Hewitt,NJ07421,USA at 41.2145, -74.395
Found feature called 406-496WardAvenue,PineBush,NY12566,USA at 41.5737, -74.2848
...
```

### After Fix
```bash
> ./cmake/build/route_guide_client
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1741496644.493263  337350 helper.cc:203] DB parsed, loaded 100 features.
-------------- GetFeature --------------
Found feature called Berkshire Valley Management Area Trail, Jefferson, NJ, USA at 40.9146, -74.6189
Found no feature at 0, 0
-------------- ListFeatures --------------
Looking for features between 40, -75 and 42, -73
Found feature called Patriots Path, Mendham, NJ 07945, USA at 40.7838, -74.6144
Found feature called 101 New Jersey 10, Whippany, NJ 07981, USA at 40.8123, -74.3999
Found feature called U.S. 6, Shohola, PA 18458, USA at 41.3628, -74.9016
Found feature called 5 Conners Road, Kingston, NY 12401, USA at 42, -74.0371
Found feature called Mid Hudson Psychiatric Center, New Hampton, NY 10958, USA at 41.4008, -74.3951
Found feature called 287 Flugertown Road, Livingston Manor, NY 12758, USA at 41.9611, -74.6525
Found feature called 4001 Tremley Point Road, Linden, NJ 07036, USA at 40.611, -74.2187
Found feature called 352 South Mountain Road, Wallkill, NY 12589, USA at 41.6802, -74.237
Found feature called Bailey Turn Road, Harriman, NY 10926, USA at 41.295, -74.1077
Found feature called 193-199 Wawayanda Road, Hewitt, NJ 07421, USA at 41.2145, -74.395
Found feature called 406-496 Ward Avenue, Pine Bush, NY 12566, USA at 41.5737, -74.2848
...
```

Closes #38955

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38955 from jiangqucheng:master 54089ec53b547f9c90e672104a668c12930f43b7
PiperOrigin-RevId: 744962894
2025-04-07 21:14:15 -07:00
Yash Tibrewal
95a1de4935 [examples] Initialize logging (#39095)
Closes #39095

PiperOrigin-RevId: 741352357
2025-03-27 18:49:43 -07:00
Yash Tibrewal
b2d091655c OTel C++: Modify example to add tracing (#38990)
Closes #38990

PiperOrigin-RevId: 738137082
2025-03-18 14:07:13 -07:00
Amit Mehra
f008ce280a [examples/cpp/route_guide] Fix callback client command line arg parsing (#38891)
route_guide_callback_client only works if started from the grpc/ directory. If started from other directories, it fails with the following error:
```
grpc/examples/cpp/route_guide
› ../../. /bazel-bin/examples/cpp/route_guide/route_guide_callback_client -db_path ./route_guide_db.json WARNING: All log messages before absl:: InitializeLog() is called are written to STDERR E0000 00:00:1740838254.946166 3533952 helper.cc:49] Failed to open examples/cpp/route_guide/route_guide_db.json
[1]    21202 abort ../../../bazel-bin/examples/cpp/route_guide/route_guide_callback_client
```

Add 'absl::ParseCommandLine(argc, argv)' to route_guide_callback_client so that the db_path argument is parsed.

Closes #38891

PiperOrigin-RevId: 733357751
2025-03-04 09:31:00 -08:00
Esun Kim
232dceb3a3 [Dep] Small changes to how to pull in Protobuf (#38884)
Two changes are made to accept upcoming Protobuf v30
- Protobuf v30 will introduce a change that removes Bazel+MSVC support unless the `protobuf_allow_msvc option` is explicitly enabled. Therefore, to maintain compatibility, CI needs to define this option.
- CMake file for `protobuf/upb` now depends on the `protobuf_VERSION` variable, which is set in the main protobuf CMake file. A specific `cmake_externalproject` test includes `protobuf/upb` directly and therefore misses the opportunity to define this variable. To address this, the test now defines `protobuf_VERSION` directly.

Closes #38884

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38884 from veblush:protobuf-v30-misc fd0154452db4e21a3df0c47763529272e181bec1
PiperOrigin-RevId: 732251635
2025-02-28 14:00:55 -08:00
Esun Kim
f122d24844 [Apple] Bump the minimum iOS to 15.0 & OSX to 11.0 (#38876)
This is aligned with
- https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md
- Upcoming Protobuf v30 (9f1b38e8a1)

Closes #38876

PiperOrigin-RevId: 731889588
2025-02-27 15:33:34 -08:00
Esun Kim
b3bce0d13a [Example] Fixed examples/cpp/health test (#38873)
Starting with Protobuf v30, the `DebugString` output has become "keep-changing" causing our example tests, which depend on its exact output string, to fail. To ensure consistent test output, I've replaced the use of `DebugString` with direct member access & manual formatting.

Closes #38873

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38873 from veblush:protobuf-example ccda8eb9fb0c9b6e7c9ec9570e21c8bf61edb244
PiperOrigin-RevId: 731834283
2025-02-27 13:02:46 -08:00
AJ Heller
11bfbb8420 [EventEngine] Add SetDefaultEventEngine API (and friends) (#38316)
Closes #38316

PiperOrigin-RevId: 716392744
2025-01-16 15:07:02 -08:00
AJ Heller
478b4c0fba [C++17] Replace absl::optional with std::optional (#38420)
Closes #38420

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38420 from drfloob:cpp17-optional 7f276aaa3c493a2ea7f4f1766da975e083914a5b
PiperOrigin-RevId: 715081837
2025-01-13 13:13:38 -08:00
Esun Kim
dc65036957 [C++] Transition to C++17 (CMake) (#38335)
CMake needs following two changes which were missed part from https://github.com/grpc/grpc/pull/37919 to make CMake use C++17.
- **Explicitly require C++17 for gRPC targets using `cxx_std_17`**: This ensures that gRPC build targets are built with the correct C++17 support.
- **Enforce C++17 for all CMake invocations using `CMAKE_CXX_STANDARD=17`**: This is necessary due to Abseil's API changes depending on the C++ standard used. (e.g. Abseil's `absl::string_view` is implemented differently depending on the C++ standard. Before C++17, it's a distinct type. From C++17 onwards, it's simply an alias for `std::string_view`.) To maintain consistency and avoid build errors, all CMake builds (except particular build tests targetting C++20 or C++23) are now configured to use C++17.

The requirement of C++17 for building gRPC should be documented in the release notes and build instructions.

Closes #38335

PiperOrigin-RevId: 712926964
2025-01-07 08:48:11 -08:00
RomantsovS
9b77138b71 examples/cpp/route_guide add missing command line parsing (#37857)
The gRPC basic turorial says to call the following command to run the server `./route_guide_server --db_path=path/to/route_guide_db.json`

But the server and client do not parse command line arguments and they always use default value `route_guide_db.json`. Thus the example only works if we run it from `examples/cpp/route_guide` dir. Otherwise we get the following error: `helper.cc:49] Failed to open route_guide_db.json
Aborted (core dumped)`

Add
`absl::ParseCommandLine(argc, argv);`
to both server and client `main` similar to `route_guide_callback_server.cc`

Closes #37857

PiperOrigin-RevId: 709154601
2024-12-23 14:41:20 -08:00
Esun Kim
93b29607cc [C++] Transition to C++17 (#37919)
This bumps the minimum version of C++ to 17 from 14 per https://github.com/grpc/proposal/blob/master/L120-requiring-cpp17.md

Changes:
- Used C++17 instead of C++14 when building gRPC.
- Disabled `modernize-unary-static-assert` clang-tidy rule for the smooth transition. This rule will be re-enabled in a future update, along with a fix to address any identified issues.
- Added a post-install script for XCode/Cocoapod examples to enforce the use of C++17 across all projects, preventing build errors. (I'd like to have a better solution here but couldn't find it)

Closes #37919

PiperOrigin-RevId: 709073401
2024-12-23 08:53:24 -08:00
Yash Tibrewal
36e534d2a3 [Examples] Remove grpcpp_admin dependency (#38196)
Closes #38196

PiperOrigin-RevId: 700394472
2024-11-26 10:55:19 -08:00
Yash Tibrewal
989fed6181 [CSM] Use xds-enabled server and xds credentials in examples (#38192)
Closes #38192

PiperOrigin-RevId: 700135745
2024-11-25 16:35:24 -08:00
Yash Tibrewal
c333d60fcd [OTel] Set prometheus exporter option to populate otel scope (#38170)
Fix #38169

Closes #38170

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/38170 from yashykt:OpenTelMetricsOptions 8ea4ed82ede26552eb6d9381a621dad01bb8e0d7
PiperOrigin-RevId: 698849889
2024-11-21 11:17:44 -08:00
Mark D. Roth
55b1ae9700 [build] replace grpc_proto_library rules with separate proto_library/cc_proto_library/cc_grpc_library rules (#37943)
Closes #37943

PiperOrigin-RevId: 691538475
2024-10-30 13:45:41 -07:00
Esun Kim
260b41b9cd [Apple/Build] Bumped iOS to 11, OSX to 10.14, tvOS to 13.0 (#37931)
To prepare for the upcoming upgrade to C++17, the following changes were made:

Increased minimum supported operating system versions:
- iOS: 11 (previously 10)
- macOS: 10.14 (previously 10.12)
- tvOS: 13.0 (previously 12.0)

In addition to this, version requirements across different projects were updated to use these for consistency.

Closes #37931

PiperOrigin-RevId: 686519641
2024-10-16 08:39:21 -07:00
Nolasco Napoleão
48265637c4 Fix readme (#37664)
Corrects bazel run command in README.
It does not match the bazel command in the BUILD file.

<!--

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 #37664

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37664 from nolasconapoleao:fix_interceptor_readme 42d828f2ec1423b8ced0b000532efabbc1af7fde
PiperOrigin-RevId: 686223940
2024-10-15 13:43:34 -07:00
Nathan Baulch
b2a05bebe0 [maintenance] Fix cpp typos (#37755)
Continuation of #37541 but focused on C++.

Closes #37755

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37755 from NathanBaulch:typos-cpp 9a7fd9d65fa97a689d529772534df1a501031e9f
PiperOrigin-RevId: 684600898
2024-10-10 15:37:18 -07:00
Kannan J
bac52d8d52 Change the arg name used by XDS client example to indicate secure mode. (#37776)
Change flag used by the xds client example from --secure to --xds-creds. This woul
d be consistent with the [user guide](https://cloud.google.com/service-mesh/docs/service-routing/security-proxyless-setup#c++_2) where it says to use --xds-creds. It would also make it consistnt with other language examples -x the [Python example xds client](https://github.com/grpc/grpc/blob/master/examples/python/xds/client.py#L47) and the [Java example xds client](https://github.com/grpc/grpc-java/blob/master/examples/example-xds/src/main/java/io/grpc/examples/helloworldxds/XdsHelloWorldClient.java#L74) .

Closes #37776

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37776 from kannanjgithub:fix_xds_arg 0f7b6653662daba1771a156caca9f251367456da
PiperOrigin-RevId: 684588418
2024-10-10 14:59:04 -07:00
Craig Tiller
dbb5164ac7 [clang-format] Remove custom clang-format rules for include ordering (#37820)
Closes #37820

PiperOrigin-RevId: 682352913
2024-10-04 09:44:20 -07:00
Yash Tibrewal
74e640341d [CSM O11y] Example logs (#37823)
Closes #37823

PiperOrigin-RevId: 681149244
2024-10-01 13:44:53 -07:00
Esun Kim
a49d450a54 [Build] Bumped the minimum version of cmake (#37702)
Per https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md, the minimum version of cmake to support is 3.16 so let's change our cmake builds' requirements accordingly.

Closes #37702

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37702 from veblush:cmake316 bb4ed1a1be5e9374980c922aac3dc1ccd27d1266
PiperOrigin-RevId: 680639191
2024-09-30 10:55:14 -07:00
Esun Kim
e4a422ba43 [Deps] Upgrade protobuf to 28.1 (#37682)
Regular protobuf upgrade from 27.2 to 28.1 along with the required change to accommodate https://github.com/protocolbuffers/protobuf/pull/17285

Closes #37682

PiperOrigin-RevId: 678428936
2024-09-24 16:03:14 -07:00
Kannan J
e11336112a Docker files for xds example server and client for C++. (#37778)
We need to create userguide examples for Xds not involving Observability and currently only the csm observability example has a docker image.

Closes #37778

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37778 from kannanjgithub:docker_xds_example_cpp bc91c8d5da04b1f6e9eef6e85c2f9a7d25fb716e
PiperOrigin-RevId: 678362755
2024-09-24 12:59:58 -07:00
Eugene Ostroukhov
e88ac072b7 [sample] Client-side flow control (#37604)
Closes #37604

PiperOrigin-RevId: 677954309
2024-09-23 15:09:11 -07:00
Mark D. Roth
f6c57b6384 [reorg] move a bunch of stuff to src/core/util (#36792)
The following files have been moved:
- src/core/lib/avl/*
- src/core/lib/backoff/*
- src/core/lib/debug/event_log*
- src/core/lib/iomgr/gethostname*
- src/core/lib/iomgr/grpc_if_nametoindex*
- src/core/lib/matchers/*
- src/core/lib/uri/* (renamed from uri_parser.* to uri.*)
- src/core/lib/gprpp/* (existing src/core/util/time.cc was renamed to gpr_time.cc to avoid conflict)

Closes #36792

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36792 from markdroth:reorg_util d4e8996f481c611ffbb06a8b04924ff81bc1bc2b
PiperOrigin-RevId: 676947640
2024-09-20 13:19:02 -07:00
Eugene Ostroukhov
40870a9f26 [samples] Server flow control example (#37591)
Closes #37591

PiperOrigin-RevId: 670722178
2024-09-03 15:14:04 -07:00
Nathan Baulch
ccd250aa70 Fix minor typos (#37450)
Just thought I'd contribute some typo fixes I stumbled upon. Nothing controversial (hopefully), just 74 simple fixes.

Use the following command to get a quick and dirty summary of the specific corrections made:
```shell
git diff HEAD^! --word-diff-regex='\w+' -U0 \
  | grep -E '\[\-.*\-\]\{\+.*\+\}' \
  | sed -r 's/.*\[\-(.*)\-\]\{\+(.*)\+\}.*/\1 \2/' \
  | sort | uniq -c | sort -n
```

FWIW, the top typos are:
* satisifed (8)
* uncommited (7)
* tranparent (7)
* expecially (3)
* recieves (3)
* correponding (2)
* slighly (2)
* wierdly (2)

Closes #37450

PiperOrigin-RevId: 665459663
2024-08-20 11:47:57 -07:00
Tanvi Jagtap
3c928436b4 [Gpr_To_Absl_Logging] Remove logging header from example and test/cpp folder (#37488)
[Gpr_To_Absl_Logging] Remove logging header from example and test/cpp folder

Closes #37488

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37488 from tanvi-jagtap:remove_header_examples 1423ee77fff3136f3157993c07a5288552768e0d
PiperOrigin-RevId: 663597077
2024-08-15 22:13:08 -07:00
Yash Tibrewal
530bb89826 [OTel] Remove unnecessary comment from codelab (#37403)
Closes #37403

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37403 from yashykt:OTelCodelab bd282f445991d7df8cedbc789ed01e3e8bc51c23
PiperOrigin-RevId: 659738193
2024-08-05 17:35:46 -07:00
Yash Tibrewal
3e704c7552 [codelab] Add a codelab for gRPC C++ OTel plugin (#37318)
Closes #37318

PiperOrigin-RevId: 658586660
2024-08-01 17:04:28 -07:00
Eugene Ostroukhov
e97d83ca8a [examples] Add route guide callback server/client to CMakeLists.txt (#37369)
Closes #37369

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/37369 from eugeneo:fix-route-guide-callback-cmake 6c6696f2e5f732e29708ac4df82b2035966216f8
PiperOrigin-RevId: 658558458
2024-08-01 15:28:21 -07:00
Michael
c4bbaa25f8 Fix Typos In Docs & Code Comments (#37170)
There are several typos in files within the ./examples/* directory, so just a PR to fix them

Closes #37170

PiperOrigin-RevId: 650818587
2024-07-09 18:25:39 -07:00
Yijie Ma
1913e16526 [example] Add C++ retry example (#37034)
<!--

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 #37034

PiperOrigin-RevId: 646276954
2024-06-24 17:44:14 -07:00
Yash Tibrewal
57fb13dfc2 [example] Update RouteGuide example (#36958)
Simple change to stop writing if `ok` is false in `OnWriteDone()`

Closes #36958

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36958 from yashykt:UpdateRouteGuideExample cd5b066350a6b479caeb375b2c47cd387fb8f6a6
PiperOrigin-RevId: 644471350
2024-06-18 12:18:31 -07:00
Yash Tibrewal
1071ada87c [Example] Update route_guide example (#36930)
The intention behind this PR is to improve the example to aid the upcoming callback API guide.

Also fixes #25823

Closes #36930

PiperOrigin-RevId: 644166441
2024-06-17 16:20:44 -07:00
Esun Kim
65be93cae3 [Example] C++ Auth/SSL example (#36842)
Adding a new SSL example.

Closes #36842

PiperOrigin-RevId: 642310656
2024-06-11 10:21:03 -07:00
Yash Tibrewal
cb6eaeb4f0 [CSM O11y] Follow-up from #36806 (#36823)
Closes #36823

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36823 from yashykt:CsmObsEgFollowup b5d0dcd455039c722b14ede5e569f116f53a6c66
PiperOrigin-RevId: 640632444
2024-06-05 13:36:16 -07:00
Yash Tibrewal
d110960d56 [CSM O11y] Add example without Stateful Session Affinity (#36806)
Fork the existing CSM example and just keep the observability parts.

Closes #36806

PiperOrigin-RevId: 640580476
2024-06-05 11:01:42 -07:00
Yash Tibrewal
ac303a09f6 [OTel] Generate pkg-config file for grpcpp_otel_plugin (#36686)
Public Changes -
* Add a pkgconfig installer for `grpcpp_otel_plugin`

Example Changes -
* Add example of how to use the pkgconfig for `grpcpp_otel_plugin` with the existing OpenTelemetry example.
* Add another OpenTelemetry example that uses OTel's OStream exporter. This makes it easier to test the pkgconfig file for `grpcpp_otel_plugin` since the OStream exporter does not require any additional dependencies, as opposed to the Prometheus exporter.

Test changes -
* Modify `run_distrib_test_cmake_pkgconfig.sh` test to install opentelemetry and build the example with the OStream exporter.

Closes #36686

PiperOrigin-RevId: 636965475
2024-05-24 10:41:11 -07:00
Yash Tibrewal
2fb9e99f47 [OTel] Add latency view to example (#36601)
Closes #36601

PiperOrigin-RevId: 633373861
2024-05-13 16:59:48 -07:00
Yijie Ma
c3a077e184 [examples/cpp] Fix missing parentheses (#36382)
Fix https://github.com/grpc/grpc/issues/36367.

<!--

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 #36382

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36382 from yijiem:fix-example-cmake 54521e87a1e04496642423bfa8b6586063d848b6
PiperOrigin-RevId: 625469934
2024-04-17 01:22:51 +00:00
Tanvi Jagtap
38fd697579 [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36359)
<!--

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 #36359

PiperOrigin-RevId: 625183028
2024-04-15 20:56:16 -07:00
Tanvi Jagtap
fc09bb43b7 [grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging GPR_ASSERT (#36327)
[grpc][Gpr_To_Absl_Logging] Migrating from gpr to absl logging

go/gpr_to_absl_logs

Replacing GPR_ASSERT with absl CHECK

GPR_ASSERT http://google3/third_party/grpc/include/grpc/support/log.h?q=symbol%3A%5CbGPR_ASSERT%5Cb%20case%3Ayes

CHECK http://google3/third_party/absl/log/check.h?q=symbol%3A%5CbCHECK%5Cb%20case%3Ayes

<!--

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 #36327

PiperOrigin-RevId: 623851813
2024-04-11 09:44:44 -07:00
Eugene Ostroukhov
33f56657d2 [Samples] Health checking example (#36235)
Closes #36235

PiperOrigin-RevId: 623204716
2024-04-09 10:14:18 -07:00