Skip to content

Dependency tracking, name gets overwritten #1406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sga-solita opened this issue Jan 17, 2025 · 3 comments
Open

Dependency tracking, name gets overwritten #1406

sga-solita opened this issue Jan 17, 2025 · 3 comments
Assignees

Comments

@sga-solita
Copy link

sga-solita commented Jan 17, 2025

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

@JacksonWeber
Copy link
Contributor

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

@sga-solita
Copy link
Author

sga-solita commented Jan 17, 2025

@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.

@JacksonWeber
Copy link
Contributor

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants