Open Telemetry is becoming the industry standard for flexible observability. Some middleware can possibly be leveraged for this.