question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Populate WorkerMetadata in WorkerInitResponse message

See original GitHub issue

The protobuf has been updated to include a WorkerMetadata property within the WorkerInitResponse message. The worker should include WorkerMetadata when sending the WorkerInitResponse to the host.

PR for reference on how to fill in the fields.

You will need to pull in the latest protobuf version first (this doc may help).

message WorkerMetadata {
  // The runtime/stack name
  string runtime_name = 1;

  // The version of the runtime/stack
  string runtime_version = 2;

  // The version of the worker or worker SDK
  string worker_version = 3;

  // The worker bitness/architecture
  string worker_bitness = 4;

  // Optional additional custom properties
  map<string, string> custom_properties = 5;
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Francisco-Gaminocommented, Dec 8, 2022

@liliankasem – The next deployment (which starts January 3rd) of the PowerShell worker 7.2 will have this fix.

1reaction
Francisco-Gaminocommented, Oct 18, 2022

@liliankasem - In order to populate the language worker RuntimeVersion, we need to initialize the worker to use the PowerShell SDK (either 7.2 or 7.0). Currently, this initialization takes place in the first ProcessFunctionLoadRequest once we know the functionAppRoot and whether the customer has enabled Managed Dependencies. However, to complete this work item, we need to move the initialization of the worker to ProcessWorkerInitRequest. After this change, we need to test in prod to make sure no regression are introduced. I will discuss with this with the team in our next sync up and provide a new ETA.

/cc @AnatoliB @michaelpeng36

Read more comments on GitHub >

github_iconTop Results From Across the Web

Functions Sprint 129 Milestone
NET language worker - Functions Sprint 129 Milestone ... Populate WorkerMetadata in WorkerInitResponse message enhancement New feature or ...
Read more >
GrpcWorkerChannel.cs
The host/runtime that powers Azure Functions. Contribute to Azure/azure-functions-host development by creating an account on GitHub.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found