Package Description
$ dotnet add package Agoda.KafkaFlow.ApplicationInsights"ApplicationInsights for KafkaFlow" is an extension of KafkaFlow, designed to seamlessly integrate telemetry data collection into your Kafka-based applications using Application Insights. This extension enhances your ability to monitor, analyze, and optimize your message processing pipelines.
Install the Package:
Use the following command in the PowerShell to install the KafkaFlow.ApplicationInsights package:
dotnet add package Agoda.KafkaFlow.ApplicationInsights
Configuration:
Add the following code to your startup.cs or program.cs to configure the Application Insights integration:
builder.Services.AddKafka(
kafka => kafka
.AddAppInsightsInstrumentation() // Enable Application Insights
.AddCluster(
cluster => cluster
.WithBrokers(new[] { "your-broker-url" })
.AddProducer(
// Define your producer configuration here
)
.AddConsumer(consumer => consumer
// Define your consumer configuration here
)
)
);
For more detailed information and advanced configuration options, please refer to the official documentation.
Contributions to "Application Insights for KafkaFlow" are welcome! Please refer to our contribution guidelines for more details.