Skip to main content
Aspire.Seq package icon

Aspire.Seq

v13.6.1Latest Stable
net10.0net8.0net9.0

A Seq client that connects an Aspire project's telemetry to Seq.

Published
Oct 7, 2026
11d ago
Total Downloads
560.1K
560,060

Install

dotnet add package Aspire.Seq --version 13.6.1
ProductVersions
.NET
net10.0net8.0net9.0

README

Aspire.Seq Library

Adds OTLP exporters to send logs and traces to a Seq server. Can be configured to persist logs and traces across application restarts.

By default, Seq is not added to the Aspire manifest for deployment.

Getting started

Prerequisites

  • Seq server

Install the package

Install the Aspire Seq library with NuGet:

dotnet add package Aspire.Seq

Usage example

In the Program.cs file of your projects, call the AddSeqEndpoint extension method to register OpenTelemetry Protocol exporters to send logs and traces to Seq. The method takes a connection name parameter.

builder.AddSeqEndpoint("seq");

Logs and traces will then be sent to Seq, in addition to the Aspire dashboard.

Configuration

The Aspire Seq component provides options to configure the connection to Seq.

Use configuration providers

The Aspire Seq component supports Microsoft.Extensions.Configuration. It loads the SeqSettings from configuration by using the Aspire:Seq key. Example appsettings.json that configures some of the options:

{
  "Aspire": {
    "Seq": {
      "DisableHealthChecks": true,
      "ServerUrl": "http://localhost:5341"
    }
  }
}

Use inline delegates

Also you can pass the Action<SeqSettings> configureSettings delegate to set up some or all the options inline, for example to disable health checks from code:

builder.AddSeqEndpoint("seq", settings => {
    settings.DisableHealthChecks = true;
    settings.ServerUrl = "http://localhost:5341";
    settings.Logs.TimeoutMilliseconds = 10000;
});

AppHost extensions

In your AppHost project, install the Aspire.Hosting.Seq library with NuGet:

dotnet add package Aspire.Hosting.Seq

Then, in the AppHost.cs file of AppHost, register a Seq server and propagate its configuration using the following methods (note that you must accept the Seq End User License Agreement for Seq to start):

var seq = builder.AddSeq("seq");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(seq);

In the Program.cs file of MyService, logging and tracing to Seq can be configured with:

builder.AddSeqEndpoint("seq");

Persistent logs and traces

To retain Seq's data and configuration across application restarts register Seq with a data directory in your AppHost project.

var seq = builder.AddSeq("seq", seqDataDirectory: "./seqdata");

Note that the directory specified must already exist.

Seq in the Aspire manifest

Seq is not part of the Aspire deployment manifest. It is recommended to set up a secure production Seq server outside of Aspire.

Additional documentation

Feedback & contributing

https://github.com/microsoft/aspire

Changes from Previous Version

No structural changes between v13.6.0 and v13.6.1.

Adoption Assessment

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 3 target frameworks; confirm the exact target used by your application.The published metadata declares 33 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.