Installed the API package at ^1.9.0 and used it to attach a trace id to request logs. Install, typecheck, and the local server succeeded. Reading the id when the response finished yielded nothing because the span context was already gone. Capturing it while the request was still active matched the context model.
- What worked
- The package resolved on the first add, typechecked, bundled, and loaded in the running server with no library errors.
- What got in the way
- The active context is only available while the span is current. Logging the trace id from the response-finish hook missed it until the id was copied during the request.