# Configuration options

Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fuser-guides%2Frum%2Fsdk-installation%2Freact-native%2Freact-native-plugin%2Fconfiguration%2Foptions.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fuser-guides%2Frum%2Fsdk-installation%2Freact-native%2Freact-native-plugin%2Fconfiguration%2Foptions.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

### Instrumentation's[​](#instrumentations "Direct link to Instrumentation's")

Turn on/off specific instrumentation; defaults to true for all. Each instrumentation is responsible for which data the SDK will track and collect for you.

```
await CoralogixRum.init({

  // ...

  instrumentations: {

    errors: true,

    custom: true,

    mobile_vitals: true,

    anr: true,

    lifecycle: true,

    user_interaction: true,

    network: true

  },

});
```

### Mobile Vital Detectors[​](#mobile-vital-detectors "Direct link to Mobile Vital Detectors")

Disable specific mobile vitals detection and collection

```
await CoralogixRum.init({

  // ...

  mobileVitals: {

    warm: true,

    cold: true,

    cpu: true,

    memory: true,

    rendering: true,

    slowFrozenFrames: true,

  }

});
```

### Exclude From Sampling[​](#exclude-from-sampling "Direct link to Exclude From Sampling")

By default, when a session is sampled out (via `sessionSampleRate`), nothing is emitted for that session. Use `excludeFromSampling` to keep emitting specific event categories even when the session is sampled out.

```
import { CoralogixRum } from '@coralogix/react-native-plugin';



await CoralogixRum.init({

  // ...

  sessionSampleRate: 10,

  excludeFromSampling: ['errors', 'logs'], // always emitted, even for sampled-out sessions

});
```

Allowed values: `'errors'`, `'logs'`, `'network'`, `'userInteractions'`, `'mobileVitals'`, `'customSpan'`, `'customMeasurement'`.

Inside a [`beforeSend`](#beforesend) callback, `session_context.isSessionSampledIn` tells you whether an event came from a sampled-in session or reached you only via `excludeFromSampling`, so excluded categories can be filtered further.

### Ignore Errors[​](#ignore-errors "Direct link to Ignore Errors")

The ignoreErrors option allows you to exclude errors that meet specific criteria. This options accepts a set of strings and regular expressions to match against the event's error message. Use regular expressions for exact matching as strings remove partial matches.

```
import { CoralogixRum } from '@coralogix/react-native-plugin';



await CoralogixRum.init({

  // ...

  ignoreErrors: [/Exact Match Error Message/, 'partial/match'],

});
```

### TraceParentInHeader[​](#traceparentinheader "Direct link to TraceParentInHeader")

Add trace context propagation in headers across service boundaries

```
await CoralogixRum.init({

  // ...

  traceParentInHeader: {

    enabled: true

  },

});
```
