Skip to content

Leading slash of URI only for servers #283

Closed
@robachmann

Description

It's just cosmetics but I see that the URI is displayed differently for clients and servers: Servers have a leading slash whereas clients don't:

http_client_requests_duration_seconds_count{app="micrometer-demo",clientName="localhost",instance="0",method="GET",status="200",uri="normal",} 1348.0
http_server_requests_duration_seconds_count{app="micrometer-demo",exception="None",instance="0",method="GET",status="200",uri="/normal",} 2734.0

I think it would make sense to have them formatted the same way, preferably with a leading slash. Or is there a specific reason it is implemented this way?

/about:
springBootVersion = '1.5.9.RELEASE'
springCloudVersion = 'Edgware.RELEASE'
compile 'io.micrometer:micrometer-spring-legacy:1.0.0-rc.5'
compile 'io.micrometer:micrometer-registry-prometheus:1.0.0-rc.5'

Please tell me if you need any further information. Thanks and best,
Roman

Metadata

Assignees

No one assigned

    Labels

    spring-boot changeChange is needed in Spring Boot for this issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions