From 3b8b49495c7bdef04d54f1503aedcac2f4c37bd8 Mon Sep 17 00:00:00 2001 From: SrikarMannepalli <37926341+SrikarMannepalli@users.noreply.github.com> Date: Sat, 2 Sep 2023 07:18:00 +0530 Subject: [PATCH] add support for does not contain span filter operator (#196) --- hypertrace-graphql-platform/build.gradle.kts | 2 +- .../spanprocessing/dao/ConfigServiceSpanFilterConverter.java | 3 +++ .../schema/rule/filter/SpanProcessingRelationalOperator.java | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hypertrace-graphql-platform/build.gradle.kts b/hypertrace-graphql-platform/build.gradle.kts index 4f694b95..c9fde202 100644 --- a/hypertrace-graphql-platform/build.gradle.kts +++ b/hypertrace-graphql-platform/build.gradle.kts @@ -13,6 +13,6 @@ dependencies { api("org.hypertrace.config.service:spaces-config-service-api:0.1.1") api("org.hypertrace.config.service:labels-config-service-api:0.1.15") api("org.hypertrace.config.service:label-application-rule-config-service-api:0.1.52") - api("org.hypertrace.config.service:span-processing-config-service-api:0.1.41") + api("org.hypertrace.config.service:span-processing-config-service-api:0.1.54") } } diff --git a/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/dao/ConfigServiceSpanFilterConverter.java b/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/dao/ConfigServiceSpanFilterConverter.java index 7a9d837f..60106275 100644 --- a/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/dao/ConfigServiceSpanFilterConverter.java +++ b/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/dao/ConfigServiceSpanFilterConverter.java @@ -43,6 +43,9 @@ public class ConfigServiceSpanFilterConverter { .put( RelationalOperator.RELATIONAL_OPERATOR_CONTAINS, SpanProcessingRelationalOperator.CONTAINS) + .put( + RelationalOperator.RELATIONAL_OPERATOR_NOT_CONTAINS, + SpanProcessingRelationalOperator.NOT_CONTAINS) .put( RelationalOperator.RELATIONAL_OPERATOR_EQUALS, SpanProcessingRelationalOperator.EQUALS) diff --git a/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/schema/rule/filter/SpanProcessingRelationalOperator.java b/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/schema/rule/filter/SpanProcessingRelationalOperator.java index a56fd19a..14d16c88 100644 --- a/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/schema/rule/filter/SpanProcessingRelationalOperator.java +++ b/hypertrace-graphql-span-processing-schema/src/main/java/org/hypertrace/graphql/spanprocessing/schema/rule/filter/SpanProcessingRelationalOperator.java @@ -7,6 +7,7 @@ public enum SpanProcessingRelationalOperator { EQUALS, NOT_EQUALS, CONTAINS, + NOT_CONTAINS, STARTS_WITH, ENDS_WITH, REGEX_MATCH,