At the moment I have about 10 microservices in my domain model. Each microservice includes the app insights sdk and the logs just push to app insights.
I have a customer of mine who has specifically requested that all microservices should go through like a app insights common microservice which would then push to app insights.
Lets just ignore that they are introducing a single point of failure for a sec. I want to know if the above is actually possible? Is the above suggestion a valid pattern? In the common Microservice would I be able to write a method in a class like ...
public void logBusinessEvent(String eventRequest,eventMessage){
AppInsights ai = new AppInsights();
ai.logRequests(eventRequest);
ai.logTraces(eventTraces);
}
This feels very wrong but nether the less I want to do my homework on this before I get back with a response.
thanks