Somnath Mallick, thank you for the question.
Based on the error, it seems that your application (or java packages) being used in your application might be different from what is available in the sample provided in the docs. I would suggest using the following setting in the applicationinsights.json
file to review all the object names and attributes available for your application which can be collected:
{
"selfDiagnostics": {
"level": "DEBUG"
}
}
For more details, see How do I know what metrics are available to configure? Based on the available object type names, attributes you may have to edit the json file to suit the requirements of your application.
Hope this helps.
Please let me know if you have any questions.