1 write to Attributes
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
58Attributes = attributes;
19 references to Attributes
Aspire.Dashboard (7)
Components\Controls\StructuredLogDetails.razor.cs (1)
76var attributes = _viewModel.LogEntry.Attributes
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
627var evaluation = ParseEvaluationFromAttributes(logEntry.Attributes);
Model\TelemetryExportService.cs (1)
261Attributes = ConvertAttributes(log.Attributes, () =>
Otlp\Model\OtlpHelpers.cs (2)
555if (GetValue(logEntry.Attributes, "event.name") is { Length: > 0 } eventName) 560if (GetValue(logEntry.Attributes, "logrecord.event.name") is { Length: > 0 } logRecordEventName)
Otlp\Model\OtlpLogEntry.cs (2)
75_ => log.Attributes.GetValue(field) 106return logEntry.Attributes.GetValue(propertyName);
Aspire.Dashboard.Tests (12)
Integration\OtlpHttpJsonTests.cs (2)
604Assert.Collection(log.Attributes, 677Assert.Collection(log.Attributes,
Model\TelemetryImportServiceTests.cs (2)
420Assert.DoesNotContain(importedLogs.Items[0].Attributes, a => a.Key == OtlpHelpers.AspireLogIdAttribute); 426Assert.Contains(importedLogs.Items[0].Attributes, a => a.Key == "custom.attr" && a.Value == "custom-value");
TelemetryRepositoryTests\LogTests.cs (8)
82Assert.Collection(resource.Attributes, 926Assert.Collection(resource.Attributes, 1233Assert.Collection(resource.Attributes, 1256Assert.Collection(resource.Attributes, 1329Assert.Collection(resource.Attributes, 1340Assert.Collection(resource.Attributes, 1680Assert.DoesNotContain(resource.Attributes, a => a.Key == "logrecord.event.name"); 1954Assert.All(logs, log => Assert.Equal(attributes, log.Attributes));