Reference documentation and code samples for the Cloud Trace API module GRPC::ActiveCallWithTrace.
Stackdriver Trace instrumentation of GRPC by patching GRPC::ActiveCall
class. Intercept each GRPC request and create a Trace span with basic
request information.
Methods
#request_response
defrequest_response(*args,**kwargs)
Override GRPC::ActiveCall#request_response method. Wrap the original
method with a trace span that will get submitted with the overall request
trace span tree.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Trace API - Module GRPC::ActiveCallWithTrace (v0.45.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.45.0 (latest)](/ruby/docs/reference/google-cloud-trace/latest/GRPC-ActiveCallWithTrace)\n- [0.44.1](/ruby/docs/reference/google-cloud-trace/0.44.1/GRPC-ActiveCallWithTrace)\n- [0.43.0](/ruby/docs/reference/google-cloud-trace/0.43.0/GRPC-ActiveCallWithTrace)\n- [0.42.2](/ruby/docs/reference/google-cloud-trace/0.42.2/GRPC-ActiveCallWithTrace)\n- [0.41.4](/ruby/docs/reference/google-cloud-trace/0.41.4/GRPC-ActiveCallWithTrace) \nReference documentation and code samples for the Cloud Trace API module GRPC::ActiveCallWithTrace.\n\nStackdriver Trace instrumentation of GRPC by patching GRPC::ActiveCall\nclass. Intercept each GRPC request and create a Trace span with basic\nrequest information.\n\nMethods\n-------\n\n### #request_response\n\n def request_response(*args, **kwargs)\n\nOverride GRPC::ActiveCall#request_response method. Wrap the original\nmethod with a trace span that will get submitted with the overall request\ntrace span tree.\n\nConstants\n---------\n\n### SPAN_NAME\n\n**value:**\"gRPC request\".freeze"]]