diff --git a/package-lock.json b/package-lock.json index 3e037eb..040daa7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@microsoft/sp-webpart-base": "1.22.1", "@pnp/sp": "^4.20.0", "@pnp/spfx-controls-react": "^3.25.0", + "@pnp/telemetry-js": "2.0.0", "@tnsu/monitoring-web": "^0.3.4", "@tnsu/ui-kit": "^0.15.0", "jszip": "~3.8.0", diff --git a/package.json b/package.json index c596520..96208f0 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "@microsoft/sp-webpart-base": "1.22.1", "@pnp/sp": "^4.20.0", "@pnp/spfx-controls-react": "^3.25.0", + "@pnp/telemetry-js": "2.0.0", "@tnsu/monitoring-web": "^0.3.4", "@tnsu/ui-kit": "^0.15.0", "jszip": "~3.8.0", diff --git a/src/webparts/requestPortal/RequestPortalWebPart.ts b/src/webparts/requestPortal/RequestPortalWebPart.ts index 3a4ea97..725e0db 100644 --- a/src/webparts/requestPortal/RequestPortalWebPart.ts +++ b/src/webparts/requestPortal/RequestPortalWebPart.ts @@ -9,6 +9,7 @@ import { } from '@microsoft/sp-property-pane'; import { BaseClientSideWebPart } from '@microsoft/sp-webpart-base'; import { IReadonlyTheme } from '@microsoft/sp-component-base'; +import PnPTelemetry from '@pnp/telemetry-js'; import { initMonitoring, spfxTokenProvider } from '@tnsu/monitoring-web'; import * as strings from 'RequestPortalWebPartStrings'; @@ -104,6 +105,9 @@ export default class RequestPortalWebPart extends BaseClientSideWebPart