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