grpc/include/grpcpp/ext
Yash Tibrewal bf23bb2fa7
Gcp Observability Logging: Batching and Graceful close (#32436)
This PR adds batching support for GCP Observability logging. So instead
of the naive creating a new RPC to cloud logging for each logging event,
we now batch the log events to meet one of the following requirements -
* Batch size of 1000
* Batch memory consumption of 1MB
* A timeout period of 1sec after which we flush the accumulated batch
irrespective of the size.

There can also be cases where for some reason the RPCs fail or the batch
just accumulates to a very large size(100000 entries or 10MB in size).
In such cases, we just log the events with gpr_log instead of just
continuing to accumulate.

Additionally, `GcpObservabilityClose()` has been added to gracefully
shut off logging where we block till all the currently logged events are
flushed. (We might be able to gracefully shut off stats and tracing in
the future too.)

<!--

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.

-->
2023-02-22 22:32:44 -08:00
..
admin_services.h Implement C++ Admin Interface API (#25753) 2021-03-23 09:53:12 -07:00
call_metric_recorder.h Revert "Revert "Revert "Revert "server: introduce ServerMetricRecorde… (#32301) 2023-02-06 12:00:39 -08:00
channelz_service_plugin.h Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
gcp_observability.h Gcp Observability Logging: Batching and Graceful close (#32436) 2023-02-22 22:32:44 -08:00
health_check_service_server_builder_option.h Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
orca_service.h Revert "Revert "Revert "Revert "server: introduce ServerMetricRecorde… (#32301) 2023-02-06 12:00:39 -08:00
proto_server_reflection_plugin.h Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
server_load_reporting.h Convert c-style comments to C++-style comments (#31923) 2022-12-22 23:01:53 -08:00
server_metric_recorder.h Revert "Revert "Revert "Revert "server: introduce ServerMetricRecorde… (#32301) 2023-02-06 12:00:39 -08:00