Nikola Dangubic created CAMEL-21504:
---------------------------------------
Summary: MicrometerTagsAutoConfiguration class puts method instead
of uri in metrics
Key: CAMEL-21504
URL: https://issues.apache.org/jira/browse/CAMEL-21504
Project: Camel
Issue Type: Bug
Components: camel-spring-boot
Affects Versions: 4.8.1, 4.4.4
Reporter: Nikola Dangubic
[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)