24 instantiations of TelemetryFilter
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
163
filter = new
TelemetryFilter
Components\Pages\StructuredLogs.razor.cs (2)
147
ViewModel.AddFilter(new
TelemetryFilter
154
ViewModel.AddFilter(new
TelemetryFilter
Extensions\TelemetryFilterFormatter.cs (1)
64
return new
TelemetryFilter
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)
16
new
TelemetryFilter
36
new
TelemetryFilter
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 }
33 references to TelemetryFilter
Aspire.Dashboard (27)
Components\Dialogs\FilterDialog.razor.cs (3)
18
new SelectViewModel<FilterCondition> { Id = condition, Name =
TelemetryFilter
.ConditionToString(condition, FilterLoc) };
54
var knownFields = Content.KnownKeys.Select(p => new SelectViewModel<string> { Id = p, Name =
TelemetryFilter
.ResolveFieldName(p) }).ToList();
55
var customFields = Content.PropertyKeys.Select(p => new SelectViewModel<string> { Id = p, Name =
TelemetryFilter
.ResolveFieldName(p) }).ToList();
Components\Pages\StructuredLogs.razor.cs (3)
269
private async Task OpenFilterAsync(
TelemetryFilter
? entry)
298
if (result.Data is FilterDialogResult filterResult && filterResult.Filter is
TelemetryFilter
filter)
416
foreach (
var
filter in filters)
Components\Pages\Traces.razor.cs (3)
256
foreach (
var
filter in filters)
284
private async Task OpenFilterAsync(
TelemetryFilter
? entry)
313
if (result.Data is FilterDialogResult filterResult && filterResult.Filter is
TelemetryFilter
filter)
Extensions\TelemetryFilterFormatter.cs (5)
11
private static string SerializeFilterToString(
TelemetryFilter
filter)
29
public static string SerializeFiltersToString(IEnumerable<
TelemetryFilter
> filters)
34
private static
TelemetryFilter
? DeserializeFilterFromString(string filterString)
82
public static List<
TelemetryFilter
> DeserializeFiltersFromString(string filtersString)
88
.Cast<
TelemetryFilter
>()
Model\Otlp\DialogFilterResult.cs (1)
8
public
TelemetryFilter
? Filter { get; set; }
Model\Otlp\TelemetryFilter.cs (2)
13
public class TelemetryFilter : IEquatable<
TelemetryFilter
>
138
public bool Equals(
TelemetryFilter
? other)
Model\StructuredLogsViewModel.cs (5)
13
private readonly List<
TelemetryFilter
> _filters = new();
29
public IReadOnlyList<
TelemetryFilter
> Filters => _filters;
37
public void AddFilter(
TelemetryFilter
filter)
40
foreach (
var
existingFilter in _filters)
52
public bool RemoveFilter(
TelemetryFilter
filter)
Model\TracesViewModel.cs (5)
13
private readonly List<
TelemetryFilter
> _filters = new();
31
public IReadOnlyList<
TelemetryFilter
> Filters => _filters;
39
public void AddFilter(
TelemetryFilter
filter)
42
foreach (
var
existingFilter in _filters)
54
public bool RemoveFilter(
TelemetryFilter
filter)
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 (2)
TelemetryFilterFormatterTests.cs (2)
26
var
filter = Assert.Single(filters);
46
var
filter = Assert.Single(filters);