Skip to content

Commit 1c5719f

Browse files
Merge pull request #15 from multiplayer-app/add-issue-custom-hash-attr
Add issue custom hash attrribute
2 parents 4cd0568 + 0ba7003 commit 1c5719f

File tree

6 files changed

+34
-14
lines changed

6 files changed

+34
-14
lines changed

packages/session-recorder-browser/src/types/session.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { SessionType } from '@multiplayer-app/session-recorder-common'
2-
import { UserType } from './client-type.enum'
2+
import type { UserType } from './client-type.enum'
33

44
export interface IResourceAttributes {
55
browserInfo?: string,

packages/session-recorder-react-native/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@multiplayer-app/session-recorder-react-native",
3-
"version": "1.2.10",
3+
"version": "1.2.11",
44
"description": "Multiplayer Fullstack Session Recorder for React Native",
55
"author": {
66
"name": "Multiplayer Software, Inc.",
@@ -107,7 +107,7 @@
107107
"typescript": "^5.9.2"
108108
},
109109
"dependencies": {
110-
"@multiplayer-app/session-recorder-common": "1.2.10",
110+
"@multiplayer-app/session-recorder-common": "1.2.11",
111111
"@opentelemetry/core": "2.0.1",
112112
"@opentelemetry/exporter-trace-otlp-http": "0.203.0",
113113
"@opentelemetry/instrumentation": "0.203.0",

packages/session-recorder-react-native/src/otel/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export async function extractResponseBody(
263263
} catch (error) {
264264
// If cloning fails (body already consumed), return null
265265

266-
logger.warn('DEBUGGER_LIB', 'Failed to extract response body', error);
266+
logger.warn('MULTIPLAYER_SESSION_RECORDER', 'Failed to extract response body', error);
267267
return null;
268268
}
269269
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export enum UserType {
2+
USER = 'USER',
3+
VISITOR = 'VISITOR',
4+
API_CLIENT = 'API_CLIENT',
5+
}

packages/session-recorder-react-native/src/types/session.ts

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { SessionType } from '@multiplayer-app/session-recorder-common';
2+
import type { UserType } from './client-type.enum';
23

34
export interface IResourceAttributes {
45
browserInfo?: string;
@@ -13,14 +14,25 @@ export interface IResourceAttributes {
1314
}
1415

1516
export interface ISessionAttributes {
16-
userEmail?: string;
17-
userId?: string;
18-
userName?: string;
19-
accountId?: string;
20-
accountName?: string;
2117
[key: string]: any;
2218
}
2319

20+
21+
export interface IUserAttributes {
22+
type: UserType
23+
id?: string
24+
name?: string
25+
groupId?: string
26+
groupName?: string
27+
userEmail?: string
28+
userId?: string
29+
userName?: string
30+
accountId?: string
31+
accountName?: string
32+
orgId?: string
33+
orgName?: string
34+
tags?: string[]
35+
}
2436
export interface ISessionView {
2537
_id: string;
2638
name: string;
@@ -44,6 +56,9 @@ export interface ISession {
4456

4557
resourceAttributes?: IResourceAttributes;
4658
sessionAttributes?: ISessionAttributes;
59+
60+
userAttributes?: IUserAttributes
61+
4762
views: ISessionView[];
4863
starred: boolean;
4964
starredItems: string[];

packages/session-recorder-react-native/yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2488,9 +2488,9 @@ __metadata:
24882488
languageName: node
24892489
linkType: hard
24902490

2491-
"@multiplayer-app/session-recorder-common@npm:1.2.10":
2492-
version: 1.2.10
2493-
resolution: "@multiplayer-app/session-recorder-common@npm:1.2.10"
2491+
"@multiplayer-app/session-recorder-common@npm:1.2.11":
2492+
version: 1.2.11
2493+
resolution: "@multiplayer-app/session-recorder-common@npm:1.2.11"
24942494
dependencies:
24952495
"@opentelemetry/core": ^2.0.1
24962496
"@opentelemetry/exporter-logs-otlp-http": ^0.203.0
@@ -2505,7 +2505,7 @@ __metadata:
25052505
to-json-schema: ^0.2.5
25062506
peerDependencies:
25072507
"@opentelemetry/api": ^1.9.0
2508-
checksum: ad2f4baeceb9da9ddba2d37b7bd2fa1493f3928fec12826f12c11c0a66b6644f94e4baeffdc4eec1c61072d22dec19b8e490a6c73d890b8f89f5319c8c59a354
2508+
checksum: d4b5799aed0c0782a28b230412a1e92a9ae7bab7634eb79f9dff5e6d6b0a82f37c7f63a3700d90792337dd476dfd26ebd6e4c0a05b30480d06d35d3d1307d1e5
25092509
languageName: node
25102510
linkType: hard
25112511

@@ -2518,7 +2518,7 @@ __metadata:
25182518
"@eslint/eslintrc": ^3.3.1
25192519
"@eslint/js": ^9.35.0
25202520
"@evilmartians/lefthook": ^1.12.3
2521-
"@multiplayer-app/session-recorder-common": 1.2.10
2521+
"@multiplayer-app/session-recorder-common": 1.2.11
25222522
"@opentelemetry/api": ^1.9.0
25232523
"@opentelemetry/core": 2.0.1
25242524
"@opentelemetry/exporter-trace-otlp-http": 0.203.0

0 commit comments

Comments
 (0)