Skip to content

Better server route metrics labels and trace operation names #2284

Open
@jtlisi

Description

@jtlisi

I recently read https://www.robustperception.io/prometheus-middleware-for-gorilla-mux and noticed the usage of the actual url path was used with forward slashes in the label. I may be alone in this but I think having labels with the actual URL and using the actual url for operation name in a trace is more ergonomic than the underscore.

For example:

HTTP GET - api_prom_api_v1_query_range
vs
HTTP GET - /api/prom/api/v1/query_range

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions