Permalink
Browse files

Fix: Format of event in AppInsights

  • Loading branch information...
molant authored and alrra committed Aug 14, 2018
1 parent 985ad4f commit 8d1caf359ade37604059a0330c746b14efa5fff6
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/hint/src/lib/utils/appinsights.ts
@@ -86,7 +86,7 @@ export const trackException = (error: Error) => {
/** Track an event in Application Insights. */
export const trackEvent = (name, properties?: {}) => {
debug(`Sending event "${name}" to Application Insights with value ${JSON.stringify(properties)}`);
appInsightsClient.trackEvent({ name, properties });
appInsightsClient.trackEvent({ name, properties: { config: JSON.stringify(properties, null, 2) }});
};
/** Return the Application Insights client. */

0 comments on commit 8d1caf3

Please sign in to comment.