Microsoft Teams error alerts for .NET, Node.js and Python apps
Every new error of your application lands in a Microsoft Teams channel as an Adaptive Card, posted through a Workflows webhook of the channel: the first occurrence at once, with its stack trace, and the count of repeats as short summaries. Teams comes with the Business plan.
Business plan · a Workflows webhook of your channel · your events are never stored
What arrives
An Adaptive Card about one error: the project name and the level in the title, the exception and its message, where it happened, the environment, host, version and time as facts, the event's properties and the stack trace in monospace.
- A Workflows webhook can't edit a card, so the repeats arrive as summaries at the same moments as the live count in Telegram and Discord: 10 minutes after the first message, then after 30 minutes, an hour, and every 6 hours.
- When a window passes without repeats, the error is closed; its next occurrence arrives as a new first card.
- When the channel can't keep up, the waiting errors arrive bundled: one card, one line per error, grouped by project.
- BugsRadar keeps to the limits of Workflows and waits whenever Teams asks.
What you need
A Workflows webhook of the channel
In Teams, the channel's menu has Workflows; the template Post to a channel when a webhook request is received gives you a URL. The old Office 365 connectors are retired, and BugsRadar does not use them.
One workflow, one channel
A workflow posts to the team and channel you picked when you created it. Another channel is another workflow and another BugsRadar channel.
Checked, encrypted, masked
BugsRadar posts a short card to the channel to check the webhook before saving, stores the URL encrypted and shows only a mask afterwards. Send test posts a test card.
The steps, in order: Set up Microsoft Teams.
From any platform
The channel is chosen in the web app, not in the code: the same package, the same call, whatever the chat.
- .NET - one NuGet package:
ILogger, Serilog, NLog, log4net and direct calls, for ASP.NET Core, worker services, console apps and .NET Framework. - Node.js - one npm package: uncaught errors, Express, winston, pino and direct calls, with TypeScript types.
- Python - one package from PyPI: the logging module, loguru, uncaught exceptions, Django, Flask and FastAPI.
- Scripts, cron jobs and pipelines - one HTTP request from Bash, PowerShell or any language, with ready-made guides for cron, systemd, SQL Server Agent, backups and CI/CD.
When something changes
The workflow stays yours; BugsRadar only tells you when it stops working.
- Workflow turned off or deleted? BugsRadar turns the channel off, marks it Turned off by BugsRadar with the last error, and the project's page shows it. Fix the cause and press Check again.
- Another channel? Credentials can't be edited: add a new Microsoft Teams channel with the new URL and delete the old one.
- Teams asks to slow down? Delivery pauses and resumes on its own, and errors that waited arrive bundled.
Questions developers ask
Why Workflows and not an Office 365 connector?
Microsoft retired the Office 365 connectors for Teams; Workflows (Power Automate) is what replaces them. The webhook template posts to a channel as the Workflows bot, and the owner of the workflow can turn it off at any time.
Why summaries instead of a live count?
A Workflows webhook can't edit a card once it is posted, so the count of repeats arrives as a short summary at the same moments as the live count in Telegram and Discord: 10 minutes after the first message, then after 30 minutes, an hour, and every 6 hours.
Does the card show the stack trace?
Yes. The stack trace is in the card in monospace, after the facts and the properties of the event.
Can several projects share one channel?
Yes. One channel can serve several projects, and a project can have several channels; with rules each channel gets only the errors that fit its filter.
Does BugsRadar store my errors?
No. An event stays in memory only until it is delivered to your channels; nothing is written to a database. BugsRadar keeps only what it needs to run: your email, your projects and the encrypted settings of your channels.
Connect Microsoft Teams in a few minutes
Sign in with your email, upgrade to Business, create a project, paste the workflow URL.
Next: Google Chat alerts →