-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Micrometer Tracing Annotations #36001
Comments
Have you tried to create a |
I have but I haven't managed to get it working. But even if I did the documentation for AOP configuration mentions that it will not work in some cases where Sleuth worked. Additionally you need to do some boilerplate bean creation which is usually done by Spring Boot. Given that Micrometer Tracing is advertised as full flagged replacement for Sleuth I would have expected it to work in the same cases but maybe that is too much to ask. So far migration has been very problematic because of this. |
Could you please provide a minimal sample project to reproduce this?
Could you please tell us more what do you mean by this? Sleuth used the same AOP mechanism (Spring AOP + AspectJ).
Where did you hear/read this? We might need to refine docs/talks: Micrometer Tracing is pretty similar to Sleuth (we copied Sleuth and modified things) but Micrometer Tracing does not have Spring dependencies (so no instrumentation in it).
I'm sorry to hear this, we are definitely interested in feedback about migration pain. |
Here is PR which explicitly mentions that these annotations will not work on the interfaces
Other issue I encountered is that SpanAspect will throw NoSuchMethodException on non public methods. Both of those can be worked around but it is pretty annoying that it doesn't work when it previously did without mention in migration guide
spring-cloud-sleuth and spring-cloud-sleuth-otel both link to this migration guide which reads:
observability-with-spring-boot-3 goes as far as saying:
So my assumption was that after changing to In general it feels like the migration to Micrometer Tracing was pretty rushed as there's a good chunk missing functionality in Spring Boot 3 even half a year later. There's even issue to fill the holes. So my only request would be to fill the hole of missing autoconfiguration for Micrometer Tracing annotations. |
It also mentions why, could you please open an issue in Micrometer Tracing for this?
This might be because of cglib vs. JDK proxy, I think I would open a separate issue in Micrometer Tracing to start.
I don't see it saying/advertising that it would be a "full flagged replacement for Sleuth". What I see is: "got pretty much moved" and " vast majority of places ...", to me this means that most of the things work the same but there are differences which kind of reflects the reality. please let us know if you have ideas for improving the docs, PRs are always welcomed.
I'm sorry this is not what you expected, we are doing or best to make migration easy, though there always will be differences. Some of them are intentional and some of them might be because we made a mistake, pull requests and issues are always welcome. Also to be fair, you are not just doing a major release upgrade but you are moving from one project to another, I think it is a fair assumption to make that maybe there will be things that are different.
We are suggesting most of the users to use the
If you look into those issues there are workarounds for most of them so users can resolve them by creating beans or setting properties. Which is definitely not ideal but not catastrophic either (that's why we are fixing them). Please let us know if you want to help us out and what to open a PR to resolve them. Since it seems this is at least 3 issues together and two of them seems to be in the Micrometer Tracing repo, let me close this and add the |
TL;DR: should be partly superseded by #35191 and partly belong to Micrometer Tracing. |
In version 1.1 Micrometer Tracing ported annotations from Sleuth. To ease the migration from the Spring Boot 2 are there any plans to add support for these annotations?
The text was updated successfully, but these errors were encountered: