AspireSeqExtensions.AddSeqEndpoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.