Skip to content

Commit 2969370

Browse files
committed
Telemetry changes
1 parent 8111c4c commit 2969370

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 1.1.2
44

55
- Fix for WebPartTitle control to inherit color
6+
- Improved telemetry with some object checks
67

78
## 1.1.1
89

docs/documentation/docs/about/release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## 1.1.2
44

55
- Fix for WebPartTitle control to inherit color
6+
- Improved telemetry with some object checks
67

78
## 1.1.1
89

src/common/appInsights/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import {Environment,EnvironmentType} from "@microsoft/sp-core-library";
55
AppInsights.downloadAndSetup({ instrumentationKey: "9f59b81e-d2ed-411e-a961-8bcf3f7f04d0" });
66

77
// Remove operation name from the telemetry
8-
AppInsights.context.operation.name = null;
8+
if (AppInsights.context && AppInsights.context.operation && AppInsights.context.operation.name) {
9+
AppInsights.context.operation.name = null;
10+
}
911

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

0 commit comments

Comments
 (0)