@synnaxlabs/alamos 0.48.0 → 0.50.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.
@@ -1,21 +1,21 @@
1
1
 
2
- > @synnaxlabs/alamos@0.48.0 build /home/runner/work/synnax/synnax/alamos/ts
2
+ > @synnaxlabs/alamos@0.50.0 build /home/runner/work/synnax/synnax/alamos/ts
3
3
  > tsc --noEmit && vite build
4
4
 
5
5
   Synnax - Production mode
6
- vite v7.2.2 building client environment for production...
6
+ vite v7.2.7 building client environment for production...
7
7
  transforming...
8
8
  ✓ 54 modules transformed.
9
9
  rendering chunks...
10
-
11
- [vite:dts] Start generate declaration files...
10
+ 
11
+ [vite:dts] Start generate declaration files...
12
12
  computing gzip size...
13
13
  dist/index.js  0.61 kB │ gzip: 0.36 kB
14
14
  dist/dev.js  5.29 kB │ gzip: 1.50 kB
15
15
  dist/instrumentation-B82TXsFM.js 20.58 kB │ gzip: 5.09 kB
16
- [vite:dts] Declaration files built in 2107ms.
17
-
16
+ [vite:dts] Declaration files built in 2200ms.
17
+ 
18
18
  dist/index.cjs  0.74 kB │ gzip: 0.33 kB
19
19
  dist/dev.cjs  4.09 kB │ gzip: 1.37 kB
20
20
  dist/instrumentation-BUpiX8Rz.cjs 13.63 kB │ gzip: 4.14 kB
21
- ✓ built in 2.46s
21
+ ✓ built in 2.56s
@@ -1,5 +1,5 @@
1
1
  import { AttributeValue, Span as OtelSpan, Tracer as OtelTracer } from '@opentelemetry/api';
2
- import { Destructor } from '@synnaxlabs/x';
2
+ import { destructor } from '@synnaxlabs/x';
3
3
  import { Environment, EnvironmentFilter } from './environment';
4
4
  import { Meta } from './meta';
5
5
  /** Carrier is an entitty that can carry trace metadata across process bounds */
