Skip to content

Commit c78eb14

Browse files
committed
Remove operation name from telemetry
1 parent 1c5ec50 commit c78eb14

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pnp/spfx-controls-react",
33
"description": "Reusable React controls for SharePoint Framework solutions",
4-
"version": "1.1.0",
4+
"version": "1.1.1",
55
"engines": {
66
"node": ">=0.10.0"
77
},
@@ -22,6 +22,7 @@
2222
"@microsoft/sp-module-interfaces": "~1.3.0",
2323
"@microsoft/sp-webpart-base": "~1.3.0",
2424
"@microsoft/sp-webpart-workbench": "~1.3.0",
25+
"@types/applicationinsights-js": "^1.0.5",
2526
"@types/chai": ">=3.4.34 <3.6.0",
2627
"@types/enzyme": "2.8.7",
2728
"@types/mocha": ">=2.2.33 <2.6.0",

src/common/appInsights/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import {Environment,EnvironmentType} from "@microsoft/sp-core-library";
44

55
AppInsights.downloadAndSetup({ instrumentationKey: "9f59b81e-d2ed-411e-a961-8bcf3f7f04d0" });
66

7+
// Remove operation name from the telemetry
8+
AppInsights.context.operation.name = null;
9+
710
export function track(componentName: string, properties: any = {}): void {
811
AppInsights.trackEvent(componentName, {
912
version,

src/common/appInsights/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version: string = "1.1.0";
1+
export const version: string = "1.1.1";

0 commit comments

Comments
 (0)