Skip to content

Otel's Method Name is different between gRPC and HttpJson #2502

@lqiu96

Description

@lqiu96

Discovered in the Otel Draft PR: #2500

The Method Name is different between the two transports:
gRPC: Echo.Echo
HttpJson: google.showcase.v1beta1.Echo/Echo.

I believe this is because of the different Regex Matchers used to extract the MethodName:
gRPC:

private static final Pattern FULL_METHOD_NAME_REGEX = Pattern.compile("^.*?([^./]+)/([^./]+)$");

HttpJson:
private static final Pattern FULL_METHOD_NAME_REGEX = Pattern.compile("^(.+)\\.(.+)$");

We should be consistent and pick one way to display the method name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p4type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions