Skip to content

Commit 1f972d1

Browse files
committed
dcs
1 parent 11633b9 commit 1f972d1

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

packages/react-native/README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ setFeatureFlagExposure('beta_mode', false);
149149

150150
The automatic capture of network requests can be achieved in a few different ways depending on the platform and the networking library being used.
151151

152-
When initialization is done in JavaScript, always pass `enableNetworkInstrumentation: true` to `init(...)`. This is required on both iOS and Android.
152+
When initialization is done in JavaScript, pass `enableNetworkInstrumentation: true` to `init(...)` for iOS network instrumentation.
153153

154154
#### iOS
155155

@@ -178,21 +178,18 @@ plugins {
178178

179179
To find the version to use, use the same version of the Capture SDK that is being used in the React Native project. Check the `build.gradle` file in the `node_modules/@bitdrift/react-native/android` directory for the version of the Capture SDK being used.
180180

181-
For Android, the plugin also needs instrumentation settings:
181+
For Android, enable the plugin instrumentation block:
182182

183183
```gradle
184184
bitdrift {
185185
instrumentation {
186186
automaticOkHttpInstrumentation = true
187-
okHttpInstrumentationType = OVERWRITE
187+
// Optional. Defaults to PROXY when omitted.
188+
// okHttpInstrumentationType = OVERWRITE
188189
}
189190
}
190191
```
191192

192-
`okHttpInstrumentationType` modes:
193-
- `PROXY` (plugin default): preserves existing `EventListener.Factory` behavior in OkHttp clients.
194-
- `OVERWRITE`: replaces the listener factory and can avoid duplicate network spans in some app setups.
195-
196193
In addition to this the plugin repository needs to be added to the `pluginManagement` block in the `settings.gradle` file:
197194

198195
```gradle

0 commit comments

Comments
 (0)