Skip to content

Commit 48e2fb2

Browse files
committed
Updated subtree from https://github.com/azure/azure-functions-language-worker-protobuf. Tag: v1.3.5-protofile. Commit: a12f763
1 parent 1455cc2 commit 48e2fb2

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Azure Functions Languge Worker Protobuf
22

3-
This repository contains the protobuf definition file which defines the gRPC service which is used between the Azure WebJobs Script host and the Azure Functions language workers. This repo is shared across many repos in many languages (for each worker) by using git commands.
3+
This repository contains the protobuf definition file which defines the gRPC service which is used between the [Azure Functions Host](https://github.com/Azure/azure-functions-host) and the Azure Functions language workers. This repo is shared across many repos in many languages (for each worker) by using git commands.
44

55
To use this repo in Azure Functions language workers, follow steps below to add this repo as a subtree (*Adding This Repo*). If this repo is already embedded in a language worker repo, follow the steps to update the consumed file (*Pulling Updates*).
66

src/WebJobs.Script.Grpc/azure-functions-language-worker-protobuf/src/proto/FunctionRpc.proto

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,21 @@ message InvocationRequest {
255255

256256
// binding metadata from trigger
257257
map<string, TypedData> trigger_metadata = 4;
258+
259+
// Populates activityId, tracestate and tags from host
260+
RpcTraceContext trace_context = 5;
261+
}
262+
263+
// Host sends ActivityId, traceStateString and Tags from host
264+
message RpcTraceContext {
265+
// This corresponds to Activity.Current?.Id
266+
string trace_parent = 1;
267+
268+
// This corresponds to Activity.Current?.TraceStateString
269+
string trace_state = 2;
270+
271+
// This corresponds to Activity.Current?.Tags
272+
map<string, string> attributes = 3;
258273
}
259274

260275
// Host requests worker to cancel invocation
@@ -368,6 +383,12 @@ message RpcLog {
368383
None = 6;
369384
}
370385

386+
// Category of the log. Defaults to User if not specified.
387+
enum RpcLogCategory {
388+
User = 0;
389+
System = 1;
390+
}
391+
371392
// Unique id for invocation (if exists)
372393
string invocation_id = 1;
373394

@@ -389,6 +410,9 @@ message RpcLog {
389410

390411
// json serialized property bag, or could use a type scheme like map<string, TypedData>
391412
string properties = 7;
413+
414+
// Category of the log. Either user(default) or system.
415+
RpcLogCategory log_category = 8;
392416
}
393417

394418
// Encapsulates an Exception
@@ -399,7 +423,7 @@ message RpcException {
399423
// Stack trace for the exception
400424
string stack_trace = 1;
401425

402-
// Textual message describing hte exception
426+
// Textual message describing the exception
403427
string message = 2;
404428
}
405429

0 commit comments

Comments
 (0)