TelemetryLoggerMiddleware Class

Definition

Uses a IBotTelemetryClient object to log incoming, outgoing, updated, or deleted message activities.

public class TelemetryLoggerMiddleware : Microsoft.Bot.Builder.IMiddleware
type TelemetryLoggerMiddleware = class
    interface IMiddleware
Public Class TelemetryLoggerMiddleware
Implements IMiddleware
Inheritance
TelemetryLoggerMiddleware
Implements

Constructors

TelemetryLoggerMiddleware(IBotTelemetryClient, Boolean)

Initializes a new instance of the TelemetryLoggerMiddleware class.

Properties

LogPersonalInformation

Gets a value indicating whether to include personal information that came from the user.

TelemetryClient

Gets The telemetry client to send telemetry events to.

Methods

FillDeleteEventPropertiesAsync(IMessageDeleteActivity, Dictionary<String,String>)

Fills event properties for the BotMsgDeleteEvent event.

FillReceiveEventPropertiesAsync(Activity, Dictionary<String,String>)

Fills event properties for the BotMsgReceiveEvent event. If the LogPersonalInformation is true, filters out the sender's name and the message's text and speak fields.

FillSendEventPropertiesAsync(Activity, Dictionary<String,String>)

Fills event properties for the BotMsgSendEvent event. If the LogPersonalInformation is true, filters out the recipient's name and the message's text and speak fields.

FillUpdateEventPropertiesAsync(Activity, Dictionary<String,String>)

Fills event properties for the BotMsgUpdateEvent event. If the LogPersonalInformation is true, filters out the message's text field.

OnDeleteActivityAsync(Activity, CancellationToken)

Uses the telemetry client's TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) method to log telemetry data when the bot deletes a message it sent previously. The event name is BotMsgDeleteEvent.

OnReceiveActivityAsync(Activity, CancellationToken)

Uses the telemetry client's TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) method to log telemetry data when a message is received from the user. The event name is BotMsgReceiveEvent.

OnSendActivityAsync(Activity, CancellationToken)

Uses the telemetry client's TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) method to log telemetry data when the bot sends the user a message. It uses the telemetry client's The event name is BotMsgSendEvent.

OnTurnAsync(ITurnContext, NextDelegate, CancellationToken)

Logs events for incoming, outgoing, updated, or deleted message activities, using the TelemetryClient.

OnUpdateActivityAsync(Activity, CancellationToken)

Uses the telemetry client's TrackEvent(String, IDictionary<String,String>, IDictionary<String,Double>) method to log telemetry data when the bot updates a message it sent previously. The event name is BotMsgUpdateEvent.

Applies to