Watchup 1.1.0

dotnet add package Watchup --version 1.1.0
                    
NuGet\Install-Package Watchup -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Watchup" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Watchup" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Watchup" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Watchup --version 1.1.0
                    
#r "nuget: Watchup, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Watchup@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Watchup&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Watchup&version=1.1.0
                    
Install as a Cake Tool

Watchup .NET SDK

Official .NET SDK for Watchup — request tracing, error capture, and custom event tracking for ASP.NET Core applications.

Installation

dotnet add package Watchup

Quick start — ASP.NET Core

// Program.cs
using Watchup.Middleware;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddWatchup(o =>
{
    o.ApiKey      = builder.Configuration["Watchup:ApiKey"]!;
    o.Environment = builder.Environment.EnvironmentName;
    o.Release     = "1.2.3";   // optional: git SHA or version
});

var app = builder.Build();

app.UseRouting();
app.UseWatchup();   // ← after UseRouting so route templates resolve
app.MapControllers();

app.Run();

The middleware automatically captures:

  • Request traces — method, route template, duration, status code
  • Unhandled exceptions — stack trace forwarded as errors
  • 5xx responses — logged as errors even without an exception

Manual tracking

Inject WatchupClient wherever you need it:

public class OrderService(WatchupClient watchup)
{
    public async Task ProcessOrder(string orderId)
    {
        // Custom event
        watchup.Track("order.received", new() { ["orderId"] = orderId });

        // Time a non-HTTP operation
        using (watchup.StartTrace("job.process_order"))
        {
            await DoWork();
        }

        // Capture an exception from a background job
        try { await SendConfirmationEmail(orderId); }
        catch (Exception ex)
        {
            watchup.CaptureError(ex, route: "job.send_confirmation",
                context: new() { ["orderId"] = orderId });
        }
    }
}

Standalone (without DI)

var watchup = new WatchupClient(new WatchupOptions
{
    ApiKey  = "wup_live_xxxxxxxxxxxx",
    Debug   = true,   // logs SDK errors to stderr
});

watchup.Track("user.signed_up");
watchup.CaptureError(someException);

await watchup.DisposeAsync(); // flushes remaining items

Configuration reference

Property Default Description
ApiKey (required) Your Watchup project API key
BaseUrl https://api.watchup.site Override for self-hosted deployments
Environment ASPNETCORE_ENVIRONMENT Attached to every payload
Release null App version / git SHA
FlushInterval 5 seconds How often the queue is flushed
MaxBatchSize 100 Items per flush per type
SampleRate 1.0 Fraction of requests to trace (0–1)
HttpTimeout 8 seconds Timeout per ingest HTTP call
Debug false Log SDK warnings to stderr

License

MIT

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 155 6/20/2026
1.0.0 109 6/20/2026