24 writes to Field
Aspire.Dashboard (6)
Components\Dialogs\FilterDialog.razor.cs (1)
165Field = _formModel.Parameter!.Id!,
Components\Pages\StructuredLogs.razor.cs (2)
149Field = KnownStructuredLogFields.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId 156Field = KnownStructuredLogFields.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId
Extensions\TelemetryFilterFormatter.cs (1)
67Field = field,
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)
18Field = "test:name", 38Field = "test+name",
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 }
20 references to Field
Aspire.Dashboard (8)
Extensions\TelemetryFilterFormatter.cs (1)
26return $"{Escape(filter.Field)}:{condition}:{Escape(filter.Value)}";
Model\Otlp\TelemetryFilter.cs (7)
19private string DebuggerDisplayText => $"{Field} {ConditionToString(Condition, null)} {Value}"; 21public string GetDisplayText(IStringLocalizer<StructuredFiltering> loc) => $"{ResolveFieldName(Field)} {ConditionToString(Condition, loc)} {Value}"; 101switch (Field) 126return input.Where(x => func(OtlpLogEntry.GetFieldValue(x, Field), Value)); 133var fieldValue = OtlpSpan.GetFieldValue(span, Field); 145if (Field != other.Field)
Aspire.Dashboard.Components.Tests (10)
Pages\StructuredLogsTests.cs (10)
55Assert.Equal(KnownStructuredLogFields.TraceIdField, f.Field); 60Assert.Equal(KnownStructuredLogFields.SpanIdField, f.Field); 95Assert.Equal(filter.Field, f.Field); 133Assert.Equal(filter1.Field, f.Field); 139Assert.Equal(filter2.Field, f.Field); 145Assert.Equal(filter3.Field, f.Field);
Aspire.Dashboard.Tests (2)
TelemetryFilterFormatterTests.cs (2)
28Assert.Equal("test:name", filter.Field); 48Assert.Equal("test+name", filter.Field);