Skip to content

better path handling #233

Description

@erez-rabih

I'm trying to use the collector rack middleware with a sinatra app

I have a simple endpoint /add/:num_a/:num_b that takes num_a and num_b and returns their sum

The path label value generated by the collector middleware for that route is path="/add/:id/5 , path="/add/:id/3 ...

I think a batter solution would be to take the matching route pattern and use it as the path value, in my case, I'd expect to have path="/add/:num_a/:num_b

any thoughts about that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions