We use it for naming properties (eg
grpc.client.applicationName.ServiceName.interceptor.retry.methodName.maxRetries),
being able to slice and dice metrics based on services and methods
separately, and being able to use ServiceDescriptor.findMethodByName (if
there were a way to go directly from io.grpc.MethodDescriptor to
com.google.protobuf.Descriptors.MethodDescriptor, this use case would go
away).

Thanks,
Noel

On Wed, Jan 18, 2017 at 10:16 AM, Carl Mastrangelo <[email protected]>
wrote:

> We keep them together because that is what is going to be sent to the
> server.  We don't have such a strong split between methods and services;
> services are a lightweight way of grouping methods together.
>
> Can you describe what you would like to use the simple method name for?
>
>
> On Tuesday, January 17, 2017 at 4:07:52 PM UTC-8, Noel Yap wrote:
>>
>> We have a need to get the simple method name from MethodDescriptor. For
>> example, the simple service name of service/method is method. This can
>> be implemented using extractFullServiceName but sometimes we want both
>> the full service name as well as the simple method name and implementing
>> extractSimpleMethodName in terms of extractFullServiceName would mean
>> searching for / at least twice through the full method name. This can be
>> avoided if MethodDescriptor stored the full service name and the simple
>> method name separately. Before I start working on a PR, I'd like to know if
>> this is a change the team would be open to and, if so, any other
>> information that might be helpful.
>>
>> Thanks,
>> Noel
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CALa_nQ%3D%2BmJZrZp%3D1EL06oGJ9cX9nLP988G4K7G%2BdTjLiMY8v0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to