24 writes to Condition
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
166Condition = _formModel.Condition!.Id,
Components\Pages\StructuredLogs.razor.cs (2)
149Field = KnownStructuredLogFields.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId 156Field = KnownStructuredLogFields.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId
Extensions\TelemetryFilterFormatter.cs (1)
66Condition = condition.Value,
Model\StructuredLogsViewModel.cs (2)
85filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Message), Condition = FilterCondition.Contains, Value = FilterText }); 90filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() });
Aspire.Dashboard.Components.Tests (4)
Pages\StructuredLogsTests.cs (4)
71var filter = new TelemetryFilter { Field = "TestField", Condition = FilterCondition.Contains, Value = "TestValue" }; 107var filter1 = new TelemetryFilter { Field = "Test:Field", Condition = FilterCondition.Contains, Value = "Test Value" }; 108var filter2 = new TelemetryFilter { Field = "Test!@#", Condition = FilterCondition.Contains, Value = "http://localhost#fragment?hi=true" }; 109var filter3 = new TelemetryFilter { Field = "\u2764\uFE0F", Condition = FilterCondition.Contains, Value = "\u4F60" };
Aspire.Dashboard.Tests (14)
DashboardUrlsTests.cs (4)
35new TelemetryFilter { Condition = FilterCondition.Contains, Field = "test", Value = "value" } 46new TelemetryFilter { Condition = FilterCondition.Contains, Field = "test", Value = "value" }, 47new TelemetryFilter { Condition = FilterCondition.GreaterThan, Field = "fieldWithSpacedValue", Value = "!! multiple words here !!" }, 48new TelemetryFilter { Condition = FilterCondition.NotEqual, Field = "name", Value = "nameValue" },
TelemetryFilterFormatterTests.cs (2)
19Condition = FilterCondition.Equals, 39Condition = FilterCondition.Equals,
TelemetryRepositoryTests\LogTests.cs (2)
773Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "does_not_contain" }] 781Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "message" }]
TelemetryRepositoryTests\TraceTests.cs (6)
1183new TelemetryFilter { Field = "key1", Condition = FilterCondition.Equals, Value = "value1" } 1202new TelemetryFilter { Field = "key2", Condition = FilterCondition.Equals, Value = "value2" } 1221new TelemetryFilter { Field = "key1", Condition = FilterCondition.Equals, Value = "value1" }, 1222new TelemetryFilter { Field = "key2", Condition = FilterCondition.Equals, Value = "value2" } 1271new TelemetryFilter { Field = name, Condition = FilterCondition.NotEqual, Value = value } 1287new TelemetryFilter { Field = name, Condition = FilterCondition.Equals, Value = value }
18 references to Condition
Aspire.Dashboard (10)
Extensions\TelemetryFilterFormatter.cs (1)
13var condition = filter.Condition switch
Model\Otlp\TelemetryFilter.cs (9)
19private string DebuggerDisplayText => $"{Field} {ConditionToString(Condition, null)} {Value}"; 21public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}"; 106var func = ConditionToFuncDate(Condition); 113var func = ConditionToFuncNumber(Condition); 120var func = ConditionToFuncString(Condition); 125var func = ConditionToFuncString(Condition); 134var func = ConditionToFuncString(Condition); 150if (Condition != other.Condition)
Aspire.Dashboard.Components.Tests (8)
Pages\StructuredLogsTests.cs (8)
96Assert.Equal(filter.Condition, f.Condition); 134Assert.Equal(filter1.Condition, f.Condition); 140Assert.Equal(filter2.Condition, f.Condition); 146Assert.Equal(filter3.Condition, f.Condition);