-
Notifications
You must be signed in to change notification settings - Fork 92
Add runtime type information to worker heartbeats #809
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -130,6 +130,10 @@ message WorkerHeartbeat { | |
|
|
||
| // Storage drivers in use by this SDK. | ||
| repeated StorageDriverInfo drivers = 24; | ||
|
|
||
| // Runtime environments in use by this SDK. Often will only be one of these, but it's allowed to | ||
| // be repeated for scenarios like "Python inside a Lambda". | ||
| repeated RuntimeInfo runtimes = 25; | ||
| } | ||
|
|
||
| // Detailed worker information. | ||
|
|
@@ -194,6 +198,25 @@ message StorageDriverInfo { | |
| string type = 1; | ||
| } | ||
|
|
||
| message RuntimeInfo { | ||
| enum RuntimeType { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would also like to differentiate between .NET types e.g. Framework, Core, NativeAOT, etc and Unknown. So I think there should be a secondary field for this. It would be good to keep that it is .NET separate from the type of .NET in case we can't accurately identify it so we can still filter based on .NET and know we have a known gap.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay, I see we have an sdk_name field above. So maybe add DOTNET_FRAMEWORK and DOTNET_CORE. |
||
| RUNTIME_TYPE_UNSPECIFIED = 0; | ||
| RUNTIME_TYPE_JVM = 1; | ||
| RUNTIME_TYPE_PYTHON = 2; | ||
| RUNTIME_TYPE_NODE = 3; | ||
| RUNTIME_TYPE_BUN = 4; | ||
| RUNTIME_TYPE_RUBY = 5; | ||
| RUNTIME_TYPE_GO = 6; | ||
| RUNTIME_TYPE_DOCKER = 7; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there more than one type possible? Like python in docker? |
||
| RUNTIME_TYPE_LAMBDA = 8; | ||
| RUNTIME_TYPE_GCR = 9; | ||
| } | ||
| // The type of the runtime. | ||
| RuntimeType type = 1; | ||
| // The version of the runtime. | ||
| string version = 2; | ||
| } | ||
|
|
||
| // A command sent from the server to a worker. | ||
| message WorkerCommand { | ||
| oneof type { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing DOTNET