You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Hi, I tested this out and confirmed what you're seeing. I believe the issue is inside opentelemetry-dotnet. It doesn't send the meter tags so it's impossible for the dashboard to display them.
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:
Aspire Dashboard:
I would be expecting the
namespace
tag to show.The text was updated successfully, but these errors were encountered: