← All platforms

Google Cloud Functions (.NET) error tracking

Your .NET function runs on Google Cloud. Its exceptions can go somewhere you control. The Sentry integration sends them to Telebugs on your server.

~/hoofnotes  dotnet add package Sentry.Google.Cloud.Functions
~/hoofnotes  nvim appsettings.json Function.cs
{
"Sentry": {
"Dsn": "YOUR_TELEBUGS_DSN"
}
}
using Google.Cloud.Functions.Hosting;
using Google.Cloud.Functions.Framework;
// The DSN above includes the complete key and path.
[assembly: FunctionsStartup(typeof(SentryStartup))]
~/hoofnotes  dotnet run

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

Hang on, I already use Sentry

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

Does the function host have an integration?

Yes. The Sentry startup integration connects error reporting to the Google Cloud Functions host. Captured exceptions and request context can be sent to Telebugs.

Can I host Telebugs outside Google Cloud?

Yes. Your function only needs a reachable Telebugs endpoint. Hosting the application and storing its error reports are separate choices.