You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to understand how Application Insights interprets dependency types. Currently telemetry flowing from .NET application to OTel exporter to Azure Monitor and outgoing HTTP requests are shown in AppInsights with dependency type "Other".
When sending telemetry using the Azure Monitor Open Telemetry Distro, outgoing dependencies show up in AppInsights as "HTTP", as expected. What am i missing here?
Edit: Digging through code and tests here and in Azure/azure-sdk-for-net + open-telemetry/opentelemetry-dotnet-contrib repo, i got the dependency type working. Trick was to add a bunch of tags to activity:
After these tags are present, AppInsights correctly interprets the type as "HTTP". Now there is a bunch of other issues to investigate, as the output in AppInsights still doesn't match what OpenTelemetry Distro creates...
Edit 2: Added the same set of attributes to inbound requests and now AppInsights shows them too with proper response codes etc. Without these attributes, response code was always 0.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to understand how Application Insights interprets dependency types. Currently telemetry flowing from .NET application to OTel exporter to Azure Monitor and outgoing HTTP requests are shown in AppInsights with dependency type "Other".
When sending telemetry using the Azure Monitor Open Telemetry Distro, outgoing dependencies show up in AppInsights as "HTTP", as expected. What am i missing here?
Edit: Digging through code and tests here and in Azure/azure-sdk-for-net + open-telemetry/opentelemetry-dotnet-contrib repo, i got the dependency type working. Trick was to add a bunch of tags to activity:
url.scheme
url.path
http.scheme
http.method
http.host
http.port
After these tags are present, AppInsights correctly interprets the type as "HTTP". Now there is a bunch of other issues to investigate, as the output in AppInsights still doesn't match what OpenTelemetry Distro creates...
Edit 2: Added the same set of attributes to inbound requests and now AppInsights shows them too with proper response codes etc. Without these attributes, response code was always 0.
Beta Was this translation helpful? Give feedback.
All reactions