Skip to content

Commit b5c9c5e

Browse files
committed
redact metadata in agent protos
1 parent a3c7ca7 commit b5c9c5e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

protobufs/livekit_agent_dispatch.proto

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ option csharp_namespace = "LiveKit.Proto";
2020
option ruby_package = "LiveKit::Proto";
2121

2222
import "livekit_agent.proto";
23+
import "logger/options.proto";
2324

2425
service AgentDispatchService {
2526
rpc CreateDispatch(CreateAgentDispatchRequest) returns (AgentDispatch);
@@ -30,12 +31,12 @@ service AgentDispatchService {
3031
message CreateAgentDispatchRequest {
3132
string agent_name = 1;
3233
string room = 2;
33-
string metadata = 3;
34+
string metadata = 3 [(logger.redact) = true];
3435
}
3536

3637
message RoomAgentDispatch {
3738
string agent_name = 1;
38-
string metadata = 2;
39+
string metadata = 2 [(logger.redact) = true];
3940
}
4041

4142
message DeleteAgentDispatchRequest {
@@ -56,12 +57,12 @@ message AgentDispatch {
5657
string id = 1;
5758
string agent_name = 2;
5859
string room = 3;
59-
string metadata = 4;
60+
string metadata = 4 [(logger.redact) = true];
6061
AgentDispatchState state = 5;
6162
}
6263

6364
message AgentDispatchState {
64-
// For dispatches of tyoe JT_ROOM, there will be at most 1 job.
65+
// For dispatches of tyoe JT_ROOM, there will be at most 1 job.
6566
// For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
6667
repeated Job jobs = 1;
6768
int64 created_at = 2;

0 commit comments

Comments
 (0)