Comments (4)
Hey @prognostikos,
We recently introduced two features to improve confidence in event ingestion:
- The event debugger
event.error
webhook for failed events: getlago/lago-api#252
But we are aware that it does not guaranty that all events will be processed in case of Redis outage or misconfiguration.
Having a webhook for event.created
would certainly fix the problem but at the cost of many webhooks sent back to the source.
So it would also probably require a way to be able to chose which webhooks an application wants to receive before enabling it.
We also discussed about adding an API endpoint to download the logs of all received events. It would allow an easy reconciliation between an app and Lago. Would it be an acceptable option for you?
For now, we do not have action on our short term roadmap to tackle this but we are marking it as a feature request.
Also we would be happy to discuss about how it could be implemented.
Cheers
from lago.
Thanks @vincent-pochet the debugger looks useful.
I understand that not everyone would want to get the event.created webhook and right now it's not possible to configure which events are sent to a webhook endpoint nor to have multiple endpoints.
For us an API endpoint where we can GET on say transaction_id
would work. We would probably just setup a job in our system to confirm each ingested event in 60 seconds or something like that.
Getting logs of all received events would also be useful, but may require a bit more work on the caller end.
We will need some way to confirm event creation, so we are happy to do the work on the API and ruby client for this. Adding an endpoint to GET an event by transaction_id seems pretty straightforward. If you'd prefer an endpoint to download logs maybe you could start by describing what parameters it should take and what the response should look like and we can take it from there?
from lago.
Thanks @prognostikos for your contribution proposal.
I agree that a GET /api/v1/events/:transaction_id
looks like a simple solution for your need.
Let me discuss it with the product and tech teams and I will get back to you today.
from lago.
After discussing internally, we think that adding a new API route is the easiest way to move forward with it for now.
We will probably improve the webhook side in the future, but not in the short term.
If you want to take care of this dev, we would be pleased to review and merge it in the main branch for future release 🚀
from lago.
Related Issues (20)
- [BUG]: Error while trying to deserialize arguments: Couldn't find PaymentProviderCustomers::StripeCustomer with 'id' HOT 3
- [BUG]: Get error in customer usage tab HOT 8
- [BUG]: Freshly pulled and installed, but can't signup HOT 4
- [BUG]: Mismatch between create add-on form and generated code.
- [BUG]: Freshly cloned repo, password authentication failed for user "lago" thus cant create db properly HOT 4
- [BUG]: Error 500 when trying to download invoice HOT 3
- [BUG]: ENV Vars not read anymore HOT 7
- [BUG]: using docker-compose edit invoice settings of organization not possible HOT 4
- [BUG]: Fresh Lago installation, cannot sign up ("undefined method `default_currency' for #<Organization") HOT 3
- [BUG]: Documentation about invoice creation on multi-subscription customers HOT 1
- [BUG]: docker prod and dev setup HOT 3
- [FEATURE]: latest tag on Docker HOT 2
- [BUG]: Calculation error in Invoice? (frontend only) HOT 12
- [BUG]: https://community.getlago.com/ is down HOT 3
- [BUG]: Error when running docker compose HOT 5
- [BUG]: Wrong unit used in calculation for `Weighted Sum` Recurring metric. i.e `0.6466477675381944` instead of `1`. HOT 1
- [BUG]: call "Retrieve current usage" API,no return value HOT 2
- [BUG]: billable-metric separator code ':' HOT 2
- [BUG]: Custom headers introduce CORS issues HOT 2
- [BUG]: CORS /graphql letsencrypt HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lago.