renovate
renovate copied to clipboard
feat(telemetry): add OpenTelemetry tracing MVC
Changes
Implements a minimal implementation of OpenTelemetry tracing.
Some manual spans are created and following instrumentations are added and activated:
- instrumentation-http Auto trace http(s) requests
- instrumentation-buyan Add traceId and spanId to structured logs
Later additional manual and automatic instrumentations can be added e.g.:
- aws-sdk
- redis
- Wrap manager functions
- ...
Context
Documentation (please check one with an [x])
- [x] I have updated the documentation, or
- [ ] No documentation update is required
How I've tested my work (please tick one)
I have verified these changes via:
- [ ] Code inspection only, or
- [ ] Newly added/modified unit tests, or
- [ ] No unit tests but ran on a real repository, or
- [x] Both unit tests + ran on a real repository
Is this a "noop" when it's not enabled using env?
Is this a "noop" when it's not enabled using env?
Yes, if tracing is turned off, spans will be generated as non-recording and discarded immediately.