azure - Application Insights Dependency Tracking no more working -


hi use in webapi project application insights log events , errors. after update 2.3.0 2.4.1 don't see logs of dependencies db or http calls. after googling found out need have dependencytrackingtelemetrymodule in config file included in config. has ideas?

here config file:

<?xml version="1.0" encoding="utf-8"?> <applicationinsights schemaversion="2014-05-30" xmlns="http://schemas.microsoft.com/applicationinsights/2013/settings">    <telemetrymodules>     <add type="microsoft.applicationinsights.extensibility.runtimetelemetry.remotedependencymodule, microsoft.applicationinsights.extensibility.runtimetelemetry"/>     <add type="microsoft.applicationinsights.extensibility.perfcollector.performancecollectormodule, microsoft.applicationinsights.extensibility.perfcollector"/>     <add type="microsoft.applicationinsights.dependencycollector.dependencytrackingtelemetrymodule, microsoft.ai.dependencycollector">       <excludecomponentcorrelationhttpheadersondomains>                    <add>core.windows.net</add>         <add>core.chinacloudapi.cn</add>         <add>core.cloudapi.de</add>         <add>core.usgovcloudapi.net</add>         <add>localhost</add>         <add>127.0.0.1</add>       </excludecomponentcorrelationhttpheadersondomains>     </add>     <add type="microsoft.applicationinsights.extensibility.perfcountercollector.performancecollectormodule, microsoft.ai.perfcountercollector">              </add>     <add type="microsoft.applicationinsights.extensibility.perfcountercollector.quickpulse.quickpulsetelemetrymodule, microsoft.ai.perfcountercollector"/>     <add type="microsoft.applicationinsights.windowsserver.developermodewithdebuggerattachedtelemetrymodule, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.unhandledexceptiontelemetrymodule, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.unobservedexceptiontelemetrymodule, microsoft.ai.windowsserver">     </add>     <add type="microsoft.applicationinsights.web.requesttrackingtelemetrymodule, microsoft.ai.web">       <handlers>                     <add>system.web.handlers.transferrequesthandler</add>         <add>microsoft.visualstudio.web.pageinspector.runtime.tracing.requestdatahttphandler</add>         <add>system.web.staticfilehandler</add>         <add>system.web.handlers.assemblyresourceloader</add>         <add>system.web.optimization.bundlehandler</add>         <add>system.web.script.services.scripthandlerfactory</add>         <add>system.web.handlers.tracehandler</add>         <add>system.web.services.discovery.discoveryrequesthandler</add>         <add>system.web.httpdebughandler</add>       </handlers>     </add>     <add type="microsoft.applicationinsights.web.exceptiontrackingtelemetrymodule, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.aspnetdiagnostictelemetrymodule, microsoft.ai.web"/>   </telemetrymodules>   <instrumentationkey>my key</instrumentationkey>   <telemetryinitializers>     <add type="microsoft.applicationinsights.dependencycollector.httpdependenciesparsingtelemetryinitializer, microsoft.ai.dependencycollector"/>     <add type="microsoft.applicationinsights.windowsserver.azureroleenvironmenttelemetryinitializer, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.azurewebapproleenvironmenttelemetryinitializer, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.buildinfoconfigcomponentversiontelemetryinitializer, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.web.webtesttelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.syntheticuseragenttelemetryinitializer, microsoft.ai.web">                 <filters>search|spider|crawl|bot|monitor|alwayson</filters>     </add>     <add type="microsoft.applicationinsights.web.clientipheadertelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.operationnametelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.operationcorrelationtelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.usertelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.authenticateduseridtelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.accountidtelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.sessiontelemetryinitializer, microsoft.ai.web"/>   </telemetryinitializers>   <telemetryprocessors>     <add type="microsoft.applicationinsights.extensibility.perfcountercollector.quickpulse.quickpulsetelemetryprocessor, microsoft.ai.perfcountercollector"/>     <add type="microsoft.applicationinsights.extensibility.autocollectedmetricsextractor, microsoft.applicationinsights"/>     <add type="microsoft.applicationinsights.windowsserver.telemetrychannel.adaptivesamplingtelemetryprocessor, microsoft.ai.servertelemetrychannel">       <maxtelemetryitemspersecond>5</maxtelemetryitemspersecond>       <excludedtypes>event</excludedtypes>     </add>     <add type="microsoft.applicationinsights.windowsserver.telemetrychannel.adaptivesamplingtelemetryprocessor, microsoft.ai.servertelemetrychannel">       <maxtelemetryitemspersecond>5</maxtelemetryitemspersecond>       <includedtypes>event</includedtypes>     </add>   </telemetryprocessors>   <telemetrychannel type="microsoft.applicationinsights.windowsserver.telemetrychannel.servertelemetrychannel, microsoft.ai.servertelemetrychannel"/> </applicationinsights> 

