I have a singleton analytics client that I use for logging. I initialize it within each HTTP action, then shut it down when before the http action is done. I notice it's not available within another action. Is this expected? Each action has its own context, and my action is actually running in a Node environment instead of the default Convex environment, so maybe that plays a part. right?
Does this mean I should avoid using Singleton?