1 write to Attributes
Aspire.Dashboard (1)
Otlp\Model\MetricValues\DimensionScope.cs (1)
26Attributes = attributes;
10 references to Attributes
Aspire.Dashboard (3)
Components\Controls\Chart\ChartContainer.razor.cs (1)
120if (!MatchFilter(dimension.Attributes, dimensionFilter))
Otlp\Model\MetricValues\DimensionScope.cs (2)
27var name = Attributes.ConcatProperties(); 155var newDimensionScope = new DimensionScope(value.Capacity, value.Attributes);
Aspire.Dashboard.Tests (7)
TelemetryRepositoryTests\MetricsTests.cs (7)
179var dimensionAttributes = instrument.Dimensions.Single().Attributes; 275var dimensionAttributes = instrument.Dimensions.Single().Attributes; 386var dimension = instrumentData.Dimensions.Single(d => d.Attributes.Length == 0); 597Assert.Equal(KeyValuePair.Create("key-1", "value-1"), d.Attributes.Single()); 602Assert.Equal(KeyValuePair.Create("key-1", "value-2"), d.Attributes.Single()); 607Assert.Equal(KeyValuePair.Create("key-1", "value-3"), d.Attributes.Single()); 623Assert.True(Enumerable.SequenceEqual(MemoryMarshal.ToEnumerable(key), scope.Attributes), "Key and attributes don't match.");