@youssoufcherif/signals-opentelemetry 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Youssouf Cherif Hamed
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @youssoufcherif/signals-opentelemetry
2
+
3
+ > ⚠️ **Pre-alpha (`0.0.x`)** — built in the open, APIs change without notice.
4
+ > Not yet supported for use outside the author's projects. See the
5
+ > [repo README](https://github.com/yhcherif/signals#readme).
6
+
7
+ The OpenTelemetry adapter for
8
+ [Signals](https://github.com/yhcherif/signals) — the only package in the
9
+ ecosystem that imports `@opentelemetry/*`. Your business code stays free of
10
+ `Span`/`Context`/SDK types; this adapter maps the Signals ports onto OTel.
11
+
12
+ `@opentelemetry/api` is a peer dependency; exporter/SDK setup remains your
13
+ application's composition-root concern.
14
+
15
+ ```bash
16
+ pnpm add @youssoufcherif/signals-opentelemetry @opentelemetry/api
17
+ ```
18
+
19
+ ```ts
20
+ import { createOtelSignals } from '@youssoufcherif/signals-opentelemetry';
21
+
22
+ const signals = createOtelSignals({ serviceName: 'checkout' });
23
+
24
+ await signals.trace.run('checkout.process', async (ctx) => {
25
+ ctx.metric.counter('payment.attempts');
26
+ });
27
+ await signals.shutdown();
28
+ ```
29
+
30
+ Known `0.0.x` simplifications: the log port falls back to `console.log`
31
+ pending `@opentelemetry/api-logs` integration, and `gauge` is approximated
32
+ with an `UpDownCounter`.
33
+
34
+ MIT © Youssouf Cherif Hamed
@@ -0,0 +1,3 @@
1
+ export { createOtelSignals, makeOtelPort } from './make-otel-port.js';
2
+ export type { OtelPortConfig } from './make-otel-port.js';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACtE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { createOtelSignals, makeOtelPort } from './make-otel-port.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,20 @@
1
+ export type OtelExceptionInput = {
2
+ name?: string;
3
+ message: string;
4
+ stack?: string;
5
+ };
6
+ /**
7
+ * OTel's `recordException` wants a plain object shape, not necessarily a
8
+ * real `Error`. We build a fresh object rather than casting `err` into
9
+ * that shape - this file lives in `internal/` specifically because of the
10
+ * `instanceof Error` check below, kept isolated from the rest of the
11
+ * adapter per the class/instanceof convention in ADR-0001.
12
+ *
13
+ * Optional keys are omitted entirely when absent (rather than set to
14
+ * `undefined`) because OTel's own `Exception` type does not opt in to
15
+ * `exactOptionalPropertyTypes`-style `| undefined` on its optional fields
16
+ * - a vendor constraint we work around here rather than by loosening our
17
+ * own tsconfig.
18
+ */
19
+ export declare function toOtelExceptionInput(err: unknown): OtelExceptionInput;
20
+ //# sourceMappingURL=to-otel-exception.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-otel-exception.d.ts","sourceRoot":"","sources":["../../src/internal/to-otel-exception.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpF;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,CASrE"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * OTel's `recordException` wants a plain object shape, not necessarily a
3
+ * real `Error`. We build a fresh object rather than casting `err` into
4
+ * that shape - this file lives in `internal/` specifically because of the
5
+ * `instanceof Error` check below, kept isolated from the rest of the
6
+ * adapter per the class/instanceof convention in ADR-0001.
7
+ *
8
+ * Optional keys are omitted entirely when absent (rather than set to
9
+ * `undefined`) because OTel's own `Exception` type does not opt in to
10
+ * `exactOptionalPropertyTypes`-style `| undefined` on its optional fields
11
+ * - a vendor constraint we work around here rather than by loosening our
12
+ * own tsconfig.
13
+ */
14
+ export function toOtelExceptionInput(err) {
15
+ if (err instanceof Error) {
16
+ return {
17
+ message: err.message,
18
+ ...(err.name !== undefined ? { name: err.name } : {}),
19
+ ...(err.stack !== undefined ? { stack: err.stack } : {}),
20
+ };
21
+ }
22
+ return { message: String(err) };
23
+ }
24
+ //# sourceMappingURL=to-otel-exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-otel-exception.js","sourceRoot":"","sources":["../../src/internal/to-otel-exception.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAY;IAC/C,IAAI,GAAG,YAAY,KAAK,EAAE,CAAC;QACzB,OAAO;YACL,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,GAAG,CAAC,GAAG,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;YACrD,GAAG,CAAC,GAAG,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACzD,CAAC;IACJ,CAAC;IACD,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;AAClC,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { Meter, Tracer } from '@opentelemetry/api';
2
+ import type { Signals, SignalsPort } from '@youssoufcherif/signals-core';
3
+ export type OtelPortConfig = {
4
+ serviceName: string;
5
+ /** Inject an existing tracer instead of resolving one from the global provider. */
6
+ tracer?: Tracer;
7
+ /** Inject an existing meter instead of resolving one from the global provider. */
8
+ meter?: Meter;
9
+ /**
10
+ * Called from `flush()`. Wire this to your TracerProvider/MeterProvider's
11
+ * `forceFlush`/`shutdown` — this adapter deliberately doesn't reach for a
12
+ * global SDK instance, keeping provider setup entirely at your
13
+ * composition root.
14
+ */
15
+ onFlush?: () => Promise<void>;
16
+ };
17
+ /**
18
+ * The OTel strategy. This is the ONLY file in the whole ecosystem allowed
19
+ * to import `@opentelemetry/api` (see ADR-0002, biome.json override, and
20
+ * scripts/check-boundaries.mjs). Everything it produces is translated into
21
+ * the plain `SignalsPort` shape before leaving this file — no `Span`,
22
+ * `Tracer`, or other OTel type is ever returned to a caller.
23
+ *
24
+ * Parent/child span linkage uses an identity-keyed WeakMap from our own
25
+ * `SpanHandle` to the underlying OTel `Span`, rather than exposing the OTel
26
+ * span on the handle itself. This keeps `SpanHandle` vendor-free while
27
+ * still letting this adapter build correct OTel parent contexts.
28
+ */
29
+ export declare function makeOtelPort(config: OtelPortConfig): SignalsPort;
30
+ export declare function createOtelSignals(config: OtelPortConfig): Signals;
31
+ //# sourceMappingURL=make-otel-port.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-otel-port.d.ts","sourceRoot":"","sources":["../src/make-otel-port.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAsB,KAAK,EAAQ,MAAM,EAAiB,MAAM,oBAAoB,CAAC;AAEjG,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAc,MAAM,8BAA8B,CAAC;AAIrF,MAAM,MAAM,cAAc,GAAG;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,cAAc,GAAG,WAAW,CAuFhE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAEjE"}
@@ -0,0 +1,100 @@
1
+ import { context as otelContext, metrics as otelMetrics, trace as otelTrace, } from '@opentelemetry/api';
2
+ import { SpanStatusCode } from '@opentelemetry/api';
3
+ import { createSignals } from '@youssoufcherif/signals-core';
4
+ import { assertNever } from '@youssoufcherif/signals-core';
5
+ import { toOtelExceptionInput } from './internal/to-otel-exception.js';
6
+ /**
7
+ * The OTel strategy. This is the ONLY file in the whole ecosystem allowed
8
+ * to import `@opentelemetry/api` (see ADR-0002, biome.json override, and
9
+ * scripts/check-boundaries.mjs). Everything it produces is translated into
10
+ * the plain `SignalsPort` shape before leaving this file — no `Span`,
11
+ * `Tracer`, or other OTel type is ever returned to a caller.
12
+ *
13
+ * Parent/child span linkage uses an identity-keyed WeakMap from our own
14
+ * `SpanHandle` to the underlying OTel `Span`, rather than exposing the OTel
15
+ * span on the handle itself. This keeps `SpanHandle` vendor-free while
16
+ * still letting this adapter build correct OTel parent contexts.
17
+ */
18
+ export function makeOtelPort(config) {
19
+ const tracer = config.tracer ?? otelTrace.getTracer(config.serviceName);
20
+ const meter = config.meter ?? otelMetrics.getMeter(config.serviceName);
21
+ const otelSpanByHandle = new WeakMap();
22
+ const counters = new Map();
23
+ const histograms = new Map();
24
+ const gauges = new Map();
25
+ const startSpan = (name, parent) => {
26
+ const parentOtelSpan = parent ? otelSpanByHandle.get(parent) : undefined;
27
+ const parentContext = parentOtelSpan
28
+ ? otelTrace.setSpan(otelContext.active(), parentOtelSpan)
29
+ : otelContext.active();
30
+ const span = tracer.startSpan(name, undefined, parentContext);
31
+ const handle = {
32
+ setAttribute: (key, value) => {
33
+ span.setAttribute(key, value);
34
+ },
35
+ addEvent: (eventName, attrs) => {
36
+ span.addEvent(eventName, attrs);
37
+ },
38
+ recordException: (err) => {
39
+ span.recordException(toOtelExceptionInput(err));
40
+ span.setStatus({ code: SpanStatusCode.ERROR });
41
+ },
42
+ end: () => {
43
+ span.end();
44
+ },
45
+ getCorrelation: () => {
46
+ const spanContext = span.spanContext();
47
+ return { traceId: spanContext.traceId, spanId: spanContext.spanId };
48
+ },
49
+ };
50
+ otelSpanByHandle.set(handle, span);
51
+ return handle;
52
+ };
53
+ const log = (level, message, attrs) => {
54
+ // A dedicated OTel Logs SDK integration (@opentelemetry/api-logs) is a
55
+ // natural follow-up once that API stabilizes further. For now, route
56
+ // through console with level + attrs preserved as structured JSON,
57
+ // which is still fully correlated via the caller's injected
58
+ // traceId/spanId attrs from createSignals' log correlation.
59
+ console.log(JSON.stringify({ level, message, ...attrs }));
60
+ };
61
+ const recordMetric = (kind, name, value, attrs) => {
62
+ switch (kind) {
63
+ case 'counter': {
64
+ const counter = counters.get(name) ?? meter.createCounter(name);
65
+ counters.set(name, counter);
66
+ counter.add(value, attrs);
67
+ return;
68
+ }
69
+ case 'histogram': {
70
+ const histogram = histograms.get(name) ?? meter.createHistogram(name);
71
+ histograms.set(name, histogram);
72
+ histogram.record(value, attrs);
73
+ return;
74
+ }
75
+ case 'gauge': {
76
+ // OTel's true gauge is observable/callback-based; an UpDownCounter
77
+ // is the closest push-based approximation. Documented limitation:
78
+ // this behaves like a running total, not an instantaneous
79
+ // snapshot. A callback-based observable gauge is a natural
80
+ // follow-up if that distinction matters for your dashboards.
81
+ const gauge = gauges.get(name) ?? meter.createUpDownCounter(name);
82
+ gauges.set(name, gauge);
83
+ gauge.add(value, attrs);
84
+ return;
85
+ }
86
+ default:
87
+ assertNever(kind);
88
+ }
89
+ };
90
+ const flush = async () => {
91
+ if (config.onFlush) {
92
+ await config.onFlush();
93
+ }
94
+ };
95
+ return { startSpan, log, recordMetric, flush };
96
+ }
97
+ export function createOtelSignals(config) {
98
+ return createSignals(makeOtelPort(config));
99
+ }
100
+ //# sourceMappingURL=make-otel-port.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-otel-port.js","sourceRoot":"","sources":["../src/make-otel-port.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,OAAO,IAAI,WAAW,EACtB,KAAK,IAAI,SAAS,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAiBvE;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAAC,MAAsB;IACjD,MAAM,MAAM,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AAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;gBACtE,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;gBAChC,SAAS,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBAC/B,OAAO;YACT,CAAC;YACD,KAAK,OAAO,CAAC,CAAC,CAAC;gBACb,mEAAmE;gBACnE,kEAAkE;gBAClE,0DAA0D;gBAC1D,2DAA2D;gBAC3D,6DAA6D;gBAC7D,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;gBAClE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACxB,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBACxB,OAAO;YACT,CAAC;YACD;gBACE,WAAW,CAAC,IAAI,CAAC,CAAC;QACtB,CAAC;IACH,CAAC,CAAC;IAEF,MAAM,KAAK,GAAyB,KAAK,IAAI,EAAE;QAC7C,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACnB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAAsB;IACtD,OAAO,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,CAAC;AAC7C,CAAC"}
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@youssoufcherif/signals-opentelemetry",
3
+ "version": "0.0.1",
4
+ "description": "OpenTelemetry adapter for Signals. The only package in this ecosystem that depends on @opentelemetry/*.",
5
+ "license": "MIT",
6
+ "author": "Youssouf Cherif Hamed <youssouf.cherif.hamed@gmail.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/yhcherif/signals.git",
10
+ "directory": "packages/opentelemetry"
11
+ },
12
+ "homepage": "https://github.com/yhcherif/signals/tree/main/packages/opentelemetry#readme",
13
+ "bugs": "https://github.com/yhcherif/signals/issues",
14
+ "keywords": [
15
+ "telemetry",
16
+ "observability",
17
+ "signals",
18
+ "opentelemetry",
19
+ "otel",
20
+ "adapter"
21
+ ],
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "engines": {
25
+ "node": ">=20"
26
+ },
27
+ "main": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
29
+ "exports": {
30
+ ".": {
31
+ "types": "./dist/index.d.ts",
32
+ "import": "./dist/index.js"
33
+ }
34
+ },
35
+ "files": [
36
+ "dist",
37
+ "LICENSE"
38
+ ],
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "provenance": true
42
+ },
43
+ "dependencies": {
44
+ "@youssoufcherif/signals-core": "0.0.1"
45
+ },
46
+ "peerDependencies": {
47
+ "@opentelemetry/api": "^1.9.0"
48
+ },
49
+ "devDependencies": {
50
+ "@opentelemetry/api": "^1.9.0",
51
+ "typescript": "^5.6.0",
52
+ "vitest": "^2.1.0",
53
+ "@types/node": "^22.0.0"
54
+ },
55
+ "scripts": {
56
+ "build": "tsc -p tsconfig.json",
57
+ "test": "vitest run"
58
+ }
59
+ }