on prem docker function app not showing in azure app insights application map

ataxlab canary 271 Reputation points
2023-06-26T19:03:21.28+00:00

i am unable to use azure application insights application map to visualize azure functions as a dependency of an instrumented asp.net core web app

the below map omits azure functions as a dependency and only shows

  • connections to a keycloak oidc idp dependency
    • connections to a db server dependency
  • connections from visual studio's debugging client side tools

<image deleted>

connections from visual studio's debugging client side tools

however, the associated app insights instance is clearly aware of the connected functions deployment, wherby the traces of the durable functions sql provider are visible in live metrics as per

User's image

however, when the .net app sends rabbit mq messages to the functions app, there is no update to the application map to show the associated dependency

the givens

  • .net 7 asp.net core web app with .cshtml views, some hosting angular components
  • client side azure application insights javascript applied to layout template .cshtml
    • web api exposed in .net core web app, web api called on timer by
    • hosted background services running in asp.net core web app
    • azure durable functions orchestration triggered by rabbitmq messages sent from previously mentioned services

please advise

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
Developer technologies | ASP.NET | ASP.NET Core
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,566 Reputation points Moderator
    2023-06-28T05:15:25.2033333+00:00

    @ataxlab canary , Thank you for posting this question on Micrsoft Q&A.

    The automatic dependency tracking is not done for Azure Functions OR for RabbitMQ calls. The list of automatically tracked dependencies are available in the table here - Application Insights - Automatically tracked dependencies

    For any other type of external dependency to be tracked using ApplicationInsights, you would have to track those calls in the application itself using the telemetryClient.TrackDependency() method. For more details, see Manually tracking dependencies.

    Hope this helps.

    If the answer did not help, please add more context/follow-up question for it, and we will help you out. Else, if the answer helped, please click Accept answer so that it can help others in the community looking for help on similar topics.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.