Skip to content

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

@luox78

Description

@luox78

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

Metadata

Metadata

Labels

ClientThis issue is related to a non-management packageMonitor - ExporterMonitor OpenTelemetry ExporterService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions