Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.19k stars 4.55k forks source link

[BUG] Start an internal activity raise a Dependency Call Failure in Live metrics #44889

Open luox78 opened 1 week ago

luox78 commented 1 week ago

Library name and version

Azure.Monitor.OpenTelemetry.AspNetCore 1.2.0

Describe the bug

when I start an internal activity, a dependency failure was raised without specifying a status image

Expected behavior

Shouldn't show failure

Actual behavior

show failure

Reproduction Steps

  public static readonly ActivitySource TaskActivitySource  = new("task");

var activity = TaskActivitySource.StartActivity($"BackgroundTask test",
    ActivityKind.Internal, parentContext: default);

activity?.SetStatus(ActivityStatusCode.Ok);
activity?.Stop();

addservice

services.AddOpenTelemetry().WithTracing(t => t.AddSource("task")).UseAzureMonitor();

Environment

.NET 8.0.4

github-actions[bot] commented 1 week ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @cijothomas @rajkumar-rangaraj @reyang @TimothyMothra @vishweshbankwar.

TimothyMothra commented 1 day ago

I found the bug. working on a fix.