packages/middleware/otel/src/index.ts:9-13 and the withTracing TSDoc at packages/middleware/otel/src/index.ts:53 all describe trace context as living under extensions["x.otel"]. The actual key, defined at line 49 and used at lines 224 and 233, is "x-vendor.opentelemetry.tracecontext" — the spec-conformant x-vendor.<vendor>.<name> namespace, which the same comment block correctly explains on lines 46-48. The contradiction is internal: lines 46-49 explain why the long key is necessary, then lines 9-13 and 53 give the wrong short key to readers writing examples or integrating a non-SDK peer.
Fix prompt: replace every TSDoc reference to extensions["x.otel"] with extensions["x-vendor.opentelemetry.tracecontext"] in packages/middleware/otel/src/index.ts:9, packages/middleware/otel/src/index.ts:12, and packages/middleware/otel/src/index.ts:53. Where the wrapping prose gets cluttered, abbreviate as extensions[OTEL_EXTENSION_NAME] and add a one-line @see to the constant. Check that no other doc under docs/ cites the wrong key; update docs/packages/middleware-otel.md (if present) and any README example to match.
packages/middleware/otel/src/index.ts:9-13and thewithTracingTSDoc atpackages/middleware/otel/src/index.ts:53all describe trace context as living underextensions["x.otel"]. The actual key, defined at line 49 and used at lines 224 and 233, is"x-vendor.opentelemetry.tracecontext"— the spec-conformantx-vendor.<vendor>.<name>namespace, which the same comment block correctly explains on lines 46-48. The contradiction is internal: lines 46-49 explain why the long key is necessary, then lines 9-13 and 53 give the wrong short key to readers writing examples or integrating a non-SDK peer.Fix prompt: replace every TSDoc reference to
extensions["x.otel"]withextensions["x-vendor.opentelemetry.tracecontext"]inpackages/middleware/otel/src/index.ts:9,packages/middleware/otel/src/index.ts:12, andpackages/middleware/otel/src/index.ts:53. Where the wrapping prose gets cluttered, abbreviate asextensions[OTEL_EXTENSION_NAME]and add a one-line@seeto the constant. Check that no other doc underdocs/cites the wrong key; updatedocs/packages/middleware-otel.md(if present) and any README example to match.