1 instantiation of InstrumentedConsumerBuilder
Aspire.Confluent.Kafka (1)
AspireKafkaConsumerExtensions.cs (1)
198
InstrumentedConsumerBuilder<TKey, TValue> builder =
new
(settings.Config);
21 references to InstrumentedConsumerBuilder
Aspire.Confluent.Kafka (21)
AspireKafkaConsumerExtensions.cs (6)
118
builder.Services.AddSingleton<
InstrumentedConsumerBuilder
<TKey, TValue>>(sp => CreateConsumerBuilder(sp, configureBuilder, settings));
124
builder.Services.AddKeyedSingleton<
InstrumentedConsumerBuilder
<TKey, TValue>>(serviceKey, (sp, key) => CreateConsumerBuilder(sp, configureBuilder, settings));
189
? new(serviceProvider.GetRequiredService<
InstrumentedConsumerBuilder
<TKey, TValue>>(), settings.Config)
190
: new(serviceProvider.GetRequiredKeyedService<
InstrumentedConsumerBuilder
<TKey, TValue>>(key),
194
private static
InstrumentedConsumerBuilder
<TKey, TValue> CreateConsumerBuilder<TKey, TValue>(IServiceProvider serviceProvider, Action<IServiceProvider, ConsumerBuilder<TKey, TValue>>? configureBuilder, KafkaConsumerSettings settings)
198
InstrumentedConsumerBuilder
<TKey, TValue> builder = new(settings.Config);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\ConfluentKafkaConsumerInstrumentation.cs (2)
14
public ConfluentKafkaConsumerInstrumentation(
InstrumentedConsumerBuilder
<TKey, TValue> consumerBuilder)
19
internal
InstrumentedConsumerBuilder
<TKey, TValue> ConsumerBuilder { get; }
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumerBuilder.cs (1)
18
/// Initializes a new instance of the <see cref="
InstrumentedConsumerBuilder
{TKey, TValue}"/> class.
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\MeterProviderBuilderExtensions.Consumer.cs (6)
45
/// <param name="consumerBuilder"><see cref="
InstrumentedConsumerBuilder
{TKey,TValue}"/> to instrument.</param>
49
InstrumentedConsumerBuilder
<TKey, TValue> consumerBuilder)
63
/// <param name="consumerBuilder"><see cref="
InstrumentedConsumerBuilder
{TKey,TValue}"/> to instrument.</param>
68
InstrumentedConsumerBuilder
<TKey, TValue>? consumerBuilder)
78
consumerBuilder ??= sp.GetRequiredService<
InstrumentedConsumerBuilder
<TKey, TValue>>();
82
consumerBuilder ??= sp.GetRequiredKeyedService<
InstrumentedConsumerBuilder
<TKey, TValue>>(name);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\TracerProviderBuilderExtensions.Consumer.cs (6)
45
/// <param name="consumerBuilder"><see cref="
InstrumentedConsumerBuilder
{TKey,TValue}"/> to instrument.</param>
49
InstrumentedConsumerBuilder
<TKey, TValue> consumerBuilder)
63
/// <param name="consumerBuilder">Optional <see cref="
InstrumentedConsumerBuilder
{TKey, TValue}"/> to instrument.</param>
68
InstrumentedConsumerBuilder
<TKey, TValue>? consumerBuilder)
78
consumerBuilder ??= sp.GetRequiredService<
InstrumentedConsumerBuilder
<TKey, TValue>>();
82
consumerBuilder ??= sp.GetRequiredKeyedService<
InstrumentedConsumerBuilder
<TKey, TValue>>(name);