Comments (8)
the main reason of getting a reference to the input/output instance, is to be able to set properties or any other kind of future modification.
Note that when the end-user call flb_stop(ctx), the engine receives the message and it start releasing resources, internally it does an exit for all input/output instances associated to the main context.
The user never need to do an explicit release of the instances, all this happens in the background.
from fluent-bit.
Thank you for your comment.
I noticed that flb_ctx_t
already contains plugin instances.
the main reason of getting a reference to the input/output instance, is to be able to set properties or any other kind of future modification.
So, why should we expose a plugin instance ?
User passes these instances to flb_*put_set
as identifier.
I think structure of instance is not necessarily need, only identifier value is needed.
The user never need to do an explicit release of the instances, all this happens in the background.
I understand. But I think it is odd from user side.
Because flb_stop(ctx)
doesn't contain plugin instances at first sight.
However this function influences plugin instances.
This means fluent-bit treats these instances as part of context implicitly.
So , I proposed that plugin instances should be hid from user and modify API.
flb_input_set( input_ins, ... )
-> flb_input_set( input_id, ctx, ... )
from fluent-bit.
I am thinking about this, no strong opinion yet, once I finish buffering/scheduling stuff I will focus on API and share more updates.
from fluent-bit.
I see, I'm waiting.
Thanks!
from fluent-bit.
I am reviewing this. I think it make sense to have an integer as identifier, thanks for pointing that.
from fluent-bit.
@nokute78 I have pushed the changes into api_ffd branch.
note: the remaining part are tests.
from fluent-bit.
I just migrated all tests/examples, changes rebased on master.
If is there anything pending or something not working as suggested please add your comments to this tickets.
from fluent-bit.
Amazing!! That's what I imagined!
Thanks.
from fluent-bit.
Related Issues (20)
- Managed identity for azure kusto output plugin HOT 3
- Will fluentbit's http server support HTTPs? HOT 2
- es: Logstash_Prefix_Key with static prefix HOT 2
- Sticky logs in the same output message
- Add support for Ubuntu 24.04 HOT 1
- Impossible to ingest timestamp from nested json
- fluent-bit v3 occassionally crashes with SIGSEGV HOT 1
- Logs rotation HOT 6
- fluent-bit 3.0.3 upgrade has broken splunk output plugin when event_sourcetype_key is specified HOT 4
- $dd_tags not interpreted by datadog properly HOT 1
- Warning Log for Threshold size in winevtlog input plugin
- Syslog output doesn't send data to Qradar HOT 3
- stackdriver output plugin broken on arm32v7 docker images since v3.0.0 HOT 2
- Crash Output + Forward + TLS + ARM HOT 2
- Multiline is processing lines out of order
- Need Grok parsing support in fluentbit HOT 3
- Amazon S3: Mismatch when reading HTTP header from GCS
- Configuration reload or SIGINT does not interrupt flushing output plugin with retry_limit=False, potential loops forever
- Conflict in UIDs of Grafana dashboard when running multiple Fluent Bit Helm Release.
- Fluent Bit occasionally corrupts/truncates log entries when processing multiple log files. HOT 1
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 fluent-bit.