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

Backports to v18.x #246

Closed
wants to merge 16 commits into from
Closed
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions agents/grpc/proto/blocked_loop.proto
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ message Stack {
string function_name = 3;
int32 line_number = 4;
int32 column = 5;
int32 script_id = 6;
}

message BlockedLoopBody {
Expand Down
2 changes: 2 additions & 0 deletions agents/grpc/proto/command.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ syntax = "proto3";

import "profile.proto";
import "reconfigure.proto";
import "source_code.proto";

package grpcagent;

message CommandArgs {
oneof args {
ReconfigureBody reconfigure = 1;
ProfileArgs profile = 2;
SourceCodeArgs source_code = 3;
}
}

Expand Down
2 changes: 2 additions & 0 deletions agents/grpc/proto/nsolid_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import "info.proto";
import "metrics.proto";
import "packages.proto";
import "reconfigure.proto";
import "source_code.proto";
import "startup_times.proto";

package grpcagent;
Expand All @@ -22,6 +23,7 @@ service NSolidService {
rpc ExportBlockedLoop (BlockedLoopEvent) returns (EventResponse) {}
rpc ExportUnblockedLoop (UnblockedLoopEvent) returns (EventResponse) {}
rpc ExportReconfigure (ReconfigureEvent) returns (EventResponse) {}
rpc ExportSourceCode (SourceCodeEvent) returns (EventResponse) {}
rpc ExportStartupTimes (StartupTimesEvent) returns (EventResponse) {}
}

Expand Down
19 changes: 19 additions & 0 deletions agents/grpc/proto/source_code.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
syntax = "proto3";

import "common.proto";

package grpcagent;

message SourceCodeArgs {
int64 thread_id = 1;
int32 script_id = 2;
string path = 3;
}

message SourceCodeEvent {
CommonResponse common = 1;
int64 thread_id = 2;
string path = 3;
string code = 4;
bool is_esm = 5;
}
Loading
Loading