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