Skip to content

Debugging Decision Service

Luong Hoang edited this page Jul 25, 2016 · 5 revisions

View Diagnostic Logs

The first step to debugging your deployed instance of Decision Service is to check Application Insights. This is a service provided by Azure which is part of the deployment. To view log messages in Application Insights, visit your Resource Group in Azure portal (don't know how? see the FAQ). Once open, click on Search at the top and you should see a default log view for the past 24 hours.

Development Mode

The Client Library has support for Development mode where various settings are configured to make the behavior more consistent and intuitive:

  1. No Batching: by default Decision Service batches events together to reduce network traffic. However, the batching criteria is dependent on several factors and thus events could appear to be missing since they are still in the processing queue. Setting Development mode will turn off batching, meaning that events are uploaded one by one.

  2. Context Reporting: When in Development mode, Decision Service will report all contexts received by the Client Library to Application Insights. These contexts are serialized to VW string format for manual inspection & debugging.

To enable this mode, see the Sample Code.

Clone this wiki locally