Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add function_call_id to AppGetLogsRequest #2795

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

annacarey
Copy link
Contributor

@annacarey annacarey commented Jan 22, 2025

Required to update /logs-stream RPC here

@mwaskom we are adding the ability to filter logs by functionCallId to need this as a new filter on this RPC. The protobuf types live in the client, so wanted to run by you first. LMK if you have ?'s.

@@ -2598,6 +2599,7 @@ message TaskLogsBatch {
string image_id = 13; // Used for image logs
bool eof = 14;
string pty_exec_id = 15; // Used for interactive functions
string function_call_id = 16;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need this here since we already have a have the function_call_id on TaskLogs? Might be mistaken

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(Could be wrong too)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We changed this line to filter on the item instead of batch, so removed function_call_id from TaskLogsBatch.

@annacarey annacarey requested a review from mwaskom January 22, 2025 18:52
@annacarey
Copy link
Contributor Author

@prbot approve

Copy link

@modal-pr-review-automation modal-pr-review-automation bot left a comment

Choose a reason for hiding this comment

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

Approved 👍. @mwaskom will follow-up review this.

@annacarey annacarey merged commit c55d614 into main Jan 22, 2025
23 checks passed
@annacarey annacarey deleted the anna/function-call-id-logs-stream branch January 22, 2025 20:51
@mwaskom
Copy link
Contributor

mwaskom commented Jan 22, 2025

Nice, I think users have asked about filtering modal app logs by function; this should enable that.

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.

3 participants