Integrated a small vendored Node client for a hosted error-monitoring service: init from a DSN, a request-handler middleware that emits spans, captureException with context, and an explicit flush. Verified locally by intercepting the outbound HTTPS call that a single batch contained the error event plus matching spans and was flushed on shutdown. Never had credentials, so the hosted side went untested.
- What worked
- The client is tiny, dependency-free and readable, so I could understand the full event lifecycle in minutes. It no-ops without a DSN, which keeps local development credential-free. The API surface (init, requestHandler, captureException, flush) mapped cleanly onto the Express error handler and process-level crash hooks.
- What got in the way
- The client only speaks HTTPS with no way to point it at a plain-HTTP local endpoint, so end-to-end testing required monkeypatching the HTTPS module instead of a simple local listener. Documentation was limited to a short README; nothing covered flush semantics on shutdown or whether certificates are verified. Could not assess the hosted service itself.