azure-sdk-for-net: [BUG] No distributed traces for Azure.Storage.Blobs and Azure.Messaging.ServiceBus when running in Azure Functions

Describe the bug

I can find some traces for the following SDKs:

  • Azure table (used by durable functions)
  • Old cosmos SDK (3.19)

However I am heavy user of Azure.Storage.Blobs (12.8.4) but my code is running in Azure Function v3 so I guess the old SDK is in the dependency tree somewhere.

Expected behavior

I expect to see information about my blob traffic.

Actual behavior (include Exception or Stack Trace)

no dependency metrics for storage blobs

To Reproduce

Run the code.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.1</TargetFramework>
    <AzureFunctionsVersion>V3</AzureFunctionsVersion>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Azure.Identity" Version="1.4.0" />
    <PackageReference Include="Azure.Messaging.EventHubs" Version="5.4.1" />
    <PackageReference Include="Azure.Messaging.ServiceBus" Version="7.1.2" />
    <PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.1.1" />
    <PackageReference Include="Azure.Storage.Blobs" Version="12.8.4" />
    <PackageReference Include="Microsoft.Azure.Cosmos" Version="3.19.0" />
    <PackageReference Include="Microsoft.Azure.Devices" Version="1.34.0" />
    <PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" />
    <PackageReference Include="Microsoft.Azure.ServiceBus" Version="5.1.3" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="2.5.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.ServiceBus" Version="4.3.0" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions" Version="4.0.1" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Logging.ApplicationInsights" Version="3.0.27" />
    <PackageReference Include="Microsoft.Azure.WebJobs" Version="3.0.27" />
    <PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.1.11" />
    <PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.11" />
    <PackageReference Include="Microsoft.NET.Sdk.Functions" Version="3.0.13" />
    <PackageReference Include="Microsoft.ApplicationInsights" Version="2.17.0" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Cur8.Core.Typelib" Version="$(CoreLibraryVersion)" />
  </ItemGroup>
  <ItemGroup>
    <None Update="host.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Update="local.settings.json">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <CopyToPublishDirectory>Never</CopyToPublishDirectory>
    </None>
  </ItemGroup>
  <ItemGroup>
    <ProjectReference Include="..\DeviceBackend.Dal\DeviceBackend.Dal.csproj" />
    <ProjectReference Include="..\DeviceBackend.Recording\DeviceBackend.Recording.csproj" />
    <ProjectReference Include="..\..\src\OpenSslWrapper\OpenSslWrapper.csproj" />
  </ItemGroup>
</Project>

Environment:

  • Azure.Storage.Blobs 12.8.4
  • Azure Function V3
  • dotnet core 3.1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

Hi @mauve. Thank you for your feedback and we regret that you’re experiencing difficulties. Tagging and routing to the team member best able to assist.