@coralogix/react-native-plugin 0.14.1 → 0.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## 0.14.2 (2026-10-20)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - A sampled-out session no longer sends any event unless `excludeFromSampling` is set.
6
+
7
+ ### ⬆️ Dependency Updates
8
+
9
+ - Native iOS SDK bumped to **2.20.2** and native Android SDK to **2.24.1**. The iOS bump also fixes network events sometimes missing `response_payload` with `collectResPayload` enabled.
10
+
1
11
  ## 0.14.1 (2026-10-15)
2
12
 
3
13
  ### 🩹 Fixes
package/CxSdk.podspec CHANGED
@@ -16,9 +16,9 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency 'Coralogix','2.20.0'
20
- s.dependency 'CoralogixInternal','2.20.0'
21
- s.dependency 'SessionReplay','2.20.0'
19
+ s.dependency 'Coralogix','2.20.2'
20
+ s.dependency 'CoralogixInternal','2.20.2'
21
+ s.dependency 'SessionReplay','2.20.2'
22
22
 
23
23
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
24
24
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
package/README.md CHANGED
@@ -39,10 +39,10 @@ down to `0`, because the native bridges read the value as an integer.
39
39
 
40
40
  A sampled-out session still initializes the SDK and, when `traceParentInHeader` is
41
41
  enabled, still adds the `traceparent` header to outgoing requests, so backend traces
42
- stay correlated. It reports only the SDK's own initialization event, a
43
- `session_replay_init` event if Session Replay starts, and the categories you list in
44
- `excludeFromSampling`. At a low sample rate, expect these few events from sessions
45
- that are otherwise not tracked.
42
+ stay correlated. Beyond that it reports nothing unless `excludeFromSampling` lists at
43
+ least one category: no initialization event, and no `session_replay_init` even when
44
+ Session Replay starts. List a category and that category is reported, together with the
45
+ SDK's own internal events.
46
46
 
47
47
  To provide contextual information or transmit manual logs, utilize the exported functions of `CoralogixRum`.
48
48
  Keep in mind that these functions will remain inactive until you've invoked `CoralogixRum.init()`.
@@ -294,6 +294,10 @@ reports everything that is enabled. It never re-enables an instrumentation you
294
294
  turned off in `instrumentations`: with `instrumentations: { network: false }`,
295
295
  listing `'network'` here has no effect.
296
296
 
297
+ Listing anything here also brings back the SDK's own internal events — the
298
+ initialization event, and `session_replay_init` when Session Replay starts — for that
299
+ sampled-out session. Leave the list empty and the session reports nothing at all.
300
+
297
301
  Inside a [`beforeSend`](#beforesend) callback, `session_context.isSessionSampledIn`
298
302
  tells you whether an event came from a sampled-in session or reached you only via
299
303
  `excludeFromSampling`, so excluded categories can be filtered further.
@@ -481,10 +485,11 @@ await CoralogixRum.init({
481
485
  #### Telling excluded events apart in `beforeSend`
482
486
 
483
487
  Every event carries `session_context.isSessionSampledIn`. `false` means the event
484
- reached you only because its category is listed in
485
- [`excludeFromSampling`](#exclude-from-sampling) — the session itself was sampled
486
- out. Use it to apply your own filtering on top of the exclude list, for example to
487
- keep only error-severity events from sampled-out sessions:
488
+ reached you from a session that was sampled out. That happens when the event's category
489
+ is listed in [`excludeFromSampling`](#exclude-from-sampling), and for the SDK's own
490
+ internal events, which travel with any non-empty exclude list. Use it to apply your own
491
+ filtering on top of the exclude list, for example to keep only error-severity events
492
+ from sampled-out sessions:
488
493
 
489
494
  ```javascript
490
495
  await CoralogixRum.init({
@@ -89,7 +89,7 @@ dependencies {
89
89
  // 2.22.0 is the first release exposing View.isCoralogixMasked() and
90
90
  // View.isInsideCoralogixMaskedSubtree(), which the masked-interaction walk in
91
91
  // reportUserInteraction reads instead of reimplementing the SDK's mask rule here.
92
- implementation "com.coralogix:android-sdk:2.24.0"
92
+ implementation "com.coralogix:android-sdk:2.24.1"
93
93
 
94
94
  testImplementation "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
95
95
  testImplementation "org.mockito:mockito-core:5.12.0"
package/index.cjs.js CHANGED
@@ -1140,7 +1140,7 @@ function stopJsRefreshRateSampler() {
1140
1140
  appStateSub = null;
1141
1141
  }
1142
1142
 
1143
- var version = "0.14.1";
1143
+ var version = "0.14.2";
1144
1144
  var pkg = {
1145
1145
  version: version};
1146
1146
 
package/index.esm.js CHANGED
@@ -1138,7 +1138,7 @@ function stopJsRefreshRateSampler() {
1138
1138
  appStateSub = null;
1139
1139
  }
1140
1140
 
1141
- var version = "0.14.1";
1141
+ var version = "0.14.2";
1142
1142
  var pkg = {
1143
1143
  version: version};
1144
1144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coralogix/react-native-plugin",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Official Coralogix React Native plugin",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Coralogix",
@@ -327,8 +327,9 @@ export interface CoralogixBrowserSdkConfig {
327
327
  *
328
328
  * The rate is applied exactly once, by the native SDK, which rolls it again on
329
329
  * every session rotation. The plugin never rolls it. A sampled-out session still
330
- * initializes and propagates `traceparent`, and reports only the SDK's own
331
- * initialization event plus the categories in `excludeFromSampling`.
330
+ * initializes and propagates `traceparent`, but reports nothing unless
331
+ * `excludeFromSampling` lists at least one category; with one listed it reports
332
+ * those categories plus the SDK's own internal events.
332
333
  *
333
334
  * Expressed as a whole percentage in [0, 100]; a fractional value is rounded
334
335
  * (never down to 0) because the native bridges read it as an integer.