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