Skip to content

Conversation

@odsod
Copy link
Contributor

@odsod odsod commented Jun 27, 2021

As a workaround for CEL-Go currently not supporting threading the user
context through expression and function evaluation, this patch adds
support for the caller to thread request deadline and trace context
through to the CEL functions, so that downstream gRPC calls can inherit
the request deadline and trace context.

This might all be removable if/when CEL attains built-in support for
"async functions", as per google/cel-go#368

@odsod odsod requested a review from ericwenn as a code owner June 27, 2021 13:54
@odsod odsod requested review from a team June 27, 2021 14:02
As a workaround for CEL-Go currently not supporting threading the user
context through expression and function evaluation, this patch adds
support for the caller to thread request deadline and trace context
through to the CEL functions, so that downstream gRPC calls can inherit
the request deadline and trace context.

This might all be removable if/when CEL attains built-in support for
"async functions", as per google/cel-go#368
@odsod odsod merged commit 28da40c into master Jun 27, 2021
@odsod odsod deleted the caller-context branch June 27, 2021 15:13
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.

3 participants