Setup Data Streams Monitoring for .NET

Prerequisites

Supported libraries

TechnologyLibraryMinimal tracer versionRecommended tracer version
KafkaConfluent.Kafka2.28.02.41.0 or later
RabbitMQRabbitMQ.Client2.28.02.37.0 or later
Amazon SQSAWS SQS SDK2.48.02.48.0 or later
Amazon SNSAWS SNS SDK3.6.03.6.0 or later
IBM MQIBM.Data.DB2.Core2.49.02.49.0 or later

Installation

.NET uses auto-instrumentation to inject and extract additional metadata required by Data Streams Monitoring for measuring end-to-end latencies and the relationship between queues and services. To enable Data Streams Monitoring, set the DD_DATA_STREAMS_ENABLED environment variable to true on services sending messages to (or consuming messages from) Kafka or RabbitMQ.

For example:

environment:
  - DD_DATA_STREAMS_ENABLED: "true"

Monitoring SQS pipelines

Data Streams Monitoring uses one message attribute to track a message’s path through an SQS queue. As Amazon SQS has a maximum limit of 10 message attributes allowed per message, all messages streamed through the data pipelines must have 9 or fewer message attributes set, allowing the remaining attribute for Data Streams Monitoring.