AspireSeqExtensions Methods
ClassMethods1 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
builderIHostApplicationBuilder The Hosting.IHostApplicationBuilder to read config from and add services to.connectionName stringA name used to retrieve the connection string from the ConnectionStrings configuration section.configureSettings Action<SeqSettings> optionalAn optional delegate that can be used for customizing options. It's invoked after the settings are read from the configuration.