@redthreadlabs/tracelog-client 2.0.0 → 2.1.0
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/dist/TraceLogClient.js +0 -3
- package/dist/types.d.ts +0 -2
- package/package.json +2 -2
package/dist/TraceLogClient.js
CHANGED
|
@@ -283,11 +283,8 @@ class TracelogClient {
|
|
|
283
283
|
const batch = { events, transactions, spans };
|
|
284
284
|
batch.lifetime_id = this._lifetimeId;
|
|
285
285
|
const userId = this._opts.getUserId?.();
|
|
286
|
-
const deviceId = this._opts.getDeviceId?.();
|
|
287
286
|
if (userId)
|
|
288
287
|
batch.user_id = userId;
|
|
289
|
-
if (deviceId)
|
|
290
|
-
batch.device_id = deviceId;
|
|
291
288
|
if (origin)
|
|
292
289
|
batch.origin = origin;
|
|
293
290
|
const headers = await Promise.resolve(this._opts.getAuthHeaders());
|
package/dist/types.d.ts
CHANGED
|
@@ -32,8 +32,6 @@ export interface LogClientOptions {
|
|
|
32
32
|
getOrigin: () => RecordOrigin;
|
|
33
33
|
/** Returns current user ID, if logged in (→ batch.user_id). */
|
|
34
34
|
getUserId?: () => string | undefined;
|
|
35
|
-
/** Returns the consumer's opaque device/installation id (→ batch.device_id). */
|
|
36
|
-
getDeviceId?: () => string | undefined;
|
|
37
35
|
/** Returns the UI locale at event time; stamped onto each event. */
|
|
38
36
|
getLocale?: () => string | undefined;
|
|
39
37
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redthreadlabs/tracelog-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Lightweight logging client for tracelog — works in React Native and browsers",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"typescript": "latest"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@redthreadlabs/tracelog-schema": "^0.
|
|
24
|
+
"@redthreadlabs/tracelog-schema": "^0.5.0"
|
|
25
25
|
}
|
|
26
26
|
}
|