Git Product home page Git Product logo

Comments (9)

renatosalas avatar renatosalas commented on May 23, 2024 1

Hi @alexmanie,

Sorry for the delay, right now I'm working on building a repro scenario, I'm almost there, as soon as I completed, I can provide the resolution to you as simple as possible.

Expect later today my reply on this thread.

Thanks for your patience,
Renato

from applicationinsights-snapshotcollector.

pharring avatar pharring commented on May 23, 2024 1

@aolszowka please see:
https://docs.microsoft.com/azure/azure-monitor/snapshot-debugger/snapshot-debugger-troubleshoot#check-the-diagnostic-services-site-extension-status-page

from applicationinsights-snapshotcollector.

pharring avatar pharring commented on May 23, 2024

Thanks for the report, @alexmanie.
@renatosalas could you please take a look?

We have to use reflection to find the AddApplicationInsightsTelemetryProcessor method (so that it works in WorkerService and codeless scenarios), and I suspect we're selecting the wrong assembly.

@alexmanie I think you can work around this by replacing AddSnapshotCollector with:

services.AddApplicationInsightsTelemetryProcessor<SnapshotCollectorTelemetryProcessor>();

from applicationinsights-snapshotcollector.

renatosalas avatar renatosalas commented on May 23, 2024

Hi @alexmanie ,

Could you help us check what Application Insights SDK version ended up in your wwwroot folder inside Kudu, please?

Here are some docs to how to access to Kudu: https://docs.microsoft.com/azure/app-service/resources-kudu#access-kudu-for-your-app

You can download the Microsoft.ApplicationInsights.dll file from Kudu and open it using ILSpy tool (https://www.microsoft.com/p/ilspy/9mxfbkfvsq13)

The expected version of Application Insights SDK by Snapshot Collector is greater or equal than 2.15.0
image

If the version of the Application Insights SDK is different (< 2.15.0), maybe there might be some build process overridden that assembly, just to isolated old/stale assemblies, could you delete the wwwroot and re-deploy your app; make a clean deployment?

from applicationinsights-snapshotcollector.

alexmanie avatar alexmanie commented on May 23, 2024

Hi @renatosalas ,
Micosoft.ApplicationInsights.dll seems to be the expected version 2.20.0.103

image

What else can I check ?

from applicationinsights-snapshotcollector.

alexmanie avatar alexmanie commented on May 23, 2024

@renatosalas @pharring adding extended information from WebApp Diagnostic Services tool:

image

from applicationinsights-snapshotcollector.

renatosalas avatar renatosalas commented on May 23, 2024

Hi @alexmanie ,

Thanks for your patience,

I was able to reproduce the issue when the "Interop" option was enabled and the Snapshot Collector SDK in your app was referenced; if you disable that option, everything should work as expected. Does this sounds the case; Interop enabled?

You can check by:

  1. Go to your App Service resource (WebApp)
  2. Select on the left side bar "Application Insights"
  3. On the right page, select the ".NET Core" tab
  4. Select "Off" option

image

Before (current customer state)
image

After
image

Let us know if that works for you and Snapshot Collector is working fine.

from applicationinsights-snapshotcollector.

alexmanie avatar alexmanie commented on May 23, 2024

Hi @renatosalas ,

Thanks for your answer. I did it, combined with uninstalling "" from my source code project, and seems Snapshot Collector is currently properly configured as per Diagnostic Services:

image

Unfortunately, no Snapshots are seeing in the portal.
I did a troubleshoot to see what's happening, and I get that message:

image

How can I workaround with that?
As my application is an AspNet Core webapp, I don't have an ApplicationInsights.config file to modify.

Thanks in advance.

from applicationinsights-snapshotcollector.

aolszowka avatar aolszowka commented on May 23, 2024

@alexmanie sorry to derail this; but I believe I am seeing similar behavior, can you tell me how you accessed the scm /DiagnosticServices diagnostics dialog in your screenshots so I can duplicate on my end?

from applicationinsights-snapshotcollector.

Related Issues (12)

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.