예제 #1
0
        public void TrackCustomEvent_SmokeTest()
        {
            var instrumentation = new BotFrameworkApplicationInsightsInstrumentation
                                  (
                new InstrumentationSettings
            {
                InstrumentationKeys = new List <string>(new[] { "instrumentation key" })
            }
                                  );

            var customProperties = new Dictionary <string, string>();

            for (var i = 0; i < 10; i++)
            {
                customProperties.Add("key" + i, "value " + i);
            }

            instrumentation.TrackCustomEvent(CreateActivity("some text", ActivityTypes.Message),
                                             customEventProperties: customProperties);
        }
예제 #2
0
 public void TrackCustomEvent()
 {
     _defaultInstrumentation.TrackCustomEvent(_activity, customEventProperties: _customProperties);
 }