You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2024/12/03 10:54:00 UTC

[jira] [Commented] (CAMEL-21504) MicrometerTagsAutoConfiguration class puts http method in uri tag

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

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

You cannot have full uris as they can be dynamic and cause too many unique values for the observability tools. So it has to be limited - but could possible be the uri base path.

 

> 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
>
> [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)