1 write to Attributes
Aspire.Dashboard (1)
Otlp\Model\OtlpLogEntry.cs (1)
37
Attributes
= record.Attributes.ToKeyValuePairs(context, filter: attribute =>
18 references to Attributes
Aspire.Dashboard (12)
Components\Controls\StructuredLogDetails.razor.cs (1)
81
var attributes = _viewModel.LogEntry.
Attributes
Components\Pages\StructuredLogs.razor.cs (2)
551
if (GenAIHelpers.HasGenAIAttribute(logEntry.
Attributes
))
618
if (GenAIHelpers.HasGenAIAttribute(l.
Attributes
) || GenAIHelpers.HasGenAIAttribute(span.Attributes))
Model\Assistant\AIHelpers.cs (1)
347
["attributes"] = l.
Attributes
Model\GenAI\GenAIVisualizerDialogViewModel.cs (3)
268
if (!string.IsNullOrEmpty(item.Message) && item.
Attributes
.GetValue("event.name") is { } name && TryMapEventName(name, out var type))
637
if (logEntry.
Attributes
.GetValue("event.name") == GenAIHelpers.GenAIEvaluationResultEventName)
639
var evaluation = ParseEvaluationFromAttributes(logEntry.
Attributes
);
Model\StructureLogsDetailsViewModel.cs (2)
15
var eventName = OtlpHelpers.GetValue(logEntry.
Attributes
, "event.name")
16
?? OtlpHelpers.GetValue(logEntry.
Attributes
, "logrecord.event.name")
Otlp\Model\OtlpLogEntry.cs (2)
122
_ => log.
Attributes
.GetValue(field)
153
return logEntry.
Attributes
.GetValue(propertyName);
Otlp\Storage\TelemetryRepository.cs (1)
381
foreach (var kvp in logEntry.
Attributes
)
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\LogTests.cs (6)
80
Assert.Collection(resource.
Attributes
,
672
Assert.Collection(resource.
Attributes
,
892
Assert.Collection(resource.
Attributes
,
915
Assert.Collection(resource.
Attributes
,
988
Assert.Collection(resource.
Attributes
,
999
Assert.Collection(resource.
Attributes
,