-
Notifications
You must be signed in to change notification settings - Fork 854
Aspire Dashboard Metrics: Meter tags do not display #4380
Copy link
Copy link
Closed
Labels
area-dashboardarea-telemetryTelemetry from the Aspire app to the dashboardTelemetry from the Aspire app to the dashboardblocked
Description
Originally posted in the open-telemetry/opentelemetry-dotnet#5669 (comment) but re-directing here:
Aspire dashboard does not show Meter defined Tags in the dashboard
Example code:
// See https://aka.ms/new-console-template for more information
using System.Diagnostics.Metrics;
using OpenTelemetry;
using OpenTelemetry.Metrics;
using OpenTelemetry.Resources;
using var meter = new Meter("TestMeter", "1.0.0", new[]
{
new KeyValuePair<string, object?>("namespace", "jacklocaldev")
});
var providerBuilder = Sdk.CreateMeterProviderBuilder()
.ConfigureResource(r => r.AddService("testservice"))
.AddMeter(meter.Name); // All instruments from this meter are enabled.
providerBuilder.AddOtlpExporter();
var provider = providerBuilder.Build();
while (true)
{
await Task.Delay(TimeSpan.FromSeconds(1));
meter.CreateCounter<int>("foo").Add(1);
}
Aspire Dashboard:
I would be expecting the namespace tag to show.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-dashboardarea-telemetryTelemetry from the Aspire app to the dashboardTelemetry from the Aspire app to the dashboardblocked
