Skip to content

Commit b5685cd

Browse files
acn-ericlawclaude
andcommitted
session 2026-09-22 [Claude Code] - forwarder span kind follows the engines' connected-span-tree rule
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 2b04a7d commit b5685cd

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

‎memory/continuity.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@
8989
credential headers per export. Same `otel.*` keys as Java/Rust/Python; deltas: `otel.exporter.otlp.connect.timeout`
9090
has no effect (one overall fetch timeout), scope `mercury-composable-nodejs`. Rejected: the OTel SDKs as an
9191
optional dependency (~ten packages against this package's two). Shipped: PR #101, merge `586c3f63` (2026-09-22).
92+
**Kind rule since 2026-09-22 (branch `fix/otel-span-kind-edge`):** SERVER iff the record's `service` is `http.request` — an
93+
engine edge's round-trip record — and every function execution is INTERNAL; a record's `from` no longer decides the kind
94+
(the engines' connected-span-tree fix, mercury-composable/mercury `fix/connected-edge-spans`).
9295
<!-- id: otel-forwarder-nodejs | created: 2026-09-22 | last_used: 2026-09-22 | uses: 1 | tier: working | origin: 2026-09-22-165807 -->
9396

9497
## Conventions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
- [ ] **OpenTelemetry forwarder lock-step and the v4.12.15 milestone (Eric's plan, 2026-09-22).** This host's
22
forwarder is MERGED (PR #101, `586c3f63`, 2026-09-22), as is the mercury-python twin (#33). The `llm.chat` /
33
`llm.stream` demo nodes are MERGED (PR #102, `7ab3c621`, fetch-based, no SDK — Eric's ruling) and the four-runtime Dynatrace drive ran 2026-09-22 (this host's traces `888a3f72…`, `1232ab83…`; report MERGED, PR #103 `82adef92`). Remaining: Eric's Dynatrace confirmation, then v4.12.15 on all four repos (this package
4-
jumps from 4.12.1, adopting the Java number). origin: 2026-09-22-165807
4+
jumps from 4.12.1, adopting the Java number). **2026-09-22 (later):** the span kind rule follows the engines' connected-span-tree fix (SERVER iff `service == http.request`, functions INTERNAL) on branch `fix/otel-span-kind-edge` (`c95144f`, pushed; PR by Eric) — ships with 4.12.15. origin: 2026-09-22-165807, 2026-09-22-194836
55
<!-- id: otel-forwarder-lockstep | created: 2026-09-22 | last_used: 2026-09-22 | uses: 1 | tier: working | origin: 2026-09-22-165807 -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Session (2026-09-22T19:48:36.000Z)
2+
3+
**Agent:** Claude Code
4+
**Title:** OpenTelemetry forwarder — the span kind follows the engines' connected-span-tree rule (branch `fix/otel-span-kind-edge`, `c95144f`, pushed 2026-09-22)
5+
6+
## What happened
7+
8+
Eric's Dynatrace review of the v4.12.15 four-runtime certification traces found the span trees broken
9+
on the engine side (an orphaned client leg, a lane span per relayed token, no span covering the HTTP
10+
round trip). The engines now record the round trip as its own span (`service=http.request`,
11+
mercury-composable and mercury `fix/connected-edge-spans`) and map only that record to SERVER. This pack's
12+
forwarder adopts the same rule so a mixed-runtime trace renders one tree: `span kind = SERVER iff service ==
13+
http.request`; every function execution — including the first one, whose `from` is `http.request` — is
14+
INTERNAL. One line in the span mapper (`src/otel/span.ts`), the mapping docstring, the tests (a function execution encodes as
15+
kind 1, the edge record as kind 2) and a CHANGELOG *Changed* entry under `Unreleased (4.12.15 in
16+
preparation)`.
17+
18+
Gates: `npm test` 104 passed (forwarder file 18/18). Pushed; PR by Eric. Behaviour change to read: a host's own records are INTERNAL hops
19+
under the calling engine's edge span; a dashboard keyed on kind=SERVER sees the engine's edge record.
20+
21+
## Memory References
22+
23+
- referenced: `otel-forwarder-nodejs` (the forwarder fact), `otel-forwarder-lockstep` (the thread — still open
24+
until v4.12.15 ships)

0 commit comments

Comments
 (0)