AspireSeqExtensions Methods
Class Methods 1 member
Extension methods for connecting a project's OpenTelemetry log events and spans to Seq.
AddSeqEndpoint(IHostApplicationBuilder, string, Action<SeqSettings>) Section titled AddSeqEndpoint(IHostApplicationBuilder, string, Action<SeqSettings>) extension Registers OTLP log and trace exporters to send to Seq.
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.