Webhook for delivering logs
We would like better visibility into the requests made to our Spreedly account. Since some requests are made to spreedly directly from the end user's browser, we have no way to capture ongoing activity or monitor the error rate. Other services we use (e.g. Stripe) offer a webhook for delivering logs directly to a log collection endpoint, which makes it easy for us to monitor activity and perform detailed analytics.
https://stripe.com/docs/webhooks
Webhooks solve these problems by letting you register a URL that we will notify anytime an event happens in your account. When the event occurs—for example, when a successful charge is made on a customer's subscription, Stripe creates an Event object. This object contains all the relevant information about what just happened, including the type of event and the data associated with that event. Stripe then sends the Event object to any URLs in your account's webhooks settings via an HTTP POST request.
It would be very helpful if Spreedly offered equivalent functionality.
-
Official comment
Hi Brion,
Thanks for reaching out and providing this suggestion, I can see how that would be helpful to you. While webhooks are not currently on our roadmap, we will continue to monitor similar requests over time to see if it is something that makes sense for us to add in the future. Today we recommend customers log all of their transactions in their own database so that you can be in full control of the data pulled and how it is used. We suggest logging these transactions in real-time so as not to be bogged down at any one particular time. If you ever need to pull a list from a particular environment, you can do so using our list call and use the since_token to narrow the timeframe. As a caution, pulling too large a timeframe can result in timeouts so I would keep this to small increments like a few hours or a day at a time (depending on your volume) if you have any catching up to do. I hope this helps! Let me know if you have any other questions around transaction logging.
Comment actions
Please sign in to leave a comment.
Comments
1 comment