diff options
author | 2018-03-19 13:22:35 -0700 | |
---|---|---|
committer | 2018-03-19 13:22:35 -0700 | |
commit | 3b42f83068618d5888b870874937a185803a2db1 (patch) | |
tree | d2f7edaff548f6459bdf09d687a137b23a024ac3 /include/grpc/grpc.h | |
parent | 9bef1390540e7662b6d941c0a17f136b10ffc084 (diff) |
Revert "Revert "Channel Tracing Implementation; Part 1""
This reverts commit f2bea3725f8218777268decfd37c7b543f839d9f.
Diffstat (limited to 'include/grpc/grpc.h')
-rw-r--r-- | include/grpc/grpc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h index c129a66949..dd8a5d7d5f 100644 --- a/include/grpc/grpc.h +++ b/include/grpc/grpc.h @@ -286,6 +286,14 @@ GRPCAPI grpc_channel* grpc_lame_client_channel_create( /** Close and destroy a grpc channel */ GRPCAPI void grpc_channel_destroy(grpc_channel* channel); +/** Returns the JSON formatted channel trace for this channel. The caller + owns the returned string and is responsible for freeing it. */ +GRPCAPI char* grpc_channel_get_trace(grpc_channel* channel); + +/** Returns the channel uuid, which can be used to look up its trace at a + later time. */ +GRPCAPI intptr_t grpc_channel_get_uuid(grpc_channel* channel); + /** Error handling for grpc_call Most grpc_call functions return a grpc_error. If the error is not GRPC_OK then the operation failed due to some unsatisfied precondition. |