24 writes to Condition
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
166
Condition
= _formModel.Condition!.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)
66
Condition
= condition.Value,
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)
19
Condition
= FilterCondition.Equals,
39
Condition
= FilterCondition.Equals,
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 }
18 references to Condition
Aspire.Dashboard (10)
Extensions\TelemetryFilterFormatter.cs (1)
13
var condition = filter.
Condition
switch
Model\Otlp\TelemetryFilter.cs (9)
19
private string DebuggerDisplayText => $"{Field} {ConditionToString(
Condition
, null)} {Value}";
21
public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(
Condition
, loc)} {Value}";
106
var func = ConditionToFuncDate(
Condition
);
113
var func = ConditionToFuncNumber(
Condition
);
120
var func = ConditionToFuncString(
Condition
);
125
var func = ConditionToFuncString(
Condition
);
134
var func = ConditionToFuncString(
Condition
);
150
if (
Condition
!= other.
Condition
)
Aspire.Dashboard.Components.Tests (8)
Pages\StructuredLogsTests.cs (8)
96
Assert.Equal(filter.
Condition
, f.
Condition
);
134
Assert.Equal(filter1.
Condition
, f.
Condition
);
140
Assert.Equal(filter2.
Condition
, f.
Condition
);
146
Assert.Equal(filter3.
Condition
, f.
Condition
);