Azure / Azure/azure-functions-powershell-worker

[Feature Request] Application Insights Application Map Support

Open
#238 2 comments 1 reaction 2 assignees Claimed by @ahmedelnably View on GitHub
Dominant language
C#
Stars
215
Forks
61
Avg merge
21h 4m
Merged PRs (30d)
6

Description

Since Application Insights is now the "de facto" monitoring platform for Azure Functions, one of the most incredibly useful features is the [Application Map.
](https://docs.microsoft.com/en-us/azure/azure-monitor/app/app-map)

However, all of my Azure Functions all show up under a single application currently, so it's basically an opaque single function. I want my application map to look like this with all of the queues connecting the different functions and whatnot.
![image](https://user-images.githubusercontent.com/15258962/58849439-31518b00-863f-11e9-964e-a1fd67f752a6.png)

Is it possible to:
1. Expose the iLogger Interface to powershell as an object via a cmdlet https://github.com/Azure/azure-functions-host/wiki/ILogger for custom logging
1. Expose the Application Insights telemetry client to a variable to allow for additional logging and correlation. I guess one could create a new telemetry client using the invocation information from environment variables, but this requires a lot of explicit knowledge vs. knowledge the worker already implicitly has.
1. When logging, set the CloudRole to the Azure Function Host name and the CloudRoleInstance to the individual function name. Here's the telemetryinitializer API for some of that.
https://docs.microsoft.com/en-us/azure/azure-monitor/app/api-filtering-sampling#add-properties-itelemetryinitializer

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.