Udostępnij za pośrednictwem


AspireSeqExtensions.AddSeqEndpoint Method

Definition

Registers OTLP log and trace exporters to send to Seq.

public static void AddSeqEndpoint (this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder, string connectionName, Action<Aspire.Seq.SeqSettings>? configureSettings = default);
static member AddSeqEndpoint : Microsoft.Extensions.Hosting.IHostApplicationBuilder * string * Action<Aspire.Seq.SeqSettings> -> unit
<Extension()>
Public Sub AddSeqEndpoint (builder As IHostApplicationBuilder, connectionName As String, Optional configureSettings As Action(Of SeqSettings) = Nothing)

Parameters

builder
IHostApplicationBuilder

The 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>

An optional delegate that can be used for customizing options. It's invoked after the settings are read from the configuration.

Applies to