where to add PnPTelemetry code in SPFX PnP solution

Copper Contributor

Hi all,

I need to include PnP Telemetry in my code. I am working on SPFX React based solution. I haven't used it before. Can you guide me where to use  below lines of code, in Constructor or render method?

const telemetry = PnPTelemetry.getInstance();

This is one of app deployment requirement, haven't found much documentation about it. Will apricate your help on this.

0 Replies