Code Monkey home page Code Monkey logo

Comments (4)

komamitsu avatar komamitsu commented on May 27, 2024 1

@obokaiwele FYI: Fluency 1.4.0 supports custom error handler and you can detect a send error with that.

from fluency.

komamitsu avatar komamitsu commented on May 27, 2024

AsyncFlusher runs in background thread. So there is no straight way to return an error of flushing data to the user application. Instead introducing an error handler that has a callback function would work. With it, the user application can pass a custom error handler to Fluency and Fluency call the callback function of the error handler to notify a send error to the user application. I'll take care of the feature later.

RE: the backup configuration of Fluency, it is just to save buffers in memory to file when Fluency is closing not for failures of flushing data.

BTW, Fluentd being down should be detected by a monitoring system not by a Fluentd logger for robustness, I think.

from fluency.

komamitsu avatar komamitsu commented on May 27, 2024

I'm going to support custom error handlers on #66

from fluency.

obokaiwele avatar obokaiwele commented on May 27, 2024

@komamitsu Is there a way to get the payload that could not be emitted while handling the error?
My use case is to try to emit via Fluency, if that fails, then log the same data to system journald.

from fluency.

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.