46 references to SemanticConventions
Aspire.Confluent.Kafka (46)
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\ConfluentKafkaCommon.cs (4)
22
internal static readonly Counter<long> ReceiveMessagesCounter = Meter.CreateCounter<long>(
SemanticConventions
.MetricMessagingReceiveMessages);
23
internal static readonly Histogram<double> ReceiveDurationHistogram = Meter.CreateHistogram<double>(
SemanticConventions
.MetricMessagingReceiveDuration);
24
internal static readonly Counter<long> PublishMessagesCounter = Meter.CreateCounter<long>(
SemanticConventions
.MetricMessagingPublishMessages);
25
internal static readonly Histogram<double> PublishDurationHistogram = Meter.CreateHistogram<double>(
SemanticConventions
.MetricMessagingPublishDuration);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedConsumer.cs (14)
284
SemanticConventions
.AttributeMessagingOperation,
287
SemanticConventions
.AttributeMessagingSystem,
290
SemanticConventions
.AttributeMessagingDestinationName,
298
SemanticConventions
.AttributeMessagingKafkaDestinationPartition,
306
SemanticConventions
.AttributeErrorType,
335
activity.SetTag(
SemanticConventions
.AttributeErrorType, errorType);
363
activity.SetTag(
SemanticConventions
.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
364
activity.SetTag(
SemanticConventions
.AttributeMessagingClientId, this.Name);
365
activity.SetTag(
SemanticConventions
.AttributeMessagingDestinationName, topicPartitionOffset?.Topic);
366
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaDestinationPartition, topicPartitionOffset?.Partition.Value);
367
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaMessageOffset, topicPartitionOffset?.Offset.Value);
368
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaConsumerGroup, this.GroupId);
369
activity.SetTag(
SemanticConventions
.AttributeMessagingOperation, ConfluentKafkaCommon.ReceiveOperationName);
372
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaMessageKey, key);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\InstrumentedProducer.cs (19)
61
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatProduceException(produceException));
68
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatArgumentException(argumentException));
108
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatProduceException(produceException));
115
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatArgumentException(argumentException));
151
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatProduceException(produceException));
158
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatArgumentException(argumentException));
192
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatProduceException(produceException));
199
activity?.SetTag(
SemanticConventions
.AttributeErrorType, errorType = FormatArgumentException(argumentException));
282
SemanticConventions
.AttributeMessagingOperation,
285
SemanticConventions
.AttributeMessagingSystem,
288
SemanticConventions
.AttributeMessagingDestinationName,
296
SemanticConventions
.AttributeMessagingKafkaDestinationPartition,
304
SemanticConventions
.AttributeErrorType,
341
activity.SetTag(
SemanticConventions
.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
342
activity.SetTag(
SemanticConventions
.AttributeMessagingClientId, this.Name);
343
activity.SetTag(
SemanticConventions
.AttributeMessagingDestinationName, topic);
344
activity.SetTag(
SemanticConventions
.AttributeMessagingOperation, ConfluentKafkaCommon.PublishOperationName);
348
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaMessageKey, message.Key);
353
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaDestinationPartition, partition);
src\Vendoring\OpenTelemetry.Instrumentation.ConfluentKafka\OpenTelemetryConsumeResultExtensions.cs (9)
135
processActivity?.SetTag(
SemanticConventions
.AttributeErrorType, ex.GetType().FullName);
161
activity.SetTag(
SemanticConventions
.AttributeMessagingSystem, ConfluentKafkaCommon.KafkaMessagingSystem);
162
activity.SetTag(
SemanticConventions
.AttributeMessagingClientId, clientId);
163
activity.SetTag(
SemanticConventions
.AttributeMessagingDestinationName, topicPartitionOffset?.Topic);
164
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaDestinationPartition, topicPartitionOffset?.Partition.Value);
165
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaMessageOffset, topicPartitionOffset?.Offset.Value);
166
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaConsumerGroup, groupId);
167
activity.SetTag(
SemanticConventions
.AttributeMessagingOperation, ConfluentKafkaCommon.ProcessOperationName);
170
activity.SetTag(
SemanticConventions
.AttributeMessagingKafkaMessageKey, key);