Skip to content
Advertisement

Tag: azure-application-insights

How to extract telemetry code from different methods? Decorator pattern? AOP?

We are using Application Insights to monitor different service calls in our applications. Data for Application Insights is provided by many different methods and classes but always in an identical way/by identical code fragments: How am I able to extract those wrapping try catch fragments to one point of responsibility? I took a look at the dacorator pattern but I

Advertisement