1 write to Attributes
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
41Attributes = record.Attributes.ToKeyValuePairs(context, filter: attribute =>
21 references to Attributes
Aspire.Dashboard (10)
Components\Controls\StructuredLogDetails.razor.cs (1)
85var attributes = _viewModel.LogEntry.Attributes
Components\Pages\StructuredLogs.razor.cs (2)
550if (GenAIHelpers.HasGenAIAttribute(logEntry.Attributes)) 615if (GenAIHelpers.HasGenAIAttribute(l.Attributes) || GenAIHelpers.HasGenAIAttribute(span.Attributes))
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
593var evaluation = ParseEvaluationFromAttributes(logEntry.Attributes);
Model\TelemetryExportService.cs (1)
268Attributes = ConvertAttributes(log.Attributes, () =>
Otlp\Model\OtlpHelpers.cs (2)
499if (GetValue(logEntry.Attributes, "event.name") is { Length: > 0 } eventName) 504if (GetValue(logEntry.Attributes, "logrecord.event.name") is { Length: > 0 } logRecordEventName)
Otlp\Model\OtlpLogEntry.cs (2)
138_ => log.Attributes.GetValue(field) 169return logEntry.Attributes.GetValue(propertyName);
Otlp\Storage\TelemetryRepository.cs (1)
390foreach (var kvp in logEntry.Attributes)
Aspire.Dashboard.Tests (11)
Integration\OtlpHttpJsonTests.cs (2)
509Assert.Collection(log.Attributes, 582Assert.Collection(log.Attributes,
Model\TelemetryImportServiceTests.cs (2)
369Assert.DoesNotContain(importedLogs.Items[0].Attributes, a => a.Key == OtlpHelpers.AspireLogIdAttribute); 375Assert.Contains(importedLogs.Items[0].Attributes, a => a.Key == "custom.attr" && a.Value == "custom-value");
TelemetryRepositoryTests\LogTests.cs (7)
80Assert.Collection(resource.Attributes, 672Assert.Collection(resource.Attributes, 939Assert.Collection(resource.Attributes, 962Assert.Collection(resource.Attributes, 1035Assert.Collection(resource.Attributes, 1046Assert.Collection(resource.Attributes, 1386Assert.DoesNotContain(resource.Attributes, a => a.Key == "logrecord.event.name");