@logbrew/react-native 0.1.37 → 0.1.38
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/README.md
CHANGED
|
@@ -122,6 +122,24 @@ client key before creating a new client. A `429` preserves the queue and
|
|
|
122
122
|
reports `pausedReason: "rate_limit"` plus the bounded retry signal exposed by
|
|
123
123
|
the failed flush.
|
|
124
124
|
|
|
125
|
+
## Read Events Back
|
|
126
|
+
|
|
127
|
+
A successful send shows that LogBrew accepted the request. It does not show
|
|
128
|
+
that you can read the event. After your app sends one event, read it
|
|
129
|
+
back with a project read key:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
logbrew projects keys create "<project_id>" --kind read \
|
|
133
|
+
--ingest-key-file "$HOME/.logbrew/setup-check.read" --json
|
|
134
|
+
export LOGBREW_TOKEN="$(< "$HOME/.logbrew/setup-check.read")"
|
|
135
|
+
logbrew read logs --since 1h --json
|
|
136
|
+
logbrew issues --since 1h --json
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
A read key reads 1 project and cannot send telemetry. Run `unset LOGBREW_TOKEN`
|
|
140
|
+
when you finish. [Read your events back](https://docs.logbrew.co/guides/verify-setup)
|
|
141
|
+
covers key kinds, empty results, and how to revoke the key.
|
|
142
|
+
|
|
125
143
|
## Offline And Restart Delivery
|
|
126
144
|
|
|
127
145
|
The React Native entry uses an app-private native queue by default when the
|
package/index.cjs
CHANGED
|
@@ -16,7 +16,7 @@ const {
|
|
|
16
16
|
} = require("./metadata.cjs");
|
|
17
17
|
|
|
18
18
|
const DEFAULT_SDK_NAME = "logbrew-react-native";
|
|
19
|
-
const DEFAULT_SDK_VERSION = "0.1.
|
|
19
|
+
const DEFAULT_SDK_VERSION = "0.1.38";
|
|
20
20
|
const DEFAULT_ENDPOINT = "https://api.logbrew.co/v1/events";
|
|
21
21
|
const NATIVE_RANDOM_HEX = Symbol.for("co.logbrew.react-native.secure-random-hex");
|
|
22
22
|
const MAX_ACTION_NAME_LENGTH = 64;
|
package/instrumentation.cjs
CHANGED
|
@@ -368,6 +368,7 @@ function installGlobalXMLHttpRequestInstrumentation(client, {
|
|
|
368
368
|
const doneState = typeof xhrType.DONE === "number" ? xhrType.DONE : 4;
|
|
369
369
|
const safeRouteTemplateFactory = routeTemplateFactory ?? defaultXhrRouteTemplateFactory;
|
|
370
370
|
|
|
371
|
+
/** @this {XMLHttpRequest} */
|
|
371
372
|
function wrappedOpen(method, url) {
|
|
372
373
|
this[contextKey] = {
|
|
373
374
|
method: normalizeXhrMethod(method),
|
|
@@ -377,6 +378,7 @@ function installGlobalXMLHttpRequestInstrumentation(client, {
|
|
|
377
378
|
return originalOpen.apply(this, arguments);
|
|
378
379
|
}
|
|
379
380
|
|
|
381
|
+
/** @this {XMLHttpRequest} */
|
|
380
382
|
function wrappedSend(body) {
|
|
381
383
|
const context = this[contextKey];
|
|
382
384
|
if (!context) {
|
|
@@ -3,7 +3,7 @@ import Foundation
|
|
|
3
3
|
@objc(LBRNAppleNativeDiagnostics)
|
|
4
4
|
public final class LBRNAppleNativeDiagnostics: NSObject, @unchecked Sendable {
|
|
5
5
|
private static let shared = LBRNAppleNativeDiagnostics()
|
|
6
|
-
private static let sdkVersion = "0.1.
|
|
6
|
+
private static let sdkVersion = "0.1.38"
|
|
7
7
|
|
|
8
8
|
private let lock = NSLock()
|
|
9
9
|
private let replayQueue = DispatchQueue(label: "co.logbrew.react-native.apple-diagnostics-replay")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logbrew/react-native",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"description": "React Native offline delivery, native diagnostics, screen, error, trace, action, and network timeline helpers for LogBrew.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.cjs",
|