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