@@ -16,15 +16,15 @@ export declare class Tracer {
16
16
  private readonly filter;
17
17
  constructor(tracer?: OtelTracer, filter?: EnvironmentFilter);
18
18
  child(meta: Meta): Tracer;
19
- debug(key: string): Destructor;
19
+ debug(key: string): destructor.Destructor;
20
20
  debug<F extends SpanF>(key: string, f: F): ReturnType<F>;
21
- bench(key: string): Destructor;
21
+ bench(key: string): destructor.Destructor;
22
22
  bench<F extends SpanF>(key: string, f: F): ReturnType<F>;
23
- prod(key: string): Destructor;
23
+ prod(key: string): destructor.Destructor;
24
24
  prod<F extends SpanF>(key: string, f: F): ReturnType<F>;
25
- trace(key: string, env: Environment): Destructor;
25
+ trace(key: string, env: Environment): destructor.Destructor;
26
26
  trace<F extends SpanF>(key: string, env: Environment, f: F): ReturnType<F>;
27
- trace<F extends SpanF>(key: string, env: Environment, f?: F): ReturnType<F> | Destructor;
27
+ trace<F extends SpanF>(key: string, env: Environment, f?: F): ReturnType<F> | destructor.Destructor;
28
28
  /**
29
29
  * Injects metadata about the current trace into the provided carrier. This metadata
30
30
  * can be parsed on the other side of a network or IPC request to allow the trace to
@@ -1 +1 @@
1
- {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/trace.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,cAAc,EAGnB,KAAK,IAAI,IAAI,QAAQ,EAErB,KAAK,MAAM,IAAI,UAAU,EAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,OAAO,EACL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EAEvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,gFAAgF;AAChF,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,kDAAkD;AAClD,MAAM,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;AAE5C;;;GAGG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,IAAI,CAAmB;IAC/B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAa;IACzC,OAAO,CAAC,QAAQ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;OAMG;IACH,SAAS,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAUjC,8CAA8C;IAC9C,MAAM,CAAC,QAAQ,CAAC,IAAI,SAAgB;CACrC;AAED,qEAAqE;AACrE,MAAM,WAAW,IAAI;IACnB;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,WAAW,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;CACnD;AAED,qBAAa,KAAM,YAAW,IAAI;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAW;gBAEpB,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;IAKvC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI;IAI7C,WAAW,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI;IAMvC,KAAK,IAAI,IAAI;IAIb,GAAG,IAAI,IAAI;CAcZ;AAED,4CAA4C;AAC5C,qBAAa,QAAS,YAAW,IAAI;IACnC,GAAG,EAAE,MAAM,CAAC;gBAEA,GAAG,EAAE,MAAM;IAIvB,GAAG,IAAI,IAAI;IAEX,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI;CACpC"}
package/eslint.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synnaxlabs/alamos",
3
- "version": "0.48.0",
3
+ "version": "0.50.0",
4
4
  "type": "module",
5
5
  "description": "Distributed instrumentation for Synnax",
6
6
  "repository": "https://github.com/synnaxlabs/synnax/tree/main/freighter/ts",
@@ -16,17 +16,18 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@opentelemetry/api": "^1.9.0",
19
- "@synnaxlabs/x": "^0.48.0"
19
+ "@synnaxlabs/x": "^0.50.0"
20
20
  },
21
21
  "devDependencies": {
22
- "eslint": "^9.39.1",
22
+ "@types/node": "^25.0.2",
23
+ "eslint": "^9.39.2",
23
24
  "madge": "^8.0.0",
24
25
  "typescript": "^5.9.3",
25
- "vite": "^7.1.12",
26
+ "vite": "^7.2.7",
26
27
  "vitest": "^3.2.4",
27
- "@synnaxlabs/vite-plugin": "^0.43.0",
28
- "eslint-config-synnaxlabs": "^0.43.0",
29
- "@synnaxlabs/tsconfig": "^0.43.0"
28
+ "@synnaxlabs/tsconfig": "^0.50.0",
29
+ "eslint-config-synnaxlabs": "^0.50.0",
30
+ "@synnaxlabs/vite-plugin": "^0.50.0"
30
31
  },
31
32
  "main": "dist/index.js",
32
33
  "module": "dist/index.js",
package/src/dev/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/external.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/log.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/meta.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/trace.spec.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
package/src/trace.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.
@@ -15,7 +15,7 @@ import {
15
15
  SpanStatusCode,
16
16
  type Tracer as OtelTracer,
17
17
  } from "@opentelemetry/api";
18
- import { type Destructor } from "@synnaxlabs/x";
18
+ import { type destructor } from "@synnaxlabs/x";
19
19
 
20
20
  import {
21
21
  type Environment,
@@ -53,7 +53,7 @@ export class Tracer {
53
53
  return t;
54
54
  }
55
55
 
56
- debug(key: string): Destructor;
56
+ debug(key: string): destructor.Destructor;
57
57
  debug<F extends SpanF>(key: string, f: F): ReturnType<F>;
58
58
 
59
59
  /**
@@ -65,11 +65,11 @@ export class Tracer {
65
65
  * @returns A span that tracks program execution. If the Tracer's environment
66
66
  * rejects the 'debug' environment or the Tracer is noop, a NoopSpan is returned.
67
67
  */
68
- debug<F extends SpanF>(key: string, f?: F): ReturnType<F> | Destructor {
68
+ debug<F extends SpanF>(key: string, f?: F): ReturnType<F> | destructor.Destructor {
69
69
  return this.trace(key, "debug", f);
70
70
  }
71
71
 
72
- bench(key: string): Destructor;
72
+ bench(key: string): destructor.Destructor;
73
73
  bench<F extends SpanF>(key: string, f: F): ReturnType<F>;
74
74
 
75
75
  /**
@@ -81,11 +81,11 @@ export class Tracer {
81
81
  * @returns A span that tracks program execution. If the Tracer's environment
82
82
  * rejects the 'bench' environment or the Tracer is noop, a NoopSpan is returned.
83
83
  */
84
- bench<F extends SpanF>(key: string, f?: F): ReturnType<F> | Destructor {
84
+ bench<F extends SpanF>(key: string, f?: F): ReturnType<F> | destructor.Destructor {
85
85
  return this.trace(key, "bench", f);
86
86
  }
87
87
 
88
- prod(key: string): Destructor;
88
+ prod(key: string): destructor.Destructor;
89
89
  prod<F extends SpanF>(key: string, f: F): ReturnType<F>;
90
90
 
91
91
  /**
@@ -97,17 +97,17 @@ export class Tracer {
97
97
  * @returns A span that tracks program execution. If the Tracer's environment
98
98
  * rejects the 'prod' environment or the Tracer is noop, a NoopSpan is returned.
99
99
  */
100
- prod<F extends SpanF>(key: string, f?: F): ReturnType<F> | Destructor {
100
+ prod<F extends SpanF>(key: string, f?: F): ReturnType<F> | destructor.Destructor {
101
101
  return this.trace(key, "prod", f);
102
102
  }
103
103
 
104
- trace(key: string, env: Environment): Destructor;
104
+ trace(key: string, env: Environment): destructor.Destructor;
105
105
  trace<F extends SpanF>(key: string, env: Environment, f: F): ReturnType<F>;
106
106
  trace<F extends SpanF>(
107
107
  key: string,
108
108
  env: Environment,
109
109
  f?: F,
110
- ): ReturnType<F> | Destructor;
110
+ ): ReturnType<F> | destructor.Destructor;
111
111
 
112
112
  /**
113
113
  * Stars a new span with the given key and environment. If a span already
@@ -123,7 +123,7 @@ export class Tracer {
123
123
  key: string,
124
124
  env: Environment,
125
125
  f?: F,
126
- ): ReturnType<F> | Destructor {
126
+ ): ReturnType<F> | destructor.Destructor {
127
127
  const skip = this.meta.noop || !this.filter(env) || this.otelTracer == null;
128
128
  if (f == null) {
129
129
  if (skip) return () => {};
package/vite.config.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Synnax Labs, Inc.
1
+ // Copyright 2026 Synnax Labs, Inc.
2
2
  //
3
3
  // Use of this software is governed by the Business Source License included in the file
4
4
  // licenses/BSL.txt.