Application Insights, Multi-Role application map, correlation
- Dominant language
- PowerShell
- Stars
- 1.1k
- Forks
- 215
- Avg merge
- 4h 2m
- Merged PRs (30d)
- 1
Description
I'm running an Azure Function which I call from a .NET Core application hosted on an Azure-Kubernetes cluster.
I've enabled the "Multi-role Application Map" preview and want to get the connections from the core application to the Azure functions to be drawn when there are corresponding calls.
Now I got this working by adding the OperationId and RequestId values from a DependencyTelemetry to the HTTP request and by creating a corresponding RequestTelemetry on the Azure Function where I set the Operation.Id and Operation.ParentId to the values of the request headers.
This works and looks good on the map.
However, The Azure Functions runtime itself creates another Request-Telemetry which appears on the map (I see it because my own RequestTelemetry use a different Cloud.RoleName).
Now, I'd rather use the RequestTelemetry created by the runtime instead of my own, but I don't know how to inject the OperationId and RequestId into that instance.
And since I have no access to the TelemetryConfiguration of the Runtime, I cannot create a TelemetryInitializer of my own.
Is there a way to achieve this?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.