Esun Kim
c523bdac1e
[C++] Added a cord support to gRPC protobuf serializer ( #32617 )
...
As Protobuf is going to support Cord to reduce memory copy when
[de]serializing Cord fields, gRPC is going to leverage it. This
implementation is based on the internal one but it's slightly modified
to use the public APIs of Cord. only
2 years ago
Yash Tibrewal
bf1a26cde8
GcpObservability: Add client api latency ( #32645 )
...
This PR adds the view `grpc.io/client/api_latency` for GCP Observability
which aims to collect the end-to-end time taken by a call.
Changes made to support this -
1) A global interceptor factory registration is created for stats
plugins.
2) OpenCensus plugin now provides a new interceptor that's responsible
for collecting the new latency.
3) Gcp Observability registers this plugin.
4) A new OpenCensus measurement and view is created for api latency.
Note that this is internal as of now, since it's not clear if it should
be exposed as public experimental API. Leaving that decision for the
future.
<!--
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.
-->
2 years ago
Yijie Ma
f99b8b5bc4
Convert c-style comments to C++-style comments ( #31923 )
...
* baseline
* fix clang-tidy
* manually revert these files
* manually fixup at eof
* revert 2 more files
* change check_deprecated_grpc++.py
* change end2end_defs.include template
* fix check_include_guards.py
* untrack tools/distrib/python/convert_cstyle_comments_to_cpp.py
not yet ready to be submitted
* fix
yapf check_include_guards.py
remove a space...
* fix version.cc.template
* fix version_info.h.template
2 years ago
Cheng-Yu Chung
e28419f1f9
[cleanups] Remove `class CoreCodegen` and `g_core_codegen_interface` ( #31875 )
...
* Delete `g_core_codegen_interface`
* Automated change: Fix sanity tests
* Fix
* Update
2 years ago
Cheng-Yu Chung
9a7e77318b
[cleanups] Remove `include/grpc/impl/codegen/grpc_types.h` ( #31835 )
...
* Remove `include/grpc/impl/codegen/grpc_types.h`
* Automated change: Fix sanity tests
* Fix typo
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
f03304b963
[cleanups] Remove functions in `class CoreCodegen` ( #31837 )
...
* Clean up `assert_fail()`
* Clean up `ok()` and `cancel()`
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
4e90f43a75
Remove functions in `class CoreCodegen` ( #31796 )
...
* Update include
* Clean up `grpc_empty_slice()`
* Clean up `grpc_slice_malloc()`
* Clean up `grpc_slice_unref()`
* Clean up `grpc_slice_ref()`
* Clean up `grpc_slice_split_tail()`
* Clean up `grpc_slice_split_head()`
* Clean up `grpc_slice_sub()`
* Clean up `grpc_slice_buffer_add()`
* Clean up `grpc_slice_buffer_add_indexed()`
* Clean up `grpc_slice_buffer_pop()`
* Clean up `grpc_slice_from_static_buffer()`
* Clean up `grpc_slice_from_copied_buffer()`
* Clean up `grpc_metadata_array_init()`
* Clean up `grpc_metadata_array_destroy()`
* Clean up `gpr_inf_future()`
* Clean up `gpr_time_0()`
2 years ago
Cheng-Yu Chung
1d968a36aa
Remove functions in `class CoreCodegen` ( #31767 )
...
* Clean up `grpc_byte_buffer_copy()`
* Clean up `grpc_byte_buffer_destroy()`
* Clean up `grpc_byte_buffer_length()`
* Clean up `grpc_byte_buffer_reader_init()`
* Clean up `grpc_byte_buffer_reader_destroy()`
* Clean up `grpc_byte_buffer_reader_next()`
* Clean up `grpc_byte_buffer_reader_peek()`
* Clean up `grpc_raw_byte_buffer_create()`
* Clean up `grpc_slice_new_with_user_data()`
* Clean up `grpc_slice_new_with_len()`
* Clean up `grpc_call_start_batch()`
* Clean up `grpc_call_cancel_with_status()`
* Clean up `grpc_call_failed_before_recv_message()`
* Clean up `grpc_call_ref()`
* Clean up `grpc_call_unref()`
* Clean up `grpc_call_error_to_string()`
* Fix typos
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
e9b287997a
Remove `include/grpcpp/impl/codegen/sync.h` ( #31545 )
...
* Remove `include/grpcpp/impl/codegen/sync.h`
* Fix sanity tests
2 years ago
Cheng-Yu Chung
e83d69bdf2
Remove `include/grpcpp/impl/codegen/metadata_map.h` ( #31531 )
...
* Remove `include/grpcpp/impl/codegen/metadata_map.h`
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
405de7ac72
Remove `include/grpcpp/impl/codegen/status.h` ( #31285 )
...
* Remove `include/grpcpp/impl/codegen/status.h`
* Include removing status_code_enum
* Update
* Update
* Update zlib (#31356 ) (#31357 )
To mitigate CVE-2022-37434
* Update
Co-authored-by: Mikhail Lappo <miklelappo@users.noreply.github.com>
2 years ago
Cheng-Yu Chung
c91c2fbd1a
Remove `include/grpcpp/impl/codegen/completion_queue_tag.h` ( #31320 )
...
* Remove `include/grpcpp/impl/codegen/completion_queue_tag.h`
* Automated change: Fix sanity tests
2 years ago
Cheng-Yu Chung
37c6662919
Remove `include/grpcpp/impl/codegen/callback_common.h` ( #31311 )
...
* Remove `include/grpcpp/impl/codegen/callback_common.h`
* Update
2 years ago
Cheng-Yu Chung
08ee2a3487
Remove `include/grpcpp/impl/codegen/call_op_set.h` ( #31310 )
2 years ago
Cheng-Yu Chung
e60140676a
Remove `include/grpcpp/impl/codegen/channel_interface.h` ( #31312 )
...
* Remove `include/grpcpp/impl/codegen/channel_interface.h`
* Update
2 years ago
Cheng-Yu Chung
c65348879a
Remove `include/grpcpp/impl/codegen/time.h` ( #31290 )
2 years ago
Cheng-Yu Chung
493b961dfb
Remove `include/grpcpp/impl/codegen/sync_stream.h` ( #31289 )
2 years ago
Cheng-Yu Chung
f4b25ab837
Remove `include/grpcpp/impl/codegen/stub_options.h` ( #31287 )
2 years ago
Cheng-Yu Chung
34b1633944
Remove `include/grpcpp/impl/codegen/string_ref.h` ( #31286 )
2 years ago
Cheng-Yu Chung
8c7cb57c02
Revert "Revert "Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h`"" ( #31391 )" ( #31396 )
...
This reverts commit 7827868762
.
2 years ago
Cheng-Yu Chung
7827868762
Revert "Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h`"" ( #31391 )
...
* Revert "Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h` (#31284 )" (#31387 )"
This reverts commit 1a9ce63199
.
* Update
2 years ago
Cheng-Yu Chung
1a9ce63199
Revert "Remove `include/grpcpp/impl/codegen/status_code_enum.h` ( #31284 )" ( #31387 )
...
This reverts commit 3981105be6
.
Co-authored-by: Alisha Nanda <alishananda@google.com>
2 years ago
Cheng-Yu Chung
3981105be6
Remove `include/grpcpp/impl/codegen/status_code_enum.h` ( #31284 )
2 years ago
Cheng-Yu Chung
ad04dc3766
Remove `include/grpcpp/impl/codegen/slice.h` ( #31283 )
2 years ago
Cheng-Yu Chung
7a2c28c7b9
Remove `include/grpcpp/impl/codegen/server_interceptor.h` ( #31281 )
2 years ago
Cheng-Yu Chung
d699b574a8
Remove `include/grpcpp/impl/codegen/server_callback.h` ( #31279 )
2 years ago
Cheng-Yu Chung
9125b6ee66
Remove `include/grpcpp/impl/codegen/proto_buffer_writer.h` ( #31268 )
2 years ago
Cheng-Yu Chung
113422ff8b
Remove `include/grpcpp/impl/codegen/proto_buffer_reader.h` ( #31261 )
2 years ago
Cheng-Yu Chung
d76c6f61f0
Remove `include/grpcpp/impl/codegen/method_handler.h` ( #31249 )
2 years ago
Cheng-Yu Chung
488f17eb46
Remove `include/grpcpp/impl/codegen/message_allocator.h` ( #31246 )
2 years ago
Cheng-Yu Chung
279ec5ab45
Remove `include/grpcpp/impl/codegen/interceptor.h` ( #31245 )
2 years ago
Cheng-Yu Chung
a192f155b9
Remove `include/grpcpp/impl/codegen/config.h` ( #31061 )
...
* Remove `include/grpcpp/impl/codegen/config.h`
* Update
2 years ago
Cheng-Yu Chung
4ba0f9afb5
Revert "Revert "Remove `include/grpcpp/impl/codegen/client_callback.h` ( #31005 )" ( #31079 )" ( #31087 )
...
This reverts commit da08fe1d6f
.
2 years ago
Craig Tiller
da08fe1d6f
Revert "Remove `include/grpcpp/impl/codegen/client_callback.h` ( #31005 )" ( #31079 )
...
This reverts commit 17f515744f
.
3 years ago
Cheng-Yu Chung
0cb5faf8e4
Remove `include/grpcpp/impl/codegen/client_interceptor.h` ( #31054 )
...
* Remove `include/grpcpp/impl/codegen/client_interceptor.h`
* Update comment
3 years ago
Cheng-Yu Chung
17f515744f
Remove `include/grpcpp/impl/codegen/client_callback.h` ( #31005 )
3 years ago
Cheng-Yu Chung
7cb9731e4e
Remove `include/grpcpp/impl/codegen/call_op_set_interface.h` ( #30990 )
3 years ago
Cheng-Yu Chung
3236174176
Remove `include/grpcpp/impl/codegen/byte_buffer.h` ( #30948 )
...
* Remove `include/grpcpp/impl/codegen/byte_buffer.h`
* Update
3 years ago
Cheng-Yu Chung
b765b06155
Remove `include/grpcpp/impl/codegen/async_stream.h` ( #30941 )
...
* Remove `include/grpcpp/impl/codegen/async_stream.h`
* Fix
* Fix
* Update
3 years ago
Cheng-Yu Chung
cb3d7a9e9e
Revert "Revert "Remove `include/grpcpp/impl/codegen/async_unary_call.h`"" ( #30955 )
...
* Revert "Revert "Remove `include/grpcpp/impl/codegen/async_unary_call.h` (#30945 )" (#30950 )"
This reverts commit 0c454fa875
.
* Fix
3 years ago
Craig Tiller
0c454fa875
Revert "Remove `include/grpcpp/impl/codegen/async_unary_call.h` ( #30945 )" ( #30950 )
...
This reverts commit 7dbc73d4f3
.
3 years ago
Cheng-Yu Chung
7dbc73d4f3
Remove `include/grpcpp/impl/codegen/async_unary_call.h` ( #30945 )
3 years ago
Craig Tiller
28316341bf
Annotate impl/codegen with IWYU pragmas ( #27252 )
...
* Add a tool to annotate impl/codegen with IWYU pragmas
* xx
* oops
* fmt
* x
* fix wrong direction bug
* use defaultdict
* better annotations
* better annotations
* Automated change: Fix sanity tests
Co-authored-by: ctiller <ctiller@users.noreply.github.com>
4 years ago
Craig Tiller
03bdfa4a74
Make socket mutators work for server connections ( #26328 )
...
* Make socket mutators work for server connections
* compile fix
* compile fix
* compile fix
* compile fix
* cleanup
* Revert "cleanup"
This reverts commit 480fcc600a
.
* Revert "Revert "cleanup""
This reverts commit 29fbc349d2
.
4 years ago
AJ Heller
2ca08a023e
Document ownership transfer in ChannelArguments::SetPointerWithVtable ( #25527 )
4 years ago
Greg Miller
7d4d516511
wip: change error_details functions to templates
4 years ago
Esun Kim
decc199ca8
Fix by clang-tidy
4 years ago
Karthik Ravi Shankar
c713a11982
Delete some files from previous PR
...
Some files were left off from https://github.com/grpc/grpc/pull/24082
This PR completes the cleanup.
5 years ago
Karthik Ravi Shankar
5d73e3af27
Remove error_details_impl.h
...
https://github.com/grpc/grpc/pull/23601 should have removed
error_details_impl.h, but it did not.
This PR fixes this oversight.
5 years ago
Karthik Ravi Shankar
30f7710d4a
Move ChannelArguments from ::grpc_impl to ::grpc
...
Reverts: https://github.com/grpc/grpc/pull/18454
5 years ago