Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilterX null coalescing assignments #395

Merged
merged 10 commits into from
Nov 29, 2024
Merged

Conversation

MrAnno
Copy link
Member

@MrAnno MrAnno commented Nov 28, 2024

This introduces the =?? operator.

It brings some performance improvement as well when constructs like the below are replaced with these operators:

# if (isset($PROGRAM)) {
#   resource.attributes['service.name'] = $PROGRAM;
# };

resource.attributes['service.name'] =?? $PROGRAM;

Depends on #390

@MrAnno MrAnno marked this pull request as draft November 28, 2024 11:25
MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Nov 28, 2024
Signed-off-by: László Várady <[email protected]>
@MrAnno MrAnno marked this pull request as ready for review November 28, 2024 14:22
MrAnno added a commit to MrAnno/axosyslog that referenced this pull request Nov 28, 2024
Signed-off-by: László Várady <[email protected]>
alltilla
alltilla previously approved these changes Nov 29, 2024
@MrAnno MrAnno dismissed alltilla’s stale review November 29, 2024 09:44

The merge-base changed after approval.

This is a preparation step for introducing the =? assignment.
We should evaluate operands consistently, and from now on,
the evaluation order is from right to left.

Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
This is a preparation step for introducing the =? assignment.
We should evaluate operands consistently, and from now on,
the evaluation order is from right to left.

Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
Signed-off-by: László Várady <[email protected]>
@alltilla alltilla merged commit 32386f5 into axoflow:main Nov 29, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants