Microsoft.Azure.Functions.Worker 1.11.0-preview1
Pre-release
Pre-release
What's Changed
- Added support for surfacing user-thrown exception to App Insights (#939)
- Source-generated function metadata: implementation change to improve cold-start performance (#956)
- This functionality requires version
1.8.0-preview1
ofMicrosoft.Azure.Functions.Worker.Sdk
or higher.
- This functionality requires version
Steps for opting into the source-generation preview:
- Add MSBuild property
<FunctionsEnableWorkerIndexing>true</FunctionsEnableWorkerIndexing>
app's.csproj
file. - In
local.settings.json
add the property"AzureWebJobsFeatureFlags": "EnableWorkerIndexing"
to configure the Azure Functions host to use worker-indexing. - Call the
IHostBuilder
extension,ConfigureGeneratedFunctionMetadataProvider
inProgram.cs
:
class Program
{
static async Task Main(string[] args)
{
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureGeneratedFunctionMetadataProvider()
.Build();
await host.RunAsync();
}
}
Full change log:
1.10.0...1.11.0-preview1