Skip to content

Commit

Permalink
Proto change for adding EXISTS and NOT_EXISTS operator in span exclus…
Browse files Browse the repository at this point in the history
…ion rules (#231)
  • Loading branch information
AnandShivansh authored Aug 28, 2024
1 parent e9bad2a commit 6620851
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ message SpanFilter {
oneof span_filter_expression {
LogicalSpanFilterExpression logical_span_filter = 1;
RelationalSpanFilterExpression relational_span_filter = 2;
UnarySpanFilterExpression unary_span_filter = 3;
}
}

Expand All @@ -16,6 +17,14 @@ message LogicalSpanFilterExpression {
repeated SpanFilter operands = 2;
}

message UnarySpanFilterExpression {
oneof left_operand {
string span_attribute_key = 1;
Field field = 2;
}
UnaryOperator operator = 3;
}

message RelationalSpanFilterExpression {
oneof left_operand {
string span_attribute_key = 1;
Expand Down Expand Up @@ -61,3 +70,9 @@ enum RelationalOperator {
RELATIONAL_OPERATOR_REGEX_MATCH = 6;
RELATIONAL_OPERATOR_IN = 7;
}

enum UnaryOperator {
UNARY_OPERATOR_UNSPECIFIED = 0;
UNARY_OPERATOR_EXISTS = 1;
UNARY_OPERATOR_NOT_EXISTS = 2;
}

0 comments on commit 6620851

Please sign in to comment.