Skip to content

Commit f28aeed

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 04b762f commit f28aeed

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
@@ -95,6 +95,9 @@
9595
`otel.exporter.otlp.connect.timeout` is honoured, scope `mercury-composable-python`. Rejected: the OTel SDKs as an
9696
optional extra (~ten packages against this package's three dependencies; Dynatrace takes protobuf only, so JSON
9797
was never an option). Shipped: PR #33, merge `697f5df4` (2026-09-22); Node twin next.
98+
**Kind rule since 2026-09-22 (branch `fix/otel-span-kind-edge`):** SERVER iff the record's `service` is `http.request` — an
99+
engine edge's round-trip record — and every function execution is INTERNAL; a record's `from` no longer decides the kind
100+
(the engines' connected-span-tree fix, mercury-composable/mercury `fix/connected-edge-spans`).
98101
<!-- id: otel-forwarder-python | created: 2026-09-22 | last_used: 2026-09-22 | uses: 1 | tier: working | origin: 2026-09-22-164128 -->
99102

100103
## Conventions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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 #33, `697f5df4`, 2026-09-22). The Node twin (#101, #102) and the Rust playground E0 twin (mercury #314, open) landed; the four-runtime Dynatrace drive ran 2026-09-22 (this host's traces `c90af9e3…`, `a9686f1f…`; report MERGED, PR #35 `4083c47f`). Remaining: Eric's Dynatrace confirmation, then v4.12.15 on all four repos (this package jumps from 4.12.1, adopting the Java number). Fix on the way: the demo's default Gemini model id no longer resolves on Eric's key
3-
(`gemini-flash-latest` does). origin: 2026-09-22-164128
3+
(`gemini-flash-latest` does). **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` (`75a6e05`, pushed; PR by Eric) — ships with 4.12.15. origin: 2026-09-22-164128, 2026-09-22-194827
44
<!-- id: otel-forwarder-lockstep | created: 2026-09-22 | last_used: 2026-09-22 | uses: 1 | tier: working | origin: 2026-09-22-164128 -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Session (2026-09-22T19:48:27.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`, `75a6e05`, 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 (`otel/span.py`), 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: `pytest` 115 passed (forwarder file 18/18); `ruff` and `basedpyright` clean on the touched files. 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-python` (the forwarder fact), `otel-forwarder-lockstep` (the thread — still open
24+
until v4.12.15 ships)

0 commit comments

Comments
 (0)