From 4c84ae479783d971990ba6aa46e32ea3786f4a7a Mon Sep 17 00:00:00 2001 From: Dayton Ellwanger Date: Sun, 14 Jul 2024 09:29:57 -0700 Subject: [PATCH] Update example of how to disable device collection --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c07363c..3d2afae9 100644 --- a/README.md +++ b/README.md @@ -48,11 +48,12 @@ appInsights.loadAppInsights(); ```ts import { ApplicationInsights } from '@microsoft/applicationinsights-web'; -var RNPlugin = new ReactNativePlugin(); +var RNPlugin = new ReactNativePlugin({ + disableDeviceCollection: true +}); var appInsights = new ApplicationInsights({ config: { instrumentationKey: 'YOUR_INSTRUMENTATION_KEY_GOES_HERE', - disableDeviceCollection: true, extensions: [RNPlugin] } });