1 write to Attributes
Aspire.Dashboard (1)
Model\TelemetryExportService.cs (1)
261
Attributes
= ConvertAttributes(log.Attributes, () =>
10 references to Attributes
Aspire.Dashboard (2)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
313
if (json.
Attributes
is not null)
315
foreach (var attr in json.
Attributes
)
Aspire.Dashboard.Tests (8)
Model\TelemetryExportServiceTests.cs (7)
99
Assert.NotNull(logRecord.
Attributes
);
100
Assert.Contains(logRecord.
Attributes
, a => a.Key == "custom.attr" && a.Value?.StringValue == "custom-value");
135
Assert.NotNull(logRecord.
Attributes
);
138
var logIdAttribute = Assert.Single(logRecord.
Attributes
, a => a.Key == OtlpHelpers.AspireLogIdAttribute);
833
Assert.All(exportedLogs, log => Assert.Contains(log.
Attributes
!, attribute => attribute.Key == "log.index"));
1026
Assert.NotNull(logRecord.
Attributes
);
1027
var japaneseAttr = Assert.Single(logRecord.
Attributes
, a => a.Key == "japanese.attr");
Model\TelemetryImportServiceTests.cs (1)
383
Assert.Contains(exportedLogRecord.
Attributes
!, a => a.Key == OtlpHelpers.AspireLogIdAttribute && a.Value?.StringValue == originalInternalId.ToString(CultureInfo.InvariantCulture));