-
Notifications
You must be signed in to change notification settings - Fork 129
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
Allow disabling all Callback decorators via environment properties #670
Conversation
I feel that it could be useful to have a more general approach to disabling Something like I've needed something like this for Quarkus sometimes… |
I agree, butl all this state is currently a global static. That would need some more extensive refactoring which might not be suitable do do now, while I would need a solution in short term. |
Codecov Report
@@ Coverage Diff @@
## main #670 +/- ##
============================================
- Coverage 90.25% 90.19% -0.07%
- Complexity 2989 2992 +3
============================================
Files 374 374
Lines 11762 11764 +2
Branches 1476 1478 +2
============================================
- Hits 10616 10610 -6
- Misses 584 591 +7
- Partials 562 563 +1
|
Ok we can have this. How about having |
If you prefer I can do that. But maybe it then becomes harder to remove later, assuming some better alternative arises from @FroMage 's ideas? Personally I have no opinion, let me know if you want me to change it :) |
@FroMage any better idea? |
Errrr, no better idea. I guess this depends on which other system properties Mutiny uses, and whether you want to advertise this one. I was more thinking about MP Config myself, but it's more complex. I'll start a discussion on quarkus-dev about this. |
On second thought I think we can keep the property private, and not advertise this too much. Thoughts @cescoffier? |
We don't have to advertise it and keep it private. |
There you go, problem solved ;) |
Here we go! |
thanks all! Looking forward to use this :) |
The
CallbackDecorator
provided by Contex Propagation has a strong impact on performance, and in some contexts unnecessary.It's rather tricky to remove it from classpath, so it would be very handy to have a different option to disable it.
cc/ @jponge @FroMage