vhs / nomos

Membership management system made VHS-centric
25 stars 7 forks source link

Implement OpenTelemetry tracing #302

Open lf- opened 1 year ago

lf- commented 1 year ago

This is based on #298 and that one should be merged first.

This PR implements and documents optional OpenTelemetry based tracing for the Nomos backend, which should make debugging a lot easier by providing contextually relevant logs (especially SQL logs).

This is a very basic integration and more spans could be added to trace more parts of the system as needed. We could also integrate logs into OTel in the future so that logs appear in context of the request and span they occurred in.

Currently this is marked as a draft pending #298.

Let me know if there's anything I can do to make this easier to review.