module Labkit::Correlation::GRPC::GRPCCommon
This module is shared between the client and server interceptor middlewares. It is not part of the public API
Constants
- CORRELATION_METADATA_KEY
Public Instance Methods
rpc_split(method)
click to toggle source
# File lib/labkit/correlation/grpc/grpc_common.rb, line 11 def rpc_split(method) owner = method.owner method_name, = owner.rpc_descs.find do |k, _| ::GRPC::GenericService.underscore(k.to_s) == method.name.to_s end method_name ||= "(unknown)" [owner.service_name, method_name] end