Skip to content
bliptracedocs

Install an SDK

.NET

The C# SDK. Build the NuGet package from GitHub and capture exceptions with one call.

On this page

The .NET SDK builds an envelope from an Exception and sends it to Bliptrace. Capture never throws, and a slow or unreachable endpoint never slows your app.

Install from GitHub. Not on NuGet yet. Pack it locally and add it from a local source, or add the project as a reference. Source: github.com/bliptrace/bliptrace-dotnet.

Install

git clone https://github.com/bliptrace/bliptrace-dotnet
dotnet pack bliptrace-dotnet/src/G8Scope -c Release -o ./nupkgs
dotnet add package G8Scope --source ./nupkgs

Use it

using G8Scope;

var client = new G8ScopeClient(new Config
{
    Key = Environment.GetEnvironmentVariable("BLIPTRACE_KEY"),
    Endpoint = "https://ingest.bliptrace.com",
    Environment = "production",
    Release = "[email protected]",
    BasePath = "/srv/app",
    ScrubKeys = new[] { "password", "token", "authorization" },
    IgnoreExceptions = new[] { "System.OperationCanceledException" },
});

try
{
    DoSomethingRisky();
}
catch (Exception ex)
{
    client.Capture(ex, new Dictionary<string, object?>
    {
        ["user"] = new Dictionary<string, object?> { ["id"] = "u_123" },
    });
}
Property Default
Key null (nothing is sent)
Endpoint legacy host: set https://ingest.bliptrace.com
Environment production
Release null
TimeoutMs 3000
MaxFrames / MaxMessage 30 / 2000
IgnoreExceptions [] (full type names; subclasses match too)
ScrubKeys []
BasePath ""
Enabled true

To send after the response: var envelope = client.BuildEnvelope(ex, context); then client.SendEnvelope(envelope) when it is not null.

Documentation