24 writes to Field
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
165
Field
= _formModel.Parameter!.Id!,
Components\Pages\StructuredLogs.razor.cs (2)
149
Field
= KnownStructuredLogFields.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId
156
Field
= KnownStructuredLogFields.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId
Extensions\TelemetryFilterFormatter.cs (1)
67
Field
= field,
Model\StructuredLogsViewModel.cs (2)
85
filters.Add(new TelemetryFilter {
Field
= nameof(OtlpLogEntry.Message), Condition = FilterCondition.Contains, Value = FilterText });
90
filters.Add(new TelemetryFilter {
Field
= nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() });
Aspire.Dashboard.Components.Tests (4)
Pages\StructuredLogsTests.cs (4)
71
var filter = new TelemetryFilter {
Field
= "TestField", Condition = FilterCondition.Contains, Value = "TestValue" };
107
var filter1 = new TelemetryFilter {
Field
= "Test:Field", Condition = FilterCondition.Contains, Value = "Test Value" };
108
var filter2 = new TelemetryFilter {
Field
= "Test!@#", Condition = FilterCondition.Contains, Value = "http://localhost#fragment?hi=true" };
109
var filter3 = new TelemetryFilter {
Field
= "\u2764\uFE0F", Condition = FilterCondition.Contains, Value = "\u4F60" };
Aspire.Dashboard.Tests (14)
DashboardUrlsTests.cs (4)
35
new TelemetryFilter { Condition = FilterCondition.Contains,
Field
= "test", Value = "value" }
46
new TelemetryFilter { Condition = FilterCondition.Contains,
Field
= "test", Value = "value" },
47
new TelemetryFilter { Condition = FilterCondition.GreaterThan,
Field
= "fieldWithSpacedValue", Value = "!! multiple words here !!" },
48
new TelemetryFilter { Condition = FilterCondition.NotEqual,
Field
= "name", Value = "nameValue" },
TelemetryFilterFormatterTests.cs (2)
18
Field
= "test:name",
38
Field
= "test+name",
TelemetryRepositoryTests\LogTests.cs (2)
773
Filters = [new TelemetryFilter { Condition = FilterCondition.Contains,
Field
= nameof(OtlpLogEntry.Message), Value = "does_not_contain" }]
781
Filters = [new TelemetryFilter { Condition = FilterCondition.Contains,
Field
= nameof(OtlpLogEntry.Message), Value = "message" }]
TelemetryRepositoryTests\TraceTests.cs (6)
1183
new TelemetryFilter {
Field
= "key1", Condition = FilterCondition.Equals, Value = "value1" }
1202
new TelemetryFilter {
Field
= "key2", Condition = FilterCondition.Equals, Value = "value2" }
1221
new TelemetryFilter {
Field
= "key1", Condition = FilterCondition.Equals, Value = "value1" },
1222
new TelemetryFilter {
Field
= "key2", Condition = FilterCondition.Equals, Value = "value2" }
1271
new TelemetryFilter {
Field
= name, Condition = FilterCondition.NotEqual, Value = value }
1287
new TelemetryFilter {
Field
= name, Condition = FilterCondition.Equals, Value = value }
20 references to Field
Aspire.Dashboard (8)
Extensions\TelemetryFilterFormatter.cs (1)
26
return $"{Escape(filter.
Field
)}:{condition}:{Escape(filter.Value)}";
Model\Otlp\TelemetryFilter.cs (7)
19
private string DebuggerDisplayText => $"{
Field
} {ConditionToString(Condition, null)} {Value}";
21
public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(
Field
)} {ConditionToString(Condition, loc)} {Value}";
101
switch (
Field
)
126
return input.Where(x => func(OtlpLogEntry.GetFieldValue(x,
Field
), Value));
133
var fieldValue = OtlpSpan.GetFieldValue(span,
Field
);
145
if (
Field
!= other.
Field
)
Aspire.Dashboard.Components.Tests (10)
Pages\StructuredLogsTests.cs (10)
55
Assert.Equal(KnownStructuredLogFields.TraceIdField, f.
Field
);
60
Assert.Equal(KnownStructuredLogFields.SpanIdField, f.
Field
);
95
Assert.Equal(filter.
Field
, f.
Field
);
133
Assert.Equal(filter1.
Field
, f.
Field
);
139
Assert.Equal(filter2.
Field
, f.
Field
);
145
Assert.Equal(filter3.
Field
, f.
Field
);
Aspire.Dashboard.Tests (2)
TelemetryFilterFormatterTests.cs (2)
28
Assert.Equal("test:name", filter.
Field
);
48
Assert.Equal("test+name", filter.
Field
);