File tree 2 files changed +5
-0
lines changed
libraries/botbuilder-core/src
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ export class TelemetryConstants {
15
15
public readonly textProperty : string = 'text' ;
16
16
public readonly speakProperty : string = 'speak' ;
17
17
public readonly userIdProperty : string = 'userId' ;
18
+ public readonly attachmentsProperty : string = 'attachments' ;
18
19
}
Original file line number Diff line number Diff line change @@ -247,6 +247,10 @@ export class TelemetryLoggerMiddleware implements Middleware {
247
247
if ( activity . speak && activity . speak . trim ( ) ) {
248
248
properties [ this . telemetryConstants . speakProperty ] = activity . speak ;
249
249
}
250
+
251
+ if ( activity . attachments && activity . attachments . length > 0 ) {
252
+ properties [ this . telemetryConstants . attachmentsProperty ] = JSON . stringify ( activity . attachments ) ;
253
+ }
250
254
}
251
255
252
256
// Additional Properties can override "stock" properties.
You can’t perform that action at this time.
0 commit comments