Azure / botbuilder-instrumentation-cs

BotBuilder Instrumentation (C#)
MIT License
5 stars 9 forks source link

Instrumentation Setting issue with Csharp #19

Open 2015PM opened 6 years ago

2015PM commented 6 years ago

Hello

I tried to configure the Ibex-Dashboard, but i stocked during the instrumentation part. Configuring ibex dashboard in its basic with application insights, the necessary application id and application instrumentation key worked well. At the moment I can see how many users used the chatbot and on which channels. But to see the Intent Graph and map activity i need to configure the instrumentation part.

I develop on the newest version of BotBuilder.Instrumentation v 1.0.0.44, where Micosoft Bot Builder relies on the version 3.15.3. Moreover, I only use the LUIS Cognitive Services. Another Source that i used to solve my issue was https://rahulrai.in/post/Visualize-Performance-of-Your-Bots-With-The-Ibex-Dashboard/

What i did so far:

  1. State Management installed
    1. Installation of Install-Package BotBuilder.Instrumentation v 1.0.0.44
  2. web.config file adaption
  3. Initialize the bot builder instrumentation in Global.asax // public readonly BotFrameworkApplicationInsightsInstrumentation DefaultInstrumentation = (BotFrameworkApplicationInsightsInstrumentation) DependencyResolver.Current.DefaultInstrumentationWithCognitiveServices;
  4. I adapt my current code (first part):

    [Serializable] public class MyLuisModelAttribute : LuisModelAttribute { public MyLuisModelAttribute() : base( modelID: ConfigurationSettings.AppSettings.Get("LuisAppId"), subscriptionKey: ConfigurationSettings.AppSettings.Get("LuisAPIKey"), domain: ConfigurationSettings.AppSettings.Get("LuisAPIHostName")) { } } [MyLuisModel] [Serializable] public class RootLuisDialog : LuisDialog { //Gloable Variablen private double IntentScoreThreshold = 0.41;

    [LuisIntent("")]
    [LuisIntent("None")]
    public async Task None(IDialogContext context, LuisResult result)
    {
       await  context.PostAsync("Ich habe dich leider nicht verstanden.")
    }

    With:

    [Serializable] public class RootDialog : InstrumentedLuisDialog { public RootDialog(string luisModelId, string luisSubscriptionKey) : base(luisModelId, luisSubscriptionKey) { } // ... }

    After adapting these steps, nothing worked well. Can you give me an advice what the problem could be?

    Greetings

    Sandro