What problem does it solve?
This Skill provides comprehensive instrumentation for Node.js and edge environments to enable efficient tracing, logging, and error handling, reducing the complexity of performance monitoring.
Core Features & Use Cases
- Function Wrapping with Traces and Spans: Wraps asynchronous functions to automatically create traces and handle errors.
- Request-scoped Logging: Enables structured request logging with context attributes to improve observability.
- Error Parsing and Structuring: Facilitates consistent error handling and parsing for frontend and backend systems.
- Use Case: Developers implementing distributed systems can instrument their APIs, automatically gather traces, logs, and errors, and improve monitoring without rewriting existing code.
Quick Start
Initialize the SDK with service name, then wrap HTTP handlers with trace() and retrieve logs with getRequestLogger() during request processing.