diff --git a/README.md b/README.md
index 237e22b..491535e 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,6 @@ Then the plugins will be in `build/distributions`
- Filtered log indicator
- Autoscroll option
- Wrap / Unwarp line in json display
-- Filter box
- Group by operationId
- Alternative display of json section with clickable things like excetpions, or button to filter similar log (operationId, or other properties)
diff --git a/build.gradle b/build.gradle
index 34e92f5..0044cb2 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ plugins {
}
group 'fr.socolin'
-version '1.0.4'
+version '1.0.5'
if (buildType == 'eap') {
version = "$version-EAP"
@@ -52,6 +52,10 @@ patchPluginXml {
version = project.version
changeNotes """
+ - 1.0.5
+
+ - Add filter fields. That allow to filtering logs matching the text
+
- 1.0.4
- Add numbers of each metrics. It allow to notify there are metrics coming in even when they are filtered out
diff --git a/src/main/java/fr/socolin/applicationinsights/ApplicationInsightsSession.java b/src/main/java/fr/socolin/applicationinsights/ApplicationInsightsSession.java
index f242a23..70b521b 100644
--- a/src/main/java/fr/socolin/applicationinsights/ApplicationInsightsSession.java
+++ b/src/main/java/fr/socolin/applicationinsights/ApplicationInsightsSession.java
@@ -22,6 +22,7 @@ public class ApplicationInsightsSession {
private Consumer> updateAllTelemetries;
@Nullable
private Consumer> updateVisibleTelemetries;
+ private String filter = "";
public ApplicationInsightsSession(
TelemetryFactory telemetryFactory,
@@ -73,6 +74,7 @@ private void updateFilteredTelemetries() {
synchronized (telemetries) {
filteredTelemetries = telemetries.stream()
.filter(e -> enabledTelemetryTypes.contains(e.getType()))
+ .filter(e -> filter.equals("") || e.getJson().contains(filter))
.collect(Collectors.toList());
}
if (updateAllTelemetries != null)
@@ -92,4 +94,9 @@ public void registerChanges(BiConsumer addedTelemetry, Consu
public List getFilteredTelemetries() {
return Collections.unmodifiableList(this.filteredTelemetries);
}
+
+ public void updateFilter(String filter) {
+ this.filter = filter;
+ updateFilteredTelemetries();
+ }
}
diff --git a/src/main/java/fr/socolin/applicationinsights/toolwindows/AppInsightsToolWindow.form b/src/main/java/fr/socolin/applicationinsights/toolwindows/AppInsightsToolWindow.form
index 5e8debf..64307e7 100644
--- a/src/main/java/fr/socolin/applicationinsights/toolwindows/AppInsightsToolWindow.form
+++ b/src/main/java/fr/socolin/applicationinsights/toolwindows/AppInsightsToolWindow.form
@@ -1,6 +1,6 @@