How to enable traceId in health endpoint? #25815
-
At the moment, I am using the following libraries:
Code example:
Unfortunately, when logging into the console on this endpoint, I can see that the traceId=%X{traceId} is empty, whereas it works for any other endpoint. Is there any way to enable this on the health endpoint? If not, is there any workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
/cc @Ladicek, @jmartisk, @radcortez, @xstefank |
Beta Was this translation helpful? Give feedback.
-
I have noticed that one of the code examples uses the @Traced decorator.
Although this works, is there a better way to do this via configuration? I have noticed that there is a property for small-rye to add to application.properties:
Unfortunately, I don't think this is the correct one because I have used it and it doesn't work. |
Beta Was this translation helpful? Give feedback.
I have noticed that one of the code examples uses the @Traced decorator.