ApplicationInsights-node.js icon indicating copy to clipboard operation
ApplicationInsights-node.js copied to clipboard

Dependency tracking, name gets overwritten

Open sga-solita opened this issue 1 year ago • 3 comments

We are having issues with the trackDependency function. When we send telemetry with http-method and path as the name parameter, it is overwritten with the type parameter + path.

This is the local object which is passed into telemetryClient.trackDependency: Image

This is the outcome in application insights: Image

sga-solita avatar Jan 17 '25 09:01 sga-solita

@sga-solita What version of the SDK are you using?

JacksonWeber avatar Jan 17 '25 18:01 JacksonWeber

@JacksonWeber Sorry, I should have mentioned that. I discovered the bug when using 3.3.0, and then tried 3.4.0, which had the same outcome.

sga-solita avatar Jan 17 '25 18:01 sga-solita

@sga-solita My testing of passing a custom name field to a trackDependency call using 3.4.0 of the SDK is showing dependency telemetry with the new custom name in Application Insights. Can you share you Application Insights startup code and the manual trackDependency call you expect to have a custom name field?

JacksonWeber avatar Jan 23 '25 22:01 JacksonWeber

Duplicate of https://github.com/microsoft/ApplicationInsights-node.js/issues/1432. Which is now resolved.

JacksonWeber avatar Jul 01 '25 21:07 JacksonWeber