10 writes to Name
Aspire.Dashboard (3)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (2)
1528Name = other.Name; 1670Name = input.ReadString();
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (1)
384metric.Name = json.Name;
Aspire.Dashboard.Components.Tests (2)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
72Name = metricName, 97Name = metricName,
Aspire.Dashboard.Tests (5)
TelemetryRepositoryTests\MetricsTests.cs (3)
1149Name = "test", 1317Name = "test", 1400Name = "test",
tests\Shared\Telemetry\TelemetryTestHelpers.cs (2)
72Name = metricName, 97Name = metricName,
23 references to Name
Aspire.Dashboard (23)
artifacts\obj\Aspire.Dashboard\Debug\net8.0\opentelemetry\proto\metrics\v1\Metrics.cs (10)
1359if (Name != other.Name) return false; 1376if (Name.Length != 0) hash ^= Name.GetHashCode(); 1447if (Name.Length != 0) { 1449output.WriteString(Name); 1490if (Name.Length != 0) { 1491size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1527if (other.Name.Length != 0) { 1528Name = other.Name;
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (12)
269if (string.IsNullOrEmpty(metric.Name)) 276if (resourceScope.Instruments.TryGetValue(metric.Name, out var instrument)) 282if (resourceScope.Instruments.TryGetValue(metric.Name, out instrument)) 293throw new InvalidOperationException($"Instrument limit of {TelemetryRepositoryLimits.MaxInstrumentCount} reached. Instrument '{metric.Name}' will not be added."); 309InstrumentName = metric.Name, 322InstrumentName = metric.Name, 349.Where(metric => !string.IsNullOrEmpty(metric.Name) && metric.DataCase is 351.DistinctBy(metric => metric.Name, StringComparer.Ordinal) 352.Where(metric => !resourceScope.Instruments.ContainsKey(metric.Name)) 383parameters.Add($"InstrumentName{index}", batch[index].Name); 395var metricsByName = batch.ToDictionary(metric => metric.Name, StringComparer.Ordinal); 407InstrumentName = metric.Name,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
139_otlpContext.Logger.LogInformation(exception, "Error adding metric instrument {MetricName}.", metric.Name);