Class KafkaActivityEnricher
- Namespace
- Silverback.Diagnostics
- Assembly
- Silverback.Integration.Kafka.dll
Enriches the Activity with Kafka specific tags.
public class KafkaActivityEnricher : IBrokerActivityEnricher<KafkaConsumerEndpointConfiguration>, IBrokerActivityEnricher<KafkaProducerEndpointConfiguration>, IBrokerActivityEnricher
- Inheritance
-
KafkaActivityEnricher
- Implements
- Inherited Members
Constructors
KafkaActivityEnricher()
public KafkaActivityEnricher()
Methods
EnrichInboundActivity(Activity, IRawInboundEnvelope)
Enriches the consume activity when the message has been received, before it is processed.
public void EnrichInboundActivity(Activity activity, IRawInboundEnvelope envelope)
Parameters
activityActivityThe Activity to be enriched.
envelopeIRawInboundEnvelopeThe envelope of the consumed message, which hasn't been deserialized yet.
EnrichOutboundActivity(Activity, IOutboundEnvelope)
Enriches the produce activity right before the produced message is logged.
public void EnrichOutboundActivity(Activity activity, IOutboundEnvelope envelope)
Parameters
activityActivityThe Activity to be enriched.
envelopeIOutboundEnvelopeThe envelope of the produced message.