Skip to content

Commit 2fc14be

Browse files
authored
Merge pull request #58 from brandonh-msft/logmetric-support
Adding RpcMetric type to FunctionRpc
2 parents bea42d7 + 3560519 commit 2fc14be

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/proto/FunctionRpc.proto

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ message StreamingMessage {
6767

6868
// Worker logs a message back to the host
6969
RpcLog rpc_log = 2;
70-
70+
7171
FunctionEnvironmentReloadRequest function_environment_reload_request = 25;
7272

7373
FunctionEnvironmentReloadResponse function_environment_reload_response = 26;
@@ -481,8 +481,9 @@ message RpcLog {
481481

482482
// Category of the log. Defaults to User if not specified.
483483
enum RpcLogCategory {
484-
User = 0;
485-
System = 1;
484+
User = 0;
485+
System = 1;
486+
CustomMetric = 2;
486487
}
487488

488489
// Unique id for invocation (if exists)
@@ -504,11 +505,14 @@ message RpcLog {
504505
// Exception (if exists)
505506
RpcException exception = 6;
506507

507-
// json serialized property bag, or could use a type scheme like map<string, TypedData>
508+
// json serialized property bag
508509
string properties = 7;
509510

510-
// Category of the log. Either user(default) or system.
511+
// Category of the log. Either user(default), system, or custom metric.
511512
RpcLogCategory log_category = 8;
513+
514+
// strongly-typed (ish) property bag
515+
map<string, TypedData> propertiesMap = 9;
512516
}
513517

514518
// Encapsulates an Exception

0 commit comments

Comments
 (0)