Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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