medplum / medplum

Medplum is a healthcare platform that helps you quickly develop high-quality compliant applications.
https://medplum.com
Apache License 2.0
1.37k stars 387 forks source link

Add basic `WebSocket` observability #4685

Open ThatOneBro opened 3 months ago

ThatOneBro commented 3 months ago

We should add some simple metrics for things like number of concurrent WebSocket connections, etc.

Probably should add simple OTel instrumentation for the ws package, maybe we should look here for inspiration: https://github.com/gadget-inc/opentelemetry-instrumentations

ThatOneBro commented 3 months ago

Partially fulfilled by #4782

Probably still want things like average bandwidth per WS (in bytes), maybe average messages sent per WS / sec, etc.