elastic-apm-mule4-agent
elastic-apm-mule4-agent copied to clipboard
Cannot load class 'co.elastic.apm.attach.ElasticApmAttacher'
Hi,when starting mule app, i get the following error.
I installed .jar correctly.Added
And then when i start app i get the error above.
Ty.
Can you try and get any of the example
projects running in your environment? Try the tracing-test
first to see that everything works correctly with your setup. There is also a domain example there.
Hi thank you for you answer.
So i installed jar like this.
Build success.
Imported project in studio.
I didnt do anything to import file, i left it just like that how i imported it.(tracer.xml)
And when i run the application i get the following.
Just to be clear im running this without the elastic.apm.config_file to mule agent? Is that maybe the source of the problem? It's just a fresh maven install of jar, imported your tracing-test and just runing it.Am i missing something? Ty.
Not having the config shouldn't cause this. Try to add this to the pom file:
<dependency>
<groupId>co.elastic.apm</groupId>
<artifactId>apm-agent-attach</artifactId>
<version>1.17.0</version>
</dependency>
Yes with this added to pom.xml i'm able to start the application.Thank you very much.
But got issuse on server in following post. Thank you for help.
Hi, also one thing, so i tried to deploy it to mule server running apm server,and there it can find server but i get the following message in log file when i trigger the endpoint.
But funny thing in Kibana i can see some info in the following.
But there is just some JVM server related stuff, not the actual mule app info.
But the log file is spammed with the above error.
Thank you.
Hi, got it running by adding
<dependency>
<groupId>co.elastic.apm</groupId>
<artifactId>apm-agent-api</artifactId>
<version>1.21.0</version>
</dependency>
Any way to see the actual payload or messages inside, or more data? Thanks
Good to hear you managed to get it working. It doesn't capture message payloads or any additional labels, but it is possible to implement it in the code, similar to how Mule 3 agent captures message headers and properties.
TransactionUtils.java and SpanUtils.java have placeholders where such logic can reside.
Thank you for your help.