-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update RpcFunctionMetadata with more properties #57
Conversation
Add two more properties relating to function metadata to the protobuf, along with some clarifying comments that specify what the attributes are supposed to contian.
repeated string raw_bindings = 10; | ||
|
||
// Retry Options: string representation of JObject retry options (maxRetryCount, intervals, etc.) | ||
string retry_options = 11; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
define new message for retry options - see https://github.com/Azure/azure-functions-language-worker-protobuf/blob/dev/src/proto/FunctionRpc.proto#L327-L336 for an example that was recently added.
string retry_options = 11; | ||
|
||
// Configuration Source: string representation of JToken configuration source property in function metadata | ||
string config_source = 12; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you provide an example of how this would look like? it is better to declare first class messages for complex types to avoid string parsing on both ends
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please define new messages
Retry Options are addressed in PRs for configuration source - I do not have a much context - @soninaren might |
Host needs RetryOptions and configuration source information to populate FunctionMetadata, so two more properties have been added to RpcFunctionMetadata to convey this information.
Some clarifying comments have also been added to RpcFunctionMetadata that specify what the attributes are supposed to contain.