Alertiqo.Client 1.0.0

dotnet add package Alertiqo.Client --version 1.0.0
                    
NuGet\Install-Package Alertiqo.Client -Version 1.0.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="Alertiqo.Client" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Alertiqo.Client" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Alertiqo.Client" />
                    
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 Alertiqo.Client --version 1.0.0
                    
#r "nuget: Alertiqo.Client, 1.0.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 Alertiqo.Client@1.0.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=Alertiqo.Client&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Alertiqo.Client&version=1.0.0
                    
Install as a Cake Tool

Alertiqo .NET Client

Official .NET client for Alertiqo error tracking service.

Installation

dotnet add package Alertiqo.Client

Quick Start

Basic Usage (Console/Desktop Apps)

using Alertiqo.Client;

// Initialize once at startup
Alertiqo.Init("your-api-key", "https://alertiqo.io");

try
{
    // Your code here
}
catch (Exception ex)
{
    Alertiqo.CaptureException(ex);
    throw;
}

ASP.NET Core Integration

// Program.cs
using Alertiqo.Client;
using Alertiqo.Client.Middleware;

var builder = WebApplication.CreateBuilder(args);

// Add Alertiqo services
builder.Services.AddAlertiqo(options =>
{
    options.ApiKey = builder.Configuration["Alertiqo:ApiKey"]!;
    options.Endpoint = builder.Configuration["Alertiqo:Endpoint"] ?? "https://alertiqo.io";
    options.Environment = builder.Environment.EnvironmentName;
});

var app = builder.Build();

// Add Alertiqo middleware (should be early in the pipeline)
app.UseAlertiqo();

app.Run();

Configuration via appsettings.json

{
  "Alertiqo": {
    "ApiKey": "your-api-key",
    "Endpoint": "https://alertiqo.io"
  }
}

Features

Capture Exceptions

try
{
    // Your code
}
catch (Exception ex)
{
    await alertiqo.CaptureExceptionAsync(ex);
}

Capture Messages

await alertiqo.CaptureMessageAsync("Something went wrong", "error");
await alertiqo.CaptureMessageAsync("This is a warning", "warning");

Add Context

// Set user context
Alertiqo.SetUser("user-123", "user@example.com", "John Doe");

// Add tags
Alertiqo.SetTag("feature", "checkout");
Alertiqo.SetTag("tenant", "acme-corp");

// Add extra data
Alertiqo.SetExtra("order_id", 12345);
Alertiqo.SetExtra("cart_items", new[] { "item1", "item2" });
Alertiqo.AddBreadcrumb("User clicked checkout button", "ui", "user");
Alertiqo.AddBreadcrumb("API call to /api/orders", "http", "info");
Alertiqo.AddBreadcrumb("Order created successfully", "app", "info", new Dictionary<string, object>
{
    { "order_id", 12345 }
});

Custom Error Payload

await alertiqo.CaptureExceptionAsync(ex, payload =>
{
    payload.Tags = new Dictionary<string, string>
    {
        { "custom_tag", "value" }
    };
    payload.Context = new Dictionary<string, object>
    {
        { "custom_data", "value" }
    };
});

Configuration Options

Option Description Default
ApiKey Your Alertiqo API key Required
Endpoint Alertiqo API endpoint https://alertiqo.io
Environment Environment name production
AppVersion Application version null
IncludeRequestData Include HTTP request data true
IncludeUserData Include user data true
MaxBreadcrumbs Maximum breadcrumbs to keep 50
TimeoutSeconds HTTP request timeout 30

Dependency Injection

public class MyService
{
    private readonly IAlertiqoClient _alertiqo;

    public MyService(IAlertiqoClient alertiqo)
    {
        _alertiqo = alertiqo;
    }

    public async Task DoSomethingAsync()
    {
        try
        {
            // Your code
        }
        catch (Exception ex)
        {
            await _alertiqo.CaptureExceptionAsync(ex);
            throw;
        }
    }
}

License

MIT License - see LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 was computed.  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. 
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.0.0 239 12/15/2025