Azure Functions Isolated Worker
Sentry provides an integration with Azure Functions Isolated Worker through the Sentry.AzureFunctions.Worker NuGet package. All triggers are supported.
Install
Add the Sentry dependency:
Copied
Install-Package Sentry.AzureFunctions.Worker -Version
You can combine this integration with a logging library like log4net
, NLog
, or Serilog
. The logging integration also captures events when an error is logged.
Configure
Sentry integration with Azure Functions Isolated Worker is done by calling .UseSentry()
and specifying the options. E.g.:
Copied
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults((host, builder) =>
{
builder.UseSentry(host, options =>
{
// o.Dsn = "<DSN>";
options.EnableTracing = true;
// When configuring for the first time, to see what the SDK is doing:
// options.Debug = true;
});
})
.Build();
await host.RunAsync();
Samples
- Integration with Azure Functions sample demonstrates Sentry with Azure Functions Isolated Worker SDK. (C#)
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) to suggesting an update ("yeah, this would be better").