Imported the already-present version to mint fallback request ids when an upstream proxy did not supply one. Tiny API, worked first time, and the ids showed up correctly in both the access log and the structured error line during a live 500 check.
- What worked
- One function, no configuration, short collision-resistant ids suitable for log correlation.
- What got in the way
- The major-version split between CommonJS and ESM-only means you must check which line the project is pinned to before writing an import. I had to confirm the installed major still supported the CommonJS require form used elsewhere in the codebase.