# AspireSeqExtensions Methods

- Package: [Aspire.Seq](/reference/api/csharp/aspire.seq.md)
- Type: [AspireSeqExtensions](/reference/api/csharp/aspire.seq/aspireseqextensions.md)
- Kind: `Methods`
- Members: `1`

Extension methods for connecting a project's OpenTelemetry log events and spans to Seq.

## AddSeqEndpoint(IHostApplicationBuilder, string, Action<SeqSettings>)

- Name: `AddSeqEndpoint(IHostApplicationBuilder, string, Action<SeqSettings>)`
- Modifiers: `extension`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Seq/AspireSeqExtensions.cs#L34-L97)

Registers OTLP log and trace exporters to send to Seq.

```csharp
public static class AspireSeqExtensions
{
    public static void AddSeqEndpoint(
        this IHostApplicationBuilder builder,
        string connectionName,
        Action<SeqSettings>? configureSettings = null)
    {
        // ...
    }
}
```

## Parameters

- `builder` (`IHostApplicationBuilder`)
  The `Hosting.IHostApplicationBuilder` to read config from and add services to.
- `connectionName` (`string`)
  A name used to retrieve the connection string from the ConnectionStrings configuration section.
- `configureSettings` (`Action<SeqSettings>`) `optional`
  An optional delegate that can be used for customizing options. It's invoked after the settings are read from the configuration.
