Skip to content

Commit

Permalink
Telemetry changes
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Jan 5, 2018
1 parent 8111c4c commit 2969370
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.1.2

- Fix for WebPartTitle control to inherit color
- Improved telemetry with some object checks

## 1.1.1

Expand Down
1 change: 1 addition & 0 deletions docs/documentation/docs/about/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.1.2

- Fix for WebPartTitle control to inherit color
- Improved telemetry with some object checks

## 1.1.1

Expand Down
4 changes: 3 additions & 1 deletion src/common/appInsights/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import {Environment,EnvironmentType} from "@microsoft/sp-core-library";
AppInsights.downloadAndSetup({ instrumentationKey: "9f59b81e-d2ed-411e-a961-8bcf3f7f04d0" });

// Remove operation name from the telemetry
AppInsights.context.operation.name = null;
if (AppInsights.context && AppInsights.context.operation && AppInsights.context.operation.name) {
AppInsights.context.operation.name = null;
}

export function track(componentName: string, properties: any = {}): void {
AppInsights.trackEvent(componentName, {
Expand Down

0 comments on commit 2969370

Please sign in to comment.