after update 2.3.0 2.4.1 don't see logs of dependencies db or http calls.

i upgrade microsoft.applicationinsights.dependencycollector 2.4.1, , can see dependency calls data. please go "search" blade , check if can see server request , dependency calls data.

enter image description here

besides, mentioned in comment, if possible, can try write code send dependency information using trackdependency.

var starttime = datetime.utcnow; var timer = system.diagnostics.stopwatch.startnew(); try {     success = dependency.call(); } {     timer.stop();     telemetry.trackdependency("mydependency", "mycall", starttime, timer.elapsed, success); } 

edit:

applicationinsights.config

<?xml version="1.0" encoding="utf-8"?> <applicationinsights xmlns="http://schemas.microsoft.com/applicationinsights/2013/settings">    <instrumentationkey>my key</instrumentationkey>   <telemetryinitializers>     <add type="microsoft.applicationinsights.dependencycollector.httpdependenciesparsingtelemetryinitializer, microsoft.ai.dependencycollector"/>     <add type="microsoft.applicationinsights.windowsserver.azureroleenvironmenttelemetryinitializer, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.azurewebapproleenvironmenttelemetryinitializer, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.buildinfoconfigcomponentversiontelemetryinitializer, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.web.webtesttelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.syntheticuseragenttelemetryinitializer, microsoft.ai.web">       <!-- extended list of bots:             search|spider|crawl|bot|monitor|browsermob|bingpreview|pagepeeker|webthumb|url2png|zooshot|gomeza|google sketchup|read later|ktxn|khte|keynote|pingdom|alwayson|zao|borg|oegp|silk|xenu|zeal|ning|htdig|lycos|slurp|teoma|voila|yahoo|sogou|cibra|nutch|java|jnlp|daumoa|genieo|ichiro|larbin|pompos|scrapy|snappy|speedy|vortex|favicon|indexer|riddler|scooter|scraper|scrubby|whatweb|winhttp|voyager|archiver|icarus6j|mogimogi|netvibes|altavista|charlotte|findlinks|retreiver|tlsprober|wordpress|wsr-agent|http client|python-urllib|appengine-google|semanticdiscovery|facebookexternalhit|web/snippet|google-http-java-client-->       <filters>search|spider|crawl|bot|monitor|alwayson</filters>     </add>     <add type="microsoft.applicationinsights.web.clientipheadertelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.operationnametelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.operationcorrelationtelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.usertelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.authenticateduseridtelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.accountidtelemetryinitializer, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.sessiontelemetryinitializer, microsoft.ai.web"/>   </telemetryinitializers>   <telemetrymodules>     <add type="microsoft.applicationinsights.dependencycollector.dependencytrackingtelemetrymodule, microsoft.ai.dependencycollector">       <excludecomponentcorrelationhttpheadersondomains>         <!--          requests following hostnames not modified adding correlation headers.          applicable if profiler installed via either statusmonitor or azure extension.         add entries here exclude additional hostnames.         note: configuration lost upon nuget upgrade.         -->         <add>core.windows.net</add>         <add>core.chinacloudapi.cn</add>         <add>core.cloudapi.de</add>         <add>core.usgovcloudapi.net</add>         <add>localhost</add>         <add>127.0.0.1</add>       </excludecomponentcorrelationhttpheadersondomains>     </add>     <add type="microsoft.applicationinsights.extensibility.perfcountercollector.performancecollectormodule, microsoft.ai.perfcountercollector">       <!--       use following syntax here collect additional performance counters:        <counters>         <add performancecounter="\process(??app_win32_proc??)\handle count" reportas="process handle count" />         ...       </counters>        performancecounter must either \categoryname(instancename)\countername or \categoryname\countername        note: performance counters configuration lost upon nuget upgrade.        following placeholders supported instancename:         ??app_win32_proc?? - instance name of application process  win32 counters.         ??app_w3svc_proc?? - instance name of application iis worker process iis/asp.net counters.         ??app_clr_proc?? - instance name of application clr process .net counters.       -->     </add>     <add type="microsoft.applicationinsights.extensibility.perfcountercollector.quickpulse.quickpulsetelemetrymodule, microsoft.ai.perfcountercollector"/>     <add type="microsoft.applicationinsights.windowsserver.developermodewithdebuggerattachedtelemetrymodule, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.unhandledexceptiontelemetrymodule, microsoft.ai.windowsserver"/>     <add type="microsoft.applicationinsights.windowsserver.unobservedexceptiontelemetrymodule, microsoft.ai.windowsserver">       <!--</add>     <add type="microsoft.applicationinsights.windowsserver.firstchanceexceptionstatisticstelemetrymodule, microsoft.ai.windowsserver">-->     </add>     <add type="microsoft.applicationinsights.web.requesttrackingtelemetrymodule, microsoft.ai.web">       <handlers>         <!--          add entries here filter out additional handlers:           note: handler configuration lost upon nuget upgrade.         -->         <add>system.web.handlers.transferrequesthandler</add>         <add>microsoft.visualstudio.web.pageinspector.runtime.tracing.requestdatahttphandler</add>         <add>system.web.staticfilehandler</add>         <add>system.web.handlers.assemblyresourceloader</add>         <add>system.web.optimization.bundlehandler</add>         <add>system.web.script.services.scripthandlerfactory</add>         <add>system.web.handlers.tracehandler</add>         <add>system.web.services.discovery.discoveryrequesthandler</add>         <add>system.web.httpdebughandler</add>       </handlers>     </add>     <add type="microsoft.applicationinsights.web.exceptiontrackingtelemetrymodule, microsoft.ai.web"/>     <add type="microsoft.applicationinsights.web.aspnetdiagnostictelemetrymodule, microsoft.ai.web"/>   </telemetrymodules>   <telemetryprocessors>     <add type="microsoft.applicationinsights.extensibility.perfcountercollector.quickpulse.quickpulsetelemetryprocessor, microsoft.ai.perfcountercollector"/>     <add type="microsoft.applicationinsights.extensibility.autocollectedmetricsextractor, microsoft.applicationinsights"/>     <add type="microsoft.applicationinsights.windowsserver.telemetrychannel.adaptivesamplingtelemetryprocessor, microsoft.ai.servertelemetrychannel">       <maxtelemetryitemspersecond>5</maxtelemetryitemspersecond>       <excludedtypes>event</excludedtypes>     </add>     <add type="microsoft.applicationinsights.windowsserver.telemetrychannel.adaptivesamplingtelemetryprocessor, microsoft.ai.servertelemetrychannel">       <maxtelemetryitemspersecond>5</maxtelemetryitemspersecond>       <includedtypes>event</includedtypes>     </add>   </telemetryprocessors>   <telemetrychannel type="microsoft.applicationinsights.windowsserver.telemetrychannel.servertelemetrychannel, microsoft.ai.servertelemetrychannel"/> <!--      learn more application insights configuration applicationinsights.config here:      http://go.microsoft.com/fwlink/?linkid=513840      note: if not present, please add <instrumentationkey>your key</instrumentationkey> top of file.   --></applicationinsights> 

Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -