Can I use agentNameSystemPropertyKey to name the Agent even though I have set agentName? Does one override the other?
1. The "agentNameSystemPropertyKey" is an alternate way of naming the agent instead of "agentName".
2. If the "agentName" property is not set, then "agentNameSystemPropertyKey" will override it.
Below is a link to the way the agent naming is determined and in the order we look for the name. So if both above are set, it will take "agentName" first even though you have "agentNameSystemPropertyKey" set.