cel-java icon indicating copy to clipboard operation
cel-java copied to clipboard

Cost Estimate support

Open jam01 opened this issue 1 year ago • 1 comments

Feature request checklist

  • [x] There are no issues that match the desired change
  • [x] The change is large enough it can't be addressed with a simple Pull Request
  • [x] If this is a bug, please file a Bug Report.

Change Hello, mostly wanted to confirm that the Cost and CostEstimate support is not available in Java...?

The spec mentions about applications being able to limit utilization based on the complexity of expressions, but I'm not sure these facilities are actually part of the spec itself.

If it's not, would definitely be a great addition at some point. Thanks.

Example https://pkg.go.dev/github.com/google/cel-go/checker#Cost

Alternatives considered None

jam01 avatar Jul 05 '24 12:07 jam01

Presently, cel-go is the only stack that supports cost estimation and tracking. The spec doesn't actually mandate these as a feature, but it would be a nice enhancement for cel-java. It is a fair amount of change and we aren't able to prioritize this work anytime soon, but we'd otherwise be happy to take contributions.

l46kok avatar Jul 08 '24 22:07 l46kok