@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 +10 -0
- package/CxSdk.podspec +3 -3
- package/README.md +13 -8
- package/android/build.gradle +1 -1
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/src/model/Types.d.ts +3 -2
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.
|
|
20
|
-
s.dependency 'CoralogixInternal','2.20.
|
|
21
|
-
s.dependency 'SessionReplay','2.20.
|
|
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.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
|
485
|
-
[`excludeFromSampling`](#exclude-from-sampling)
|
|
486
|
-
|
|
487
|
-
keep only error-severity events
|
|
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({
|
package/android/build.gradle
CHANGED
|
@@ -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.
|
|
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
package/index.esm.js
CHANGED
package/package.json
CHANGED
package/src/model/Types.d.ts
CHANGED
|
@@ -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`,
|
|
331
|
-
*
|
|
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.
|