Skip to content
Docs Try Aspire

KafkaProducerSettings Properties

Class Properties 5 members
Provides the client configuration settings for connecting to a Kafka message broker to produce messages.
Config Section titled Config ProducerConfig
Gets the configuration settings for the Kafka producer.
public ProducerConfig Config { get; }
ConnectionString Section titled ConnectionString nullable string?
Gets or sets the connection string of the Kafka server to connect to.
public string? ConnectionString { get; set; }
DisableHealthChecks Section titled DisableHealthChecks bool
Gets or sets a boolean value that indicates whether the Kafka health check is disabled or not.
public bool DisableHealthChecks { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.
public bool DisableMetrics { get; set; }
Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
public bool DisableTracing { get; set; }