OpenLiberty / ci.maven

Maven plugins for managing Liberty profile servers #devops
Apache License 2.0
130 stars 91 forks source link

LMP 3.10 and 3.10.1 do not pickup the change from server.xml #1806

Closed gkwan-ibm closed 8 months ago

gkwan-ibm commented 8 months ago

LMP 3.10 and 3.10.1 do not pickup the change from server.xml. Tried on Mac. LMP 3.9 has no problem.

Steps to reproduce the problem.

- create `system/src/main/resources/META-INF/microprofile-config.properties`

otel.service.name=system otel.sdk.disabled=false


- visit http://localhost:9080/system/properties
- visit http://localhost:16686/
  - You can view the traces for the system service under the Search tab. Select the `system` service in the *Select A Service* menu and click the *Find Traces* button at the end of the section. You’ll see the result as following but not:

![Screenshot 2024-03-12 at 11 34 39 AM](https://github.com/OpenLiberty/ci.maven/assets/29576299/0a086658-eb64-45c0-bd30-6a0d162743a1)
gkwan-ibm commented 8 months ago

workaround: press r in the dev mode console to force restarting the Liberty instance

cherylking commented 8 months ago

I just verified changes to server.xml are picked up by dev mode in version 3.10.1 using another getting started guide.

scottkurz commented 8 months ago

@gkwan-ibm - Not sure if you are saying that the install feature (of the new mp telemetry feature) seems to be happening but it's still not working vs. the feature isn't getting installed at all.

It'd probably help to run with mvn -X logging. Just be sure to redirect it somewhere outside of the original filesystem (e.g. up a level like mvn liberty:-dev -X > ../trace.log so dev mode doesn't react to the log file updates.

gkwan-ibm commented 8 months ago

close