@dxos/client-services 0.13.0 → 0.14.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/lib/chunk-client-services-stack.mjs +43 -40
- package/dist/lib/chunk-client-services-stack.mjs.map +1 -1
- package/dist/types/src/internal/invitations/invitations-handler.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +40 -40
- package/src/internal/invitations/invitations-handler.ts +7 -1
- package/src/version.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/client-services",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "DXOS client services implementation",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -36,44 +36,44 @@
|
|
|
36
36
|
"crc-32": "^1.2.2",
|
|
37
37
|
"effect": "4.0.0",
|
|
38
38
|
"platform": "^1.3.6",
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/compute
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/echo
|
|
49
|
-
"@dxos/echo-
|
|
50
|
-
"@dxos/echo-
|
|
51
|
-
"@dxos/echo-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/feed
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/sql-sqlite": "0.
|
|
70
|
-
"@dxos/teleport
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
39
|
+
"@dxos/async": "0.14.0",
|
|
40
|
+
"@dxos/client-protocol": "0.14.0",
|
|
41
|
+
"@dxos/compute": "0.14.0",
|
|
42
|
+
"@dxos/compute-runtime": "0.14.0",
|
|
43
|
+
"@dxos/config": "0.14.0",
|
|
44
|
+
"@dxos/context": "0.14.0",
|
|
45
|
+
"@dxos/credentials": "0.14.0",
|
|
46
|
+
"@dxos/crypto": "0.14.0",
|
|
47
|
+
"@dxos/debug": "0.14.0",
|
|
48
|
+
"@dxos/echo": "0.14.0",
|
|
49
|
+
"@dxos/echo-client": "0.14.0",
|
|
50
|
+
"@dxos/echo-doc": "0.14.0",
|
|
51
|
+
"@dxos/echo-host": "0.14.0",
|
|
52
|
+
"@dxos/echo-protocol": "0.14.0",
|
|
53
|
+
"@dxos/edge-client": "0.14.0",
|
|
54
|
+
"@dxos/effect": "0.14.0",
|
|
55
|
+
"@dxos/errors": "0.14.0",
|
|
56
|
+
"@dxos/feed": "0.14.0",
|
|
57
|
+
"@dxos/feed-store": "0.14.0",
|
|
58
|
+
"@dxos/hypercore": "0.14.0",
|
|
59
|
+
"@dxos/invariant": "0.14.0",
|
|
60
|
+
"@dxos/keyring": "0.14.0",
|
|
61
|
+
"@dxos/keys": "0.14.0",
|
|
62
|
+
"@dxos/log": "0.14.0",
|
|
63
|
+
"@dxos/messaging": "0.14.0",
|
|
64
|
+
"@dxos/network-manager": "0.14.0",
|
|
65
|
+
"@dxos/node-std": "0.14.0",
|
|
66
|
+
"@dxos/protocols": "0.14.0",
|
|
67
|
+
"@dxos/random-access-storage": "0.14.0",
|
|
68
|
+
"@dxos/rpc": "0.14.0",
|
|
69
|
+
"@dxos/sql-sqlite": "0.14.0",
|
|
70
|
+
"@dxos/teleport": "0.14.0",
|
|
71
|
+
"@dxos/teleport-extension-gossip": "0.14.0",
|
|
72
|
+
"@dxos/teleport-extension-replicator": "0.14.0",
|
|
73
|
+
"@dxos/timeframe": "0.14.0",
|
|
74
|
+
"@dxos/tracing": "0.14.0",
|
|
75
|
+
"@dxos/types": "0.14.0",
|
|
76
|
+
"@dxos/util": "0.14.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@effect/platform-browser": "4.0.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"fast-check": "^3.19.0",
|
|
82
82
|
"get-port-please": "^3.1.1",
|
|
83
83
|
"random-access-storage": "^1.3.0",
|
|
84
|
-
"@dxos/test-utils": "0.
|
|
84
|
+
"@dxos/test-utils": "0.14.0"
|
|
85
85
|
},
|
|
86
86
|
"publishConfig": {
|
|
87
87
|
"access": "public"
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
import { type Context, ContextDisposedError } from '@dxos/context';
|
|
19
19
|
import { createKeyPair, sign } from '@dxos/crypto';
|
|
20
20
|
import { type EdgeHttpClient, EdgeHttpClientService } from '@dxos/edge-client';
|
|
21
|
+
import * as SpanAttributes from '@dxos/effect/SpanAttributes';
|
|
21
22
|
import { invariant } from '@dxos/invariant';
|
|
22
23
|
import { PublicKey } from '@dxos/keys';
|
|
23
24
|
import { log } from '@dxos/log';
|
|
@@ -142,6 +143,8 @@ export class InvitationsHandler {
|
|
|
142
143
|
attributes: {
|
|
143
144
|
'ctx.dxos.invitation.id': invitation.invitationId,
|
|
144
145
|
'ctx.dxos.invitation.kind': Invitation_Kind[invitation.kind],
|
|
146
|
+
// Invitations are rare and counted one by one, so a 30% sample would hide most of them.
|
|
147
|
+
[SpanAttributes.SAMPLING.keep]: true,
|
|
145
148
|
},
|
|
146
149
|
}) ?? ctx;
|
|
147
150
|
if (ctx !== invitationCtx) {
|
|
@@ -149,8 +152,10 @@ export class InvitationsHandler {
|
|
|
149
152
|
void invitationCtx.dispose();
|
|
150
153
|
});
|
|
151
154
|
}
|
|
152
|
-
ctx.onDispose(() => _trace.spanEnd(hostSpanId));
|
|
153
155
|
const guardedState = createGuardedInvitationState(ctx, invitation, stream);
|
|
156
|
+
ctx.onDispose(() =>
|
|
157
|
+
_trace.spanEnd(hostSpanId, { attributes: { outcome: getInvitationOutcome(guardedState.current.state) } }),
|
|
158
|
+
);
|
|
154
159
|
const topology = new InvitationTopology(InvitationOptions_Role.HOST);
|
|
155
160
|
// Called for every connecting peer.
|
|
156
161
|
const createExtension = (remotePeerId: PublicKey): InvitationHostExtension => {
|
|
@@ -320,6 +325,7 @@ export class InvitationsHandler {
|
|
|
320
325
|
'ctx.dxos.invitation.kind': Invitation_Kind[invitation.kind],
|
|
321
326
|
'ctx.dxos.invitation.type': Invitation_Type[invitation.type],
|
|
322
327
|
...(invitation.spaceId ? { 'ctx.spaceId': invitation.spaceId } : {}),
|
|
328
|
+
[SpanAttributes.SAMPLING.keep]: true,
|
|
323
329
|
},
|
|
324
330
|
}) ?? ctx;
|
|
325
331
|
if (ctx !== invitationCtx) {
|
package/src/version.ts
CHANGED