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