Skip to content

Sending EnableUserCodeException as a capability of native worker #1960

Merged
kshyju merged 1 commit intomainfrom
shkr/include_error_in_envreloadresp
Oct 12, 2023
Merged

Sending EnableUserCodeException as a capability of native worker #1960
kshyju merged 1 commit intomainfrom
shkr/include_error_in_envreloadresp

Conversation

@kshyju
Copy link
Copy Markdown
Member

@kshyju kshyju commented Oct 12, 2023

  • Sending EnableUserCodeException as a capability of native worker. - this forces host to log it in a way it surfaces user's AI logs.
  • Improving the exception message for env reload failure. - host will log it as it is received.
  • Version bump to 1.0.2

- Improving the exception message for env reload failure.
- Version bump to 1.0.2
@kshyju kshyju marked this pull request as ready for review October 12, 2023 16:22
Comment thread host/src/FunctionsNetHost/Grpc/IncomingGrpcMessageHandler.cs
@kshyju kshyju merged commit fd86b66 into main Oct 12, 2023
@kshyju kshyju deleted the shkr/include_error_in_envreloadresp branch October 12, 2023 16:46
<title>Microsoft Azure Functions dotnet-isolated native host</title>
<tags>dotnet-isolated azure-functions azure</tags>
<version>1.0.1</version>
<version>1.0.2</version>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Had we released 1.0.1 already?

Logger.LogTrace("App payload uses an older version of worker package which does not support specialization.");
responseMessage.FunctionEnvironmentReloadResponse = BuildFailedEnvironmentReloadResponse(new EnvironmentReloadNotSupportedException());
Logger.LogTrace("App payload uses an older version of Microsoft.Azure.Functions.Worker SDK which does not support placeholder.");
var e = new EnvironmentReloadNotSupportedException("This app is not using the latest version of Microsoft.Azure.Functions.Worker SDK and therefore does not leverage all performance optimizations. See https://aka.ms/azure-functions/dotnet/placeholders for more information.");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It may not be super-important for this scenario, but there won't be a StackTrace with this without throwing it, will there? You can throw/catch the exception to capture the StackTrace correctly.

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