Accessing `grpc_core::global_stats()`

10 views
Skip to first unread message

Davor Cubranic

unread,
Nov 1, 2022, 8:29:55 PM11/1/22
to grpc.io
Hello,

In my application, I'd like to be able to periodically collect metrics on the gRPC internals from grpc_core::GlobalStats` struct. I found a test (test/core/end2end/tests/simple_request.cc) where these are accessed with the call `grpc_core::global_stats()`; however, the unit test uses internal include files ("src/core/lib/debug/stats_data.h"), which aren't part of the public API.

Is there another way to gain access to this struct from library clients?

Thanks,

Davor
Reply all
Reply to author
Forward
0 new messages