-
Notifications
You must be signed in to change notification settings - Fork 287
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
Application Insights Dependency Logging setting incorrect parentId for Blob storage calls from Storage SDK #1915
Comments
@rajkumar-rangaraj would you time to try this out? We should have func tests which can be upgraded to newest version of this blob nuget and see if it fails. cc : @TimothyMothra as well as Mothra is going to implement an integration test pipeline to catch these issues very early. |
I could recreate an issue. Azure.Storage.Blobs 12.4.4
Microsoft.Azure.Storage 11.1.7
Storage REST API calls from
If a Following is the code for
Further investigation needed to check why Azure Core creates a new activity. |
@pakrym Something you can help? |
We create the activity to enable Azure SDK HTTP request tracking functionality independently of the framework version being used. This is something we collaborated with @lmolkova on. |
@lmolkova can you please take a look at this? |
I was able to find the root cause: What happens is:
I suggest fixing it in a following way:
I'll send a PR with the fix in the next few days. |
@TimothyMothra This issue is still reproducable with ApplicationInsights 2.22.0 and Azure.Storage.Blobs 12.19.1 - shouldn't this be fixed by now? The current behavior is correct for the dependencies with type |
Describe your environment. Describe any aspect of your environment relevant to the problem:
Azure Service Fabric application in ASP.NET Core 3.1 running the Application Insights C# telemetry collection SDK.
If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on master.
Steps to reproduce.
Use the the newest 12.4 version of Azure.Storage.Blob client SDK to interact with Azure Blob.
What is the expected behavior?
The operation_parentId value generated for each dependency log statement corresponding to each blob client call should match the id value of the requests log statement corresponding to the request from which the Blob calls were made.
What is the actual behavior?
The operation_parentId value does not correspond to any value present in the requests logs. Not only that but sequential blob client calls do not even have the same operation_parentId value. This results in the blob calls not being put in the appropriate place in the distributed trace view.
Additional context.
This works as expected with version 11 of the storage library. We saw this issue occur once we updated to version 12. I have already filed an issue with the Storage SDK, and they pointed me to the Application Insights as where the issue must originate (see Azure/azure-sdk-for-net#12511).
The text was updated successfully, but these errors were encountered: