@Override
    public ApplicationEntrypointInitializer initialize(final String[] mainArguments) {
        val agentEnabled = StringUtils.defaultIfBlank(System.getProperty(AZURE_MONITOR_AGENT_ENABLED,
            System.getenv(AZURE_MONITOR_AGENT_ENABLED)), "true");
        if (BooleanUtils.toBoolean(agentEnabled)) {
            //CHECKSTYLE:OFF
            System.out.println("Attaching Azure Monitor Application Insights Agent...");
            //CHECKSTYLE:ON
            ApplicationInsights.attach();
        }
        return this;
    }
This is {@link AzureInsightsAgentInitializer}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-azure-monitor/src/main/java/org/apereo/cas/azure/AzureInsightsAgentInitializer.java