← All platforms

Azure Functions (.NET) error tracking

A timer fires. A queue message arrives. A function throws. Use the Sentry .NET SDK to send the error report to your Telebugs server.

~/hoofnotes  dotnet add package Sentry.Extensions.Logging
~/hoofnotes  nvim Program.cs
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
var host = new HostBuilder()
.ConfigureFunctionsWorkerDefaults()
.ConfigureLogging(logging => logging.AddSentry(options =>
{
// Copy the complete DSN, key and path included.
options.Dsn = "YOUR_TELEBUGS_DSN";
}))
.Build();
await host.RunAsync();
~/hoofnotes  func start

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep Sentry.Extensions.Logging and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

Does this fit the isolated worker model?

Yes. The Sentry logging integration connects to the isolated worker host. Exceptions logged at the configured event level can become error reports in Telebugs.

Is this a log storage service?

No. This connection turns selected logged errors into error reports. Telebugs is for investigating those failures, not collecting every line of function output.