-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Set extension properties directly #41244
Conversation
...ment/src/main/java/io/quarkus/observability/deployment/ObservabilityDevServiceProcessor.java
Show resolved
Hide resolved
|
||
@Test | ||
public void testTracing() { | ||
log.info("Testing Grafana ..."); | ||
String response = RestAssured.get("/api/poke?f=100").body().asString(); | ||
log.info("Response: " + response); | ||
GrafanaClient client = new GrafanaClient("http://" + url, "admin", "admin"); | ||
GrafanaClient client = new GrafanaClient(endpoint, "admin", "admin"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work w/o http://
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure, I'm just trying to make things compatible with the previous version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you check / fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the endpoint already includes the http://
part
🙈 The PR is closed and the preview is expired. |
302306d
to
5249b4d
Compare
@alesj @melloware The PR is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
5249b4d
to
cb1f5f6
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
* @param catalog observability catalog. If OpenTelemetry or Micrometer are enabled. | ||
* @return module's config | ||
*/ | ||
T config(ModulesConfiguration configuration, ExtensionsCatalog catalog); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have this one call deprecated by default -- so we don't break existing impls (if there are any ...).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why to deprecate this one?... It's the new method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not this one -- deprecate the old one.
And have the new one call the old one by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about it, but they are needed for different things and I didn't want to mess things too much.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True ... but this way we can don't break any existing ones (if there are some :-) ...
And perhaps add prop names changes to CLI `update command? |
... and we definitely need to mention the name changes in the release notes ... |
I will. I'm not sure about the update command, can you please do it later? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great
Hmmm, why are we having properties outside of the |
@gsmet i think the properties in question can't be changed by user they are dynamically allocated by the system right? |
correct @melloware. |
Even in light of that explanation, I still don't understand why the properties are not under the Quarkus namespace. |
The long explanation... |
Sure, but this is the same argument that people have always used and we always push back against 😉 |
Ok, then I will just say the properties were removed and are not available anymore. |
👍🏼 |
@gsmet removed references to those properties. |
Status for workflow
|
Status for workflow
|
makes me squint seeing we remove quarkus prefix...aren't that prefix used for various config setup? ...is this because these properties are truly devmode internal only / used to decouple different services? should we maybe have another prefix for them or? |
Yes @maxandersen , they are internal properties that should not be changed by users and should not be documented. Therefore, the missing |
You can add such properties as Yes, users could still set the configuration from build time, but since you can always override it, disregarding the one set by the user. When you get to dev mode, because the phase is |
That's why I prefer not even document the properties... Too much work for nothing. :) |
@brunobat apart from those comments I just made, lgtm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's make progress on this, we can still tweak things later if needed.
fixes #41101
There are breaking changes.
The following properties are removed because they are not needed anymore:
quarkus.otel-collector.url
quarkus.grafana.url
The extension will now detect if Micrometer OTLP registry or the OpenTelemetry extension are present and set the relevant properties for the user.