Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 21b876f

Browse files
lauren-millsryanisgrig
authored andcommitted
[Docs] Added telemetry fix to known issues (#2491)
* Added telemetry fix to known issues * Update knownissues.md Update links
1 parent d90308e commit 21b876f

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

docs/_docs/help/knownissues.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,50 @@ order: 2
1313
*
1414
{:toc}
1515

16+
## Skill dialog telemetry is not showing up in the Power BI dashboard
17+
In the Bot Builder SDK version 4.5.3 and below, there is a bug which causes the Activity ID and Conversation ID to be null on all telemetry logged over a web socket connection. This causes the Skill dialog telemetry to not populate properly in the [Conversational AI Power BI sample](https://aka.ms/botPowerBiTemplate). To resolve this issue, follow these steps:
18+
19+
1. Update to the latest Microsoft.Bot.Builder packages
20+
1. Add the following package source to your project: **https://botbuilder.myget.org/F/botbuilder-v4-dotnet-daily/api/v3/index.json**
21+
1. Update all Microsoft.Bot.Builder packages to version **4.6.0-preview-191005-1** and above
22+
1. Add the following code to **Startup.cs**:
23+
```
24+
// Configure telemetry
25+
services.AddApplicationInsightsTelemetry();
26+
services.AddSingleton<IBotTelemetryClient, BotTelemetryClient>();
27+
services.AddSingleton<ITelemetryInitializer, OperationCorrelationTelemetryInitializer>();
28+
services.AddSingleton<ITelemetryInitializer, TelemetryBotIdInitializer>();
29+
services.AddSingleton<TelemetryInitializerMiddleware>();
30+
services.AddSingleton<TelemetryLoggerMiddleware>();
31+
```
32+
1. Update your **DefaultAdapter.cs** and **DefaultWebsocketAdapter.cs** with the following:
33+
```
34+
public DefaultAdapter(
35+
BotSettings settings,
36+
TemplateEngine templateEngine,
37+
ConversationState conversationState,
38+
ICredentialProvider credentialProvider,
39+
TelemetryInitializerMiddleware telemetryMiddleware,
40+
IBotTelemetryClient telemetryClient)
41+
: base(credentialProvider)
42+
{
43+
...
44+
45+
Use(telemetryMiddleware);
46+
47+
// Uncomment the following line for local development without Azure Storage
48+
// Use(new TranscriptLoggerMiddleware(new MemoryTranscriptStore()));
49+
Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
50+
Use(new ShowTypingMiddleware());
51+
Use(new FeedbackMiddleware(conversationState, telemetryClient));
52+
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
53+
Use(new EventDebuggerMiddleware());
54+
}
55+
```
56+
57+
For more information, refer to the following resources:
58+
- [Bot Builder SDK issue](https://github.com/microsoft/botbuilder-dotnet/issues/2474)
59+
- [Bot Builder SDK pull request](https://github.com/microsoft/botbuilder-dotnet/pull/2580)
1660
1761
## My Microsoft App Registration could not be automatically provisioned
1862

0 commit comments

Comments
 (0)