15 references to Contains
Aspire.Dashboard (7)
Components\Dialogs\FilterDialog.razor.cs (2)
41
CreateFilterSelectViewModel(FilterCondition.
Contains
),
80
_formModel.Condition = _filterConditions.Single(c => c.Id == FilterCondition.
Contains
);
Extensions\TelemetryFilterFormatter.cs (2)
16
FilterCondition.
Contains
=> "contains",
47
"contains" => FilterCondition.
Contains
,
Model\Otlp\TelemetryFilter.cs (2)
47
FilterCondition.
Contains
=> loc?[nameof(StructuredFiltering.ConditionContains)] ?? "contains",
61
FilterCondition.
Contains
=> (a, b) => a != null && a.Contains(b, StringComparisons.OtlpFieldValue),
Model\StructuredLogsViewModel.cs (1)
85
filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Message), Condition = FilterCondition.
Contains
, Value = FilterText });
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 (4)
DashboardUrlsTests.cs (2)
35
new TelemetryFilter { Condition = FilterCondition.
Contains
, Field = "test", Value = "value" }
46
new TelemetryFilter { Condition = FilterCondition.
Contains
, Field = "test", Value = "value" },
TelemetryRepositoryTests\LogTests.cs (2)
814
Filters = [new TelemetryFilter { Condition = FilterCondition.
Contains
, Field = nameof(OtlpLogEntry.Message), Value = "does_not_contain" }]
822
Filters = [new TelemetryFilter { Condition = FilterCondition.
Contains
, Field = nameof(OtlpLogEntry.Message), Value = "message" }]