24 writes to Value
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
167
Value
= _formModel.Value!
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)
68
Value
= 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)
20
Value
= "test:value"
40
Value
= "test+value"
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 }
22 references to Value
Aspire.Dashboard (10)
Extensions\TelemetryFilterFormatter.cs (1)
26
return $"{Escape(filter.Field)}:{condition}:{Escape(filter.
Value
)}";
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
}";
105
var date = DateTime.Parse(
Value
, CultureInfo.InvariantCulture);
111
if (Enum.TryParse<LogLevel>(
Value
, ignoreCase: true, out var value))
121
return input.Where(x => func(x.Message,
Value
));
126
return input.Where(x => func(OtlpLogEntry.GetFieldValue(x, Field),
Value
));
135
return func(fieldValue,
Value
);
155
if (!string.Equals(
Value
, other.
Value
, StringComparison.OrdinalIgnoreCase))
Aspire.Dashboard.Components.Tests (10)
Pages\StructuredLogsTests.cs (10)
56
Assert.Equal("123", f.
Value
);
61
Assert.Equal("456", f.
Value
);
97
Assert.Equal(filter.
Value
, f.
Value
);
135
Assert.Equal(filter1.
Value
, f.
Value
);
141
Assert.Equal(filter2.
Value
, f.
Value
);
147
Assert.Equal(filter3.
Value
, f.
Value
);
Aspire.Dashboard.Tests (2)
TelemetryFilterFormatterTests.cs (2)
29
Assert.Equal("test:value", filter.
Value
);
49
Assert.Equal("test+value", filter.
Value
);