-
Notifications
You must be signed in to change notification settings - Fork 176
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
Logging and Tracing in WildFly server #65
Comments
Any hints on how to get this running |
this works with environment variables. However the issue was that standalone.sh adds JAVA_OPTS="-javaagent:"${JBOSS_HOME}/jboss-modules.jar" if MODULE_OPTS is set to a javagent. Setting MODULE_OPTS is the recommended way. However when I remove jboss-modules.jar then the otlp export works and I can see all the logs. Strange but that seems to be the config that works. |
@srinisubramanian apologies we missed this issue until I got the close notification for it! I haven't tested this myself, but if you specify We should probably document this case, as I assume the default Java docs did not work out of the box for you. fwiw in the future if there's cloud-related issues, https://www.hyperdx.io/support would be your best avenue to get a quick response :) (though in this case, I think it does apply to both sides) |
Followed the instructions and added -javaagent:/opt/app/opentelemetry-javaagent.jar
Added environment variables as export statemetns in standalone.sh which starts wilffly server (this is how I have used many other APM like Glowroot etc).
Even after 10 / 15 mintues traces and logs are not showing up on HyperDX cloud .. am I missing something?
I also tried adding as system properties by changing to otel.exporter.otlp.endpoint etc. That also does not help. Also strange is that I dont see any logs from the otel javaagent also.
The java command shows the -javaagent:/opt/app/opentelemetry-javaagent.jar as a part of it.
The text was updated successfully, but these errors were encountered: