Skip to content
DocsTry Aspire
DocsTry

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)
{
// ...
}
}
builderIHostApplicationBuilderThe Hosting.IHostApplicationBuilder to read config from and add services to.
connectionNamestringA name used to retrieve the connection string from the ConnectionStrings configuration section.
configureSettingsAction<SeqSettings>optionalAn optional delegate that can be used for customizing options. It's invoked after the settings are read from the configuration.