I'm instrumenting a Spring Boot Application (Tomcat is used to run the webapp).
Agent is working, I'm getting the metrics. all is good. The only "problem" that I see right now is that the application name is not being set correctly under "Frontends|Apps" - it is just "application", I want to be able to either to set it manually via property or auto-discover it.
Thanks in advance,
This KB article will show you how you can name the Agent.
Customize Java Agent naming based on Application.
The article just relates to the whole agent name, the question is about the application name under Frontends|Apps
We have introduced a specific feature in special builds of 10.5.1 where you can specify the application name as well as an override. I'm not sure if it also got into 10.5.2
That could also be set as a JVM argument -Dintroscope.agent.application.name=
I'd suggest to raise a support case to mention defect DE292991 and we could provide you an updated build of the agent for 10.5.1 for sure, I don't think it can be delivered on any earlier agent version.
I'll open a support ticket.
And you are correct, this new property is NOT in 10.5.2 (my agent version is Agent Release 10.5.2.15 (Build 990015)) and it doesn't work. ;-)
I'm probably not being clear enough here, apologies for the confusion. :-)
I am not after Agent naming, but rather set (or help wily agent to discover) the application name.
Normally, when you deploy a WAR into an application server, you have web.xml file which is used to extract the name of the web application(s). Here, I'm talking about Spring Boot application and I don't have web.xml file. I can set the name of the spring application via environment property, but it is not being propagated to the application name in the metric tree or in a transaction trace.
Any idea how can I set the Application Name property for my agent?
Depends on the Java container.
Have you read the section on agent naming? We do provide mechanisms to do this if we cannot get the name through "normal” means.
Is the appname in the URL perhaps?
Is it available as a system property on boot?
Where would you like to use the appname when fetched?
Typically, we'll try to get that from the servlet getServletContextName, but it doesn't always work (as I found with Struts 2).