Skip to content

feat: add Express support#134

Merged
HugoRCD merged 9 commits intomainfrom
feat/express-integration
Mar 5, 2026
Merged

feat: add Express support#134
HugoRCD merged 9 commits intomainfrom
feat/express-integration

Conversation

@HugoRCD
Copy link
Copy Markdown
Owner

@HugoRCD HugoRCD commented Mar 5, 2026

Summary

  • Add evlog/express middleware for automatic wide-event logging in Express applications
  • Add extractSafeNodeHeaders utility for Node.js IncomingHttpHeaders (reusable by Fastify, NestJS, etc.)
  • Full feature parity: drain, enrich, keep (tail sampling), route filtering, service overrides
  • 19 unit tests using shared framework test helpers
  • Example app with interactive test UI and PostHog drain
  • Documentation: installation page section, dedicated example page, AGENTS.md

Closes EVL-108

- Create `evlog/express` middleware with req.log logger access
- Add `extractSafeNodeHeaders` for Node.js IncomingHttpHeaders
- Full pipeline support: drain, enrich, keep (tail sampling)
- 19 unit tests using shared test helpers
- Example app with test UI and PostHog drain
- Documentation: installation page, example page, AGENTS.md
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment, Open in v0 Mar 5, 2026 10:17pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 5, 2026

Thank you for following the naming conventions! 🙏

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 5, 2026

npm i https://pkg.pr.new/evlog@134
npm i https://pkg.pr.new/@evlog/nuxthub@134

commit: a2821ff

HugoRCD added 3 commits March 5, 2026 22:05
Access the request-scoped logger from anywhere in the call stack
without passing req through the service layer.
- Use express-serve-static-core for Request augmentation (Express 5)
- Use ErrorRequestHandler type for proper error handler overload
@HugoRCD HugoRCD changed the title feat(express): add Express middleware integration feat: add Express middleware integration Mar 5, 2026
@HugoRCD HugoRCD changed the title feat: add Express middleware integration feat: add express support Mar 5, 2026
@HugoRCD HugoRCD changed the title feat: add express support feat: add Express support Mar 5, 2026
HugoRCD added 2 commits March 5, 2026 22:13
Expand from 7 to 12 mandatory touchpoints:
- useLogger() with AsyncLocalStorage
- Landing page code snippet
- FeatureFrameworks.vue tab
- Dedicated example docs page
- Package keywords
- Changeset file
- Root package script
- EnrichContext explicit typing
- extractSafeNodeHeaders for Node.js frameworks
- express-serve-static-core type augmentation
- tsc --noEmit verification step
@HugoRCD HugoRCD merged commit 2f92513 into main Mar 5, 2026
11 checks passed
@HugoRCD HugoRCD deleted the feat/express-integration branch March 5, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant