Skip to content
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

Micrometer: Router policy should be disabled by default #5028 #5247

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JiriOndrusek
Copy link
Contributor

fixes #5028

@jamesnetherton
Copy link
Contributor

We need to document this change of behavior in the migration guide.

FWIW I'm not convinced this is a good from the perspective of UX or migration from the old MicroProfile Metrics extension where the same config property defaults to true.

@JiriOndrusek
Copy link
Contributor Author

Change in migration doc is part of the PR.
I proposed the PR mainly to see reaction, whether we want this change.
If the change is approved, the same behavior should be proposed to CSB.

@JiriOndrusek
Copy link
Contributor Author

JiriOndrusek commented Sep 1, 2023

FWIW I'm not convinced this is a good from the perspective of UX or migration from the old MicroProfile Metrics extension where the same config property defaults to true.

default true is only in CSB. See https://camel.apache.org/components/3.20.x/micrometer-component.html#_sb_option_camel_metrics_enable-route-policy
plain Camel default value is false (context.addRoutePolicyFactory has to be called). See https://camel.apache.org/components/3.20.x/micrometer-component.html#_using_micrometer_route_policy_factory

@jamesnetherton
Copy link
Contributor

@JiriOndrusek sorry, I introduced some conflicts because I had to rename the migration guide.

@zbendhiba
Copy link
Contributor

Thanks @JiriOndrusek
I'm curious why this should be enabled or disabled by default for Camel-Quarkus ?

@JiriOndrusek
Copy link
Contributor Author

default true is only in CSB. See https://camel.apache.org/components/3.20.x/micrometer-component.html#_sb_option_camel_metrics_enable-route-policy
plain Camel default value is false (context.addRoutePolicyFactory has to be called). See https://camel.apache.org/components/3.20.x/micrometer-component.html#_using_micrometer_route_policy_factory

Just to be consistent with plain camel (where user has to set policy in the code to enable it) -> See https://camel.apache.org/components/3.20.x/micrometer-component.html#_using_micrometer_route_policy_factory

@aldettinger
Copy link
Contributor

No strong opinion. Not sure we need to align with Camel. Aligning Camel Quarkus and Camel Spring Boot looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Micrometer: Router policy should be disabled by default (to be consistent with Camel)
5 participants