Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions flyteidl2/core/execution.proto
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ message LogContext {
repeated PodLogContext pods = 1;
string primary_pod_name = 2;
ConnectorLogContext connector = 3;
string pod_name_prefix = 4;
}

// ConnectorLogContext describes how to reach a connector that owns an action's logs.
Expand Down
13 changes: 11 additions & 2 deletions flyteidl2/dataproxy/dataproxy_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,15 @@ message TailLogsRequest {
// The attempt number.
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;
// Selects which pod(s) to tail. If unset, defaults to primary_pod.
oneof pod_selector {
// Tail logs from the primary pod only. This is the default when pod_selector is unset.
bool primary_pod = 6;
// Tail logs from all pods.
bool all_pods = 5;
// Tail logs from the named pod only.
string pod_name = 3;
}

// +optional. The dataproxy uses this to stream logs from the connector via
// AsyncConnectorService.GetTaskLogs instead of pod logs.
Expand All @@ -217,6 +224,8 @@ message TailLogsResponse {
message Logs {
// Structured log lines.
repeated flyteidl2.logs.dataplane.LogLine lines = 1;
// Which container these lines are from.
Comment thread
pingsutw marked this conversation as resolved.
flyteidl2.logs.dataplane.ContainerIdentifier container = 2;
}

// One or more batches of logs.
Expand Down
2 changes: 2 additions & 0 deletions flyteidl2/logs/dataplane/payload.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ message LoggingContext {
map<string, string> kubernetes_pod_labels = 9;
common.Sort.Direction order = 10;
uint64 number_of_batches = 11;
// +optional, Pod-name prefix used by log sources to narrow stream/pod searches.
string pod_name_prefix = 12;
}

// Parameters of environment in which logs were collected. Should contain everything
Expand Down
6 changes: 6 additions & 0 deletions flyteidl2/workflow/run_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ message GetActionLogContextResponse {

// The cluster where the action attempt is running.
string cluster = 2;

// The start time of the action attempt.
google.protobuf.Timestamp start_time = 3;

// The end time of the action attempt. Unset if the attempt is still running.
google.protobuf.Timestamp end_time = 4;
}

// Request message for listing runs.
Expand Down
154 changes: 82 additions & 72 deletions gen/go/flyteidl2/core/execution.pb.go

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions gen/go/flyteidl2/core/execution.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

149 changes: 113 additions & 36 deletions gen/go/flyteidl2/dataproxy/dataproxy_service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 69 additions & 1 deletion gen/go/flyteidl2/dataproxy/dataproxy_service.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading