@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-services",
3
- "version": "0.13.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/client-protocol": "0.13.0",
40
- "@dxos/compute": "0.13.0",
41
- "@dxos/compute-runtime": "0.13.0",
42
- "@dxos/config": "0.13.0",
43
- "@dxos/async": "0.13.0",
44
- "@dxos/credentials": "0.13.0",
45
- "@dxos/crypto": "0.13.0",
46
- "@dxos/debug": "0.13.0",
47
- "@dxos/echo": "0.13.0",
48
- "@dxos/echo-client": "0.13.0",
49
- "@dxos/echo-doc": "0.13.0",
50
- "@dxos/echo-host": "0.13.0",
51
- "@dxos/echo-protocol": "0.13.0",
52
- "@dxos/edge-client": "0.13.0",
53
- "@dxos/effect": "0.13.0",
54
- "@dxos/errors": "0.13.0",
55
- "@dxos/feed": "0.13.0",
56
- "@dxos/feed-store": "0.13.0",
57
- "@dxos/hypercore": "0.13.0",
58
- "@dxos/invariant": "0.13.0",
59
- "@dxos/keyring": "0.13.0",
60
- "@dxos/keys": "0.13.0",
61
- "@dxos/log": "0.13.0",
62
- "@dxos/messaging": "0.13.0",
63
- "@dxos/network-manager": "0.13.0",
64
- "@dxos/node-std": "0.13.0",
65
- "@dxos/protocols": "0.13.0",
66
- "@dxos/random-access-storage": "0.13.0",
67
- "@dxos/rpc": "0.13.0",
68
- "@dxos/teleport-extension-gossip": "0.13.0",
69
- "@dxos/sql-sqlite": "0.13.0",
70
- "@dxos/teleport-extension-replicator": "0.13.0",
71
- "@dxos/timeframe": "0.13.0",
72
- "@dxos/tracing": "0.13.0",
73
- "@dxos/types": "0.13.0",
74
- "@dxos/util": "0.13.0",
75
- "@dxos/teleport": "0.13.0",
76
- "@dxos/context": "0.13.0"
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.13.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
@@ -2,4 +2,4 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- export const DXOS_VERSION = '0.13.0';
5
+ export const DXOS_VERSION = '0.14.0';