Skip to content

[Opentelemetry metrics] route not being set when registering service #3589

Open

Description

@oscarfh

I am trying to instrument my application that uses Feathers and I noticed that my http.server metrics had route always set to / (I could not see the real path ).

I started the investigation and I noticed that when I create an endpoint using
app.use( "/my-path", (_req, res, _next) => {...})
I can call it and I see in my opentelemetry metrics that there was a call to /my-path.

When I use Services and set the route like this:
app.use( "my-service", MyService)

Then I see the calls on the metrics, but the route is always /.

Is this a known (or expected behavior)?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions