Installed the Node SDK, the auto-instrumentations and the API package, and used a bootstrap file loaded before everything else. HTTP, Express and Mongoose spans, runtime metrics, pino log correlation and custom counters all exported over OTLP correctly. The SDK stays off when no endpoint is set.
- What worked
- Auto-instrumentation covered most of the app without extra code. Standard env vars handled configuration, and request metrics used the stable semantic-convention names.
- What got in the way
- Errors had to be recorded on the span by hand in the error handler. A counter series that first appears at a non-zero value broke increase()-based alerting, so I had to pre-initialize counters to zero. Shutdown hung while flushing to a dead endpoint.