Skip to content

Commit b76dd01

Browse files
committed
Added TraceContext as part of InvocationRequest
1 parent e13f4a2 commit b76dd01

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/proto/FunctionRpc.proto

Lines changed: 15 additions & 0 deletions
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

0 commit comments

Comments
 (0)