Giter Club home page Giter Club logo

Comments (4)

vincent-pochet avatar vincent-pochet commented on June 26, 2024

Hey @prognostikos,

We recently introduced two features to improve confidence in event ingestion:

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.

prognostikos avatar prognostikos commented on June 26, 2024

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.

vincent-pochet avatar vincent-pochet commented on June 26, 2024

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.

vincent-pochet avatar vincent-pochet commented on June 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.