Skip to content

[V2] Add pod_name field to TailLogsRequest#7221

Open
pingsutw wants to merge 5 commits intov2from
add-pod-name-to-tail-logs-request
Open

[V2] Add pod_name field to TailLogsRequest#7221
pingsutw wants to merge 5 commits intov2from
add-pod-name-to-tail-logs-request

Conversation

@pingsutw
Copy link
Copy Markdown
Member

@pingsutw pingsutw commented Apr 16, 2026

Tracking issue

Why are the changes needed?

Currently, `TailLogsRequest` only accepts an action execution ID and attempt number, which means the service has to guess which pod to tail logs from. Adding a `pod_name` field allows callers to explicitly specify the target pod, which is useful when an action has multiple pods.

What changes were proposed in this pull request?

Add a `pod_name` field (field number 3) to `TailLogsRequest` in run_logs_service.proto. If not provided, the service will attempt to find the primary pod, else assume the first pod.

Regenerated all language bindings (Go, Python, Rust, TypeScript).

How was this patch tested?

Proto compilation and code generation verified.

Labels

  • added

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Add pod_name field to TailLogsRequest proto to allow specifying which pod
to tail logs from. If not provided, the service will attempt to find the
primary pod, else assume the first pod.

Signed-off-by: Kevin Su <pingsutw@apache.org>
@github-actions github-actions bot mentioned this pull request Apr 16, 2026
3 tasks
Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
uint32 attempt = 2 [(buf.validate.field).uint32.gt = 0];

// The pod name to tail logs from. If not provided, attempt to find the primary pod, else assume the first pod.
string pod_name = 3 [(buf.validate.field).string.min_len = 1];
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this service is deprecated, I just moved this over to dataproxy :) can we update?
#7194

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated both

Signed-off-by: Kevin Su <pingsutw@apache.org>
Signed-off-by: Kevin Su <pingsutw@apache.org>
uint32 attempt = 2 [(buf.validate.field).uint32.gt = 0];

// The pod name to tail logs from. If not provided, attempt to find the primary pod, else assume the first pod.
string pod_name = 3;
Copy link
Copy Markdown
Contributor

@katrogan katrogan Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we remove this? since run logs service is deprecated we shouldn't be updating it anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants