28 references to ConfluentKafkaCommon
Aspire.Confluent.Kafka (28)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (9)
285
ConfluentKafkaCommon
.ReceiveOperationName),
288
ConfluentKafkaCommon
.KafkaMessagingSystem),
315
ConfluentKafkaCommon
.ReceiveMessagesCounter.Add(1, in tags);
316
ConfluentKafkaCommon
.ReceiveDurationHistogram.Record(duration.TotalSeconds, in tags);
353
?
ConfluentKafkaCommon
.ReceiveOperationName
354
: string.Concat(topicPartitionOffset!.Topic, " ",
ConfluentKafkaCommon
.ReceiveOperationName);
360
Activity? activity =
ConfluentKafkaCommon
.ActivitySource.StartActivity(spanName, kind: ActivityKind.Consumer, links: activityLinks, startTime: start, parentContext: default);
363
activity.SetTag(SemanticConventions.AttributeMessagingSystem,
ConfluentKafkaCommon
.KafkaMessagingSystem);
369
activity.SetTag(SemanticConventions.AttributeMessagingOperation,
ConfluentKafkaCommon
.ReceiveOperationName);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (10)
283
ConfluentKafkaCommon
.PublishOperationName),
286
ConfluentKafkaCommon
.KafkaMessagingSystem),
313
ConfluentKafkaCommon
.PublishMessagesCounter.Add(1, in tags);
314
ConfluentKafkaCommon
.PublishDurationHistogram.Record(duration.TotalSeconds, in tags);
321
ConfluentKafkaCommon
.PublishMessagesCounter.Add(1, in tags);
322
ConfluentKafkaCommon
.PublishDurationHistogram.Record(duration.TotalSeconds, in tags);
332
var spanName = string.Concat(topic, " ",
ConfluentKafkaCommon
.PublishOperationName);
333
var activity =
ConfluentKafkaCommon
.ActivitySource.StartActivity(name: spanName, kind: ActivityKind.Producer, startTime: start);
341
activity.SetTag(SemanticConventions.AttributeMessagingSystem,
ConfluentKafkaCommon
.KafkaMessagingSystem);
344
activity.SetTag(SemanticConventions.AttributeMessagingOperation,
ConfluentKafkaCommon
.PublishOperationName);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\MeterProviderBuilderExtensions.Consumer.cs (1)
73
.AddMeter(
ConfluentKafkaCommon
.InstrumentationName)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\MeterProviderBuilderExtensions.Producer.cs (1)
73
.AddMeter(
ConfluentKafkaCommon
.InstrumentationName)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (5)
151
?
ConfluentKafkaCommon
.ProcessOperationName
152
: string.Concat(topicPartitionOffset!.Topic, " ",
ConfluentKafkaCommon
.ProcessOperationName);
158
Activity? activity =
ConfluentKafkaCommon
.ActivitySource.StartActivity(spanName, kind: ActivityKind.Consumer, links: activityLinks, parentContext: default);
161
activity.SetTag(SemanticConventions.AttributeMessagingSystem,
ConfluentKafkaCommon
.KafkaMessagingSystem);
167
activity.SetTag(SemanticConventions.AttributeMessagingOperation,
ConfluentKafkaCommon
.ProcessOperationName);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\TracerProviderBuilderExtensions.Consumer.cs (1)
73
.AddSource(
ConfluentKafkaCommon
.InstrumentationName)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\TracerProviderBuilderExtensions.Producer.cs (1)
73
.AddSource(
ConfluentKafkaCommon
.InstrumentationName)