All Questions
Tagged with micrometer spring-micrometer
210 questions
0
votes
1
answer
88
views
Propagate new micrometer tracing context to Reactor Mono
Processing the message from SQS - which has initial traceId in the message and wanted to use the same traceId while processing the message, but unable to reset the traceId in the tracing context. we ...
-1
votes
1
answer
49
views
Tracing per endpoint using Spring Boot and micrometer
I have a REST API which exposes two endpoints.
Endpoint 1 is a low traffic, but mission critical. We need to trace everything from the controller layer all the way to the repository.
Endpoint 2 has ...
-1
votes
1
answer
41
views
Spotbugs + Java: EI_EXPOSE_REP2 may expose internal representation by storing an externally mutable object into MyService.observationRegistry
Small question regarding a Spotbugs finding I am having a hard time fixing.
In this super simple class:
import io.micrometer.observation.ObservationRegistry;
@Service
public final class MyService {
...
0
votes
1
answer
42
views
Is there way to persist traces on a disk instead of sending them to Zipkin?
I have spring boot 3.4 application configured for metrics.
I've added dependencies:
implementation("io.micrometer:micrometer-tracing-bridge-otel")
implementation("io....
0
votes
1
answer
81
views
How to put argument values to traces of method annotated with @Observed
I have a method annotated with @Observed annotation:
@Observed(
name = "foo",
contextualName = "foo",
)
fun foo(arg1: String, arg2: Integer){...}
When I go to Zipkin I see ...
0
votes
0
answers
52
views
Spring Webflux + Micrometer: difference between .tap(Micrometer.observation(observationRegistry)) before and after the operation to measure
I would like to generate metrics (time) and traces for a reactive operation.
Here is the reactive operation, very straightforward:
@GetMapping("/question")
Flux<String> ...
0
votes
0
answers
116
views
Spring Boot 3.4 ECS Logging and Micrometer Tracing Discrepancy
Environment
Spring Boot 3.4
ECS Structured Logging (logging.structured.format.console=ecs)
Micrometer Tracing with Brave (io.micrometer:micrometer-tracing-bridge-brave)
Issue Description
I've ...
0
votes
0
answers
88
views
Spring boot 3 with micrometer 1.4+, how to skip tracing but continue to report metrics
While upgrading to Spring boot 3.4 I'm struggling to figure out how to "only" skip tracing for certain uris/paths while continuing to report metrics.
For some endpoints like actuators and ...
0
votes
0
answers
71
views
Intermittent Spring Boot micrometer failed to send metrics to elastic: premature EOF after Elastic 8.16 upgrade
I am using spring boot 3.3.6, looks like it is using micrometer-elastic-registry:1.13.6. I didn't see this errors until I upgrade Elastic from 8.11.4 to 8.16. There were no changes to anything else so ...
0
votes
0
answers
100
views
Custom WebClient Metrics Tag From The MDC
I am trying to add a custom tag to the http.client.requests WebClient metrics that are provided by Spring Boot. I have a value that I have placed in the MDC which I want to use for this custom tag. My ...
0
votes
0
answers
158
views
SpringBoot 3 application does not creating traceId and spanId when micrometer dependency is referred from another project
I'm trying to generate traceId and spanId in my application. However I've kept io.micrometer dependency in another common module (which does not have main). when I use common-modules jar in my ...
0
votes
1
answer
53
views
What is the difference between getAsyncExecutor and threadPoolTaskScheduler in Spring MVC ASyncConfigurer?
Could someone please tell me the difference between getAsyncExecutor and threadPoolTaskScheduler, as explained in the spring async-instrumentation document?
I created the config below, as mentioned in ...
0
votes
1
answer
57
views
How to overwrite @TimedAspect from micrometer.core for WebFlux
TimedAspect catches errors by try/catch that doesn't work in Mono/Flux world. (success calls are okey)
Or how i can fix, for catching errors in WebFlux + GraphQl with my own attributes in metrics (for ...
0
votes
0
answers
130
views
Set new trace Id for each loop iteration instead of using existing trace id
I have a spring boot 3.1.x application with dependency on micrometer-tracing and micrometer-tracing-bridge-otel libraries.
There is a service bean that sends multiple http requests to a different ...
1
vote
0
answers
160
views
Configure Spring Boot to expose all Actuator endpoints on one port while serving Micrometer metrics on a different port
I'm working on a Spring Boot application where I want to achieve the following:
All Actuator endpoints (like /actuator/health, /actuator/info, etc.) should be exposed on the default application port (...