[ 
https://issues.apache.org/jira/browse/CAMEL-21504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17902620#comment-17902620
 ] 

Claus Ibsen commented on CAMEL-21504:
-------------------------------------

[~Federico Mariani] something possible to look into for CSB

> camel-spring-boot - MicrometerTagsAutoConfiguration class puts http method in 
> uri tag
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-21504
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21504
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 4.4.4, 4.8.1
>            Reporter: Nikola Dangubic
>            Priority: Minor
>             Fix For: 4.8.3, 4.10.0
>
>
> [MicrometerTagsAutoConfiguration|https://github.com/apache/camel-spring-boot/blob/cf415a2c4dc1e6f7b14412d641e4fefd42786081/components-starter/camel-micrometer-starter/src/main/java/org/apache/camel/component/micrometer/springboot/MicrometerTagsAutoConfiguration.java]
>  probably has copy/paste error where instead of uri it puts http method in 
> map for metrics
> {code:java}
> return KeyValue.of("uri", context.getCarrier().getMethod()); {code}
> and output looks like
> {code:java}
> # TYPE http_server_requests_active_seconds summary
> http_server_requests_active_seconds_count{application="test_metrics",exception="none",method="GET",outcome="SUCCESS",status="200",uri="GET"}
>  0
> http_server_requests_active_seconds_sum{application="test_metrics",exception="none",method="GET",outcome="SUCCESS",status="200",uri="GET"}
>  0.0 {code}
> One would expect uri value for uri tag.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to