Coder Social home page Coder Social logo

applicationinsights-snapshotcollector's Introduction

Application Insights Snapshot Collector

This repo tracks issues for the Microsoft.ApplicationInsights.SnapshotCollector NuGet package. You may use it to ask questions, suggest features and report bugs.

The Snapshot Collector NuGet package is part of the Application Insights Snapshot Debugger.

Before creating a new bug report, please check the troubleshooting documentation.

Also check out the Discussions section for Q&A, ideas and community content.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

applicationinsights-snapshotcollector's People

Contributors

microsoft-github-operations[bot] avatar microsoftopensource avatar pharring avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

applicationinsights-snapshotcollector's Issues

Unable to log snapshots from .NET 6 console app

The application successfully logs errors and messages to Application Insights but not debug snapshots. No options for snapshots appear in Azure.

When attempting to create a support request in Azure, it runs a diagnostic test that says snapshots were not sent:

Our diagnostic has detected that the configured application(s) have not sent any data to the Application Insights resource with name ApplicationInsightsinstance and instrumentation key XYZ between 11/2/2022 5:00 PM and 11/3/2022 5:00 PM. This is an indication that there is a configuration issue with your application and you should follow the troubleshooting steps below to correct your issue.

SnapshotUploader.exe is not found anywhere on the dev machine. The local temp folders configured below had to be created manually and remain empty.

Configuration:

  • See dialedin2014/ApplicationInsightsTest: AI experiment (github.com)
  • .NET 6 Console app using the Generic Host
  • services.AddSnapshotCollector() called
  • Using the latest Microsoft.ApplicationInsights.WorkerService package
  • Using the latest Microsoft.ApplicationInsights.SnapshotCollector package
  • SnapshotCollectorConfiguration ShadowCopyFolder is set to C:\temp\SnapshotUploader
  • Using the ServerTelemetryChannel configured with StorageFolder = @"C:\temp\aisdkstorage"
  • Viewing results in Azure under ApplicationInsightsinstance | Failures as a user with the Application Insights Snapshot Debugger in that instance
  • The test throws a new InvalidOperationException twice with the same message to meet ThresholdForSnapshotting
  • The Azure region is not Azure Government or Azure China

What is missing?

Missing "Open Debug Trace" button for Snapshot Debugger

I am Long from Office division.
My team is exploring Snapshot Debugger. I tried to install it, but cannot download the snapshot. The button "Open Debug Trace" is missing my portal.
Target: I want to download the snapshot

My stack: Appservice for Windows, Net6
I installed these 2 Nugets: "Microsoft.ApplicationInsights.AspNetCore" Version="2.20.0" , "Microsoft.ApplicationInsights.SnapshotCollector" Version="1.4.2"

I have services.AddSnapshotCollector((configuration) => Configuration.Bind(nameof(SnapshotCollectorConfiguration), configuration)); in Startup.cs

I could get exception logged to Application Insights, so I dont have problem with AAD auth.
My settings are followed:
image

image

Missing button:
image

Suspended processes causing low virtual memory

We are using default snapshot collector configuration in an Asp.net MVC application targeting .net 4.8
Snapshot collector for dumps create a suspended w3wp process which is not getting killed after the collections. causing low virtual memory on the server and sometimes the app pool stops due to that.

The issue is quite similar to the one in this blog https://www.codewrecks.com/blog/index.php/2019/07/03/application-insight-snapshot-debugger-and-strange-production-problem/

Here is the screenshot of suspended w3wp and low virtual memory warnings
image

image

How long it is expected that suspended w3wp will stay in memory ?

Snapshot Collector may not be able to find ShadowCopyFolder in .NET 6 single file executables

Observed this exception when trying to use snapshot collector (v1.4.3) with a program published as a single binary.

Event: ExceptionDuringNativeComponentExtraction

System.ArgumentException: The path is empty. (Parameter 'path')
at System.IO.Path.GetFullPath(String path)
at System.IO.FileInfo..ctor(String originalPath, String fullPath, String fileName, Boolean isNormalized) at

Can't get too much detail given the environment contraints but I'll see if I can get more info if needed.

Microsoft.Data.SqlClient.SqlConnection' threw an exception with SnapshotCollector 1.4.0 and 1.4.1

No issue with the version : 1.3.7.5 of Microsoft.ApplicationInsights.SnapshotCollector

Since the upgrade to 1.4.0 (and same error with 1.4.1)

When we call EF core call to the SQL DB we get this error message :

System.TypeInitializationException: 'The type initializer for 'Microsoft.Data.SqlClient.SqlConnection' threw an exception.'
ArgumentException: Delegates must be of the same type.

at System.MulticastDelegate.CombineImpl(Delegate follow)
at System.Runtime.Loader.AssemblyLoadContext.add__unloading(Action1 value) at System.Runtime.Loader.AssemblyLoadContext.add_Unloading(Action1 value)
at Microsoft.Data.SqlClient.SqlDiagnosticListener..ctor(String name)
at Microsoft.Data.SqlClient.SqlConnection..cctor()

image

Thank you ! :-)

Add Linux support

Please vote or add comments regarding support for Application Insights Snapshot Debugger for .NET Core application on Linux.

If you comment, it would help if you could describe the environment (e.g. in a Linux VM; in a docker container; in Kubernetes; in Azure App Service for Linux).

See also microsoft/ApplicationInsights-dotnet#1901

Method not found: Microsoft.ApplicationInsights.SnapshotCollector.TelemetryProcessorChainBuilderExtensions.UseSnapshotCollector

After updating from 1.3.7.5 to 1.4.0 I get the following exception in my WebJob and I am not able to fix it.

{"Methode nicht gefunden: \"Void Microsoft.ApplicationInsights.SnapshotCollector.TelemetryProcessorChainBuilderExtensions.UseSnapshotCollector(Microsoft.ApplicationInsights.Extensibility.Implementation.TelemetryProcessorChainBuilder, Microsoft.ApplicationInsights.SnapshotCollector.SnapshotCollectorConfiguration)\"."}

Stack Trace:

   at Microsoft.Extensions.DependencyInjection.ApplicationInsightsServiceCollectionExtensions.SetupTelemetryConfiguration(TelemetryConfiguration configuration, ApplicationInsightsLoggerOptions options, ITelemetryChannel channel, IEnumerable`1 telemetryInitializers, IEnumerable`1 telemetryModules, IApplicationIdProvider applicationIdProvider, LoggerFilterOptions filterOptions, IRoleInstanceProvider roleInstanceProvider, QuickPulseInitializationScheduler delayer) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging.ApplicationInsights\Extensions\ApplicationInsightsServiceCollectionExtensions.cs:line 367
   at Microsoft.Extensions.DependencyInjection.ApplicationInsightsServiceCollectionExtensions.<>c.<AddApplicationInsights>b__1_6(IServiceProvider provider) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging.ApplicationInsights\Extensions\ApplicationInsightsServiceCollectionExtensions.cs:line 222
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider)
   at Microsoft.Extensions.DependencyInjection.ApplicationInsightsServiceCollectionExtensions.<>c.<AddApplicationInsights>b__1_7(IServiceProvider provider) in C:\projects\azure-webjobs-sdk-rqm4t\src\Microsoft.Azure.WebJobs.Logging.ApplicationInsights\Extensions\ApplicationInsightsServiceCollectionExtensions.cs:line 233
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(FactoryCallSite factoryCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitIEnumerable(IEnumerableCallSite enumerableCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitConstructor(ConstructorCallSite constructorCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSiteMain(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitCache(ServiceCallSite callSite, RuntimeResolverContext context, ServiceProviderEngineScope serviceProviderEngine, RuntimeResolverLock lockType)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitRootCache(ServiceCallSite singletonCallSite, RuntimeResolverContext context)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2.VisitCallSite(ServiceCallSite callSite, TArgument argument)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.Resolve(ServiceCallSite callSite, ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceLookup.DynamicServiceProviderEngine.<>c__DisplayClass1_0.<RealizeService>b__0(ServiceProviderEngineScope scope)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService(IServiceProvider provider, Type serviceType)
   at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
   at CleverMatch.WebJobs.MarketingAutomation.Program.<Main>d__0.MoveNext() in C:\Source\Repos\CleverMatch\CleverMatch.WebJobs.MarketingAutomation\Program.cs:line 113

Repro steps

Update from 1.3.7.5 to 1.4.0

hostBuilder
                .UseEnvironment(enviromentHostId)
                .ConfigureWebJobs(config =>
                {
                    config.AddAzureStorageCoreServices();
                    config.AddTimers();
                    config.AddExecutionContextBinding();
                    config.UseHostId(enviromentHostId);
                })
                .ConfigureLogging((context, logger) =>
                {
                    logger.AddSimpleConsole(options =>
                    {
                        options.IncludeScopes = true;
                        options.SingleLine = false;
                        options.TimestampFormat = "hh:mm:ss ";
                        options.ColorBehavior = LoggerColorBehavior.Enabled;
                    });

                    logger.AddApplicationInsightsWebJobs(config =>
                    {
                        config.InstrumentationKey = context.Configuration["APPINSIGHTS_INSTRUMENTATIONKEY"];
                    });
                })
                .ConfigureServices(services =>
                {
                    services.AddSingleton<AutofacService, AutofacService>();
                })
                .UseConsoleLifetime();

            var host = hostBuilder.Build();

Exception on hostBuilder.Build()

Exception Info: System.AggregateException: One or more errors occurred. The semaphore has been disposed.

Not sure if this is the correct place but we have been seeing this more and more since April timeframe. Not sure what other info to provide so let me know if there is anything else we can try to add. Or please point us in the right direction if possible.

Thanks!!

1026 1 0 Keywords 277402015 Application RD0003FF2BD0FF Application: w3wp.exe CoreCLR Version: 5.0.421.11614 .NET Version: 5.0.4 Description: The process was terminated due to an unhandled exception. Exception Info: System.AggregateException: One or more errors occurred. (The semaphore has been disposed.) ---> System.ObjectDisposedException: The semaphore has been disposed. at System.Threading.SemaphoreSlim.CheckDispose() at System.Threading.SemaphoreSlim.Release(Int32 releaseCount) at System.Threading.SemaphoreSlim.Release() at Microsoft.ApplicationInsights.SnapshotCollector.Pipeline.ProducerConsumerQueue`1.Produce(T workItem) at Microsoft.ApplicationInsights.SnapshotCollector.Uploader.EnqueueRequest(Request request) at Microsoft.ApplicationInsights.SnapshotCollector.Uploader.Shutdown() at System.Threading.CancellationToken.<>c.<.cctor>b__26_0(Object obj) at System.Threading.CancellationTokenSource.CallbackNode.<>c.b__9_0(Object s) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationTokenSource.CallbackNode.ExecuteCallback() at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) --- End of inner exception stack trace --- at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.NotifyCancellation(Boolean throwOnFirstException) at System.Threading.CancellationTokenSource.Cancel() at Microsoft.ApplicationInsights.SnapshotCollector.ApplicationLifetimeManager.Stop() at Microsoft.ApplicationInsights.SnapshotCollector.AssemblyLoadContextLifetimeManager.OnUnloading(Object sender) at System.Runtime.Loader.AssemblyLoadContext.OnProcessExit() at System.AppContext.OnProcessExit()

Various potential bugs

The snapshot collector seems to work fine in production but we are having trouble in development/build since the snapshot collector is making a significant number of external calls that cannot route through a firewall.

Without the nuget package installed, everything runs as expected, the only app insights events I see in the debug log are what I expect using the correct iKey.

With the package installed, I see a significant number of events like these two:

Application Insights Telemetry: {"name":"AppEvents","time":"2021-09-30T09:20:56.8831014Z","iKey":"8a28de91-bcf6-44ac-9242-f7a64f1146b8","tags":{"ai.application.ver":"1.4.0.0","ai.device.osVersion":"Microsoft Windows 10.0.19043","ai.cloud.roleInstance":"/PU6k0iJgzHB","ai.session.id":"dYYeFjWs/Le7","ai.internal.sdkVersion":"dotnetc:2.18.0-315","ai.internal.nodeName":"DEV-01.smartsurvey.local"},"data":{"baseType":"EventData","baseData":{"ver":2,"name":"TelemetryProcessorCreated","properties":{"Runtime":".NET Core 3.1.19","TelemetryProcessor":"SnapshotCollectorTelemetryProcessor Problems:Count=0"}}}}

Application Insights Telemetry: {"name":"AppDependencies","time":"2021-09-30T09:20:56.8818670Z","iKey":"xxxxxxxx-xxxx-xxxx-xxxx-62d47594c409","tags":{"ai.application.ver":"15.0.0.0","ai.cloud.roleInstance":"DEV-01","ai.operation.id":"b7a8c124c63ab14db3955c8083467fce","ai.internal.sdkVersion":"rdddsc:2.18.0-315","ai.internal.nodeName":"DEV-01.ss.local"},"data":{"baseType":"RemoteDependencyData","baseData":{"ver":2,"name":"GET /metadata/instance/compute","id":"b2d10a6620b6864d","data":"http://169.254.169.254/metadata/instance/compute?api-version=2017-08-01","duration":"00:00:00.3702150","resultCode":"Canceled","success":false,"type":"Http","target":"169.254.169.254","properties":{"AspNetCoreEnvironment":"Development","DeveloperMode":"true","_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"}}}}

Note that the first one has an incorrect iKey, which I cannot find anywhere in my code or on github. The second has the correct key, which I have masked. The second one is occuring "correctly" in that the snapshot collector is calling out to http://169.254.169.254/metadata/instance/compute, whatever that is.

I then tried to set IsEnabled to false in appsettings and it didn't disable these calls.

"SnapshotCollectorConfiguration": {
    "IsEnabled": false,
    "IsEnabledInDeveloperMode": false
  } 

Note that we are not hosting these on Azure App Service and don't have any App Services running for any of our apps, which I am mentioning because the first refers to a roleinstance and the second to metadata/instance, which I believe is a cloud service endpoint for local metrics data.

Could not user SnapshotCollector 1.4.2 in production WebApp

After adding Microsoft.ApplicationInsights.SnapshotCollector 1.4.2 to our AspNetCore project, .NET 5.0, the application could not start properly.

This is the Startup services configuration (just a part of it, for abbreviation):

image

This is the error we can see on Application Event Logs:

Application '/LM/W3SVC/649384701/ROOT' with physical root 'C:\home\site\wwwroot\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs: Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: telemetryProcessorTypedoes not implement ITelemetryProcessor. at Microsoft.Extensions.DependencyInjection.ApplicationInsightsExtensions.AddApplicationInsightsTelemetryProcessor(IServiceCollection services, Type telemetryProcessorType) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) at Microsoft.Extensions.DependencyInjection.SnapshotCollectorServiceCollectionExtensions.AddSnapshotCollector(IServiceCollection services, Action'1 configure) at Microsoft.Extensions.DependencyInjection.SnapshotCollectorServiceCollectionExtensions.AddSnapshotCollector(IServiceCollection services) at MyApi.Startup.ConfigureServices(IServiceCollection services) in D:\a\1\s\xxxxxxxx\Startup.cs:line 127 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services) at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.UseStartup(Type startupType, HostBuilderContext context, IServiceCollection services, Object instance) at Microsoft.AspNetCore.Hosting.GenericWebHostBuilder.<>c__DisplayClass13_0.<UseStartup>b__0(HostBuilderContext context, IServiceCollection services) at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider() at Microsoft.Extensions.Hosting.HostBuilder.Build() at MyApi.Program.Main(String[] args) in D:\a\1\s\xxxxxxx\Program.cs:line 26

Process Id: 3616.
File Version: 15.0.21326.13. Description: IIS ASP.NET Core Module V2 Request Handler. Commit: 55738ff96b832439076e25584cfe0eb3bace9b01`

This is the scm /DiagnosticServices diagnostics:

image

How can we make it work ?
In local environments, no issues were found and the API is running perfectly.

These are the referenced packages and versions:

<TargetFramework>net5.0</TargetFramework>

<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.20.0" />
<PackageReference Include="Microsoft.ApplicationInsights.SnapshotCollector" Version="1.4.2" />

Thanks in advance.

AppInsight Snapshot Debbugger Doesn't show locals vars

I've installed and configured appinsight in my template project with .NET 4.7.2

The AppInsight work fine, but the snapshot debbuger only shows call stack and decompiled code.

image

My sample exception code:

image

I've make sure that the pdb generated and it's in debug mode based on this link: Azure App Insights Debug Snapshot doesn't show Locals and Variables , also enable developer mode, but it doesn't work.

I've also added dependent assembly according to this link: Application Insight Snapshot Debugger: Snapshots are not being pushed from a .NET Full Framework Site

But it doesn't work. Please help. Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.