• Home
  • Jobs
  • Courses
  • Questions
  • Teachers
  • For business
  • ES/EN

0

23
Views
Getting Message count in Application Insights

I have added telemetry in my bot , still I am not able to see message counts of all channels.

 const{ApplicationInsightsTelemetryClient,TelemetryInitializerMiddleware=require('botbuilder-applicationinsights')
  
const { TelemetryLoggerMiddleware } = require('botbuilder-core');


var telemetryClient = getTelemetryClient(process.env.InstrumentationKey);
var telemetryLoggerMiddleware = new TelemetryLoggerMiddleware(telemetryClient);
var initializerMiddleware = new TelemetryInitializerMiddleware(telemetryLoggerMiddleware);

whatsAppAdapter.use(initializerMiddleware);
AppAdapter.use(initializerMiddleware)

dialog.telemetryClient = telemetryClient;
bot.telemetryClient = telemetryClient;

 


function getTelemetryClient(instrumentationKey) {
            if (instrumentationKey) {
                return new ApplicationInsightsTelemetryClient(instrumentationKey);
            }
            return new NullTelemetryClient();
        }`.

How to get message count in application insights?

about 1 month ago ·

Juan Pablo Isaza

Answer question
Find remote jobs
Loading

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2022 PeakU Inc. All Rights Reserved.