# KafkaProducerSettings Properties

- Package: [Aspire.Confluent.Kafka](/reference/api/csharp/aspire.confluent.kafka.md)
- Type: [KafkaProducerSettings](/reference/api/csharp/aspire.confluent.kafka/kafkaproducersettings.md)
- Kind: `Properties`
- Members: `5`

Provides the client configuration settings for connecting to a Kafka message broker to produce messages.

## Config

- Name: `Config`
- Modifiers: `get`
- Returns: `ProducerConfig`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Confluent.Kafka/KafkaProducerSettings.cs#L22)

Gets the configuration settings for the Kafka producer.

```csharp
public ProducerConfig Config { get; }
```

## ConnectionString

- Name: `ConnectionString`
- Modifiers: `nullable` `get; set`
- Returns: `string?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Confluent.Kafka/KafkaProducerSettings.cs)

Gets or sets the connection string of the Kafka server to connect to.

```csharp
public string? ConnectionString { get; set; }
```

## DisableHealthChecks

- Name: `DisableHealthChecks`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Confluent.Kafka/KafkaProducerSettings.cs)

Gets or sets a boolean value that indicates whether the Kafka health check is disabled or not.

```csharp
public bool DisableHealthChecks { get; set; }
```

## DisableMetrics

- Name: `DisableMetrics`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Confluent.Kafka/KafkaProducerSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are enabled or not.

```csharp
public bool DisableMetrics { get; set; }
```

## DisableTracing

- Name: `DisableTracing`
- Modifiers: `get; set`
- Returns: `bool`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Components/Aspire.Confluent.Kafka/KafkaProducerSettings.cs)

Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.

```csharp
public bool DisableTracing { get; set; }
```
