-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] v0.14 plugin APIs #562
Conversation
4f62aa2
to
edf37b2
Compare
@@ -0,0 +1,10 @@ | |||
<source> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in_status will be revmoed. so no need this configuration.
@nurse What do you think? |
|
||
@queue_length_limit = @buffer_config.queue_length_limit | ||
if @queue_length_limit && @total_bytes_limit > @chunk_bytes_limit * @queue_length_limit | ||
@total_bytes_limit = @chunk_bytes_limit * @queue_length_limit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.warn
is needed.
Ruby doesn't have related manner, but on Rails "plugin_helper" or "helpers" seem related words. |
end | ||
end | ||
|
||
def metadata(timekey: nil, tag: nil, key_value_pairs={}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo? key_value_pairs
should be keyword argument.
-def metadata(timekey: nil, tag: nil, key_value_pairs={})
+def metadata(timekey: nil, tag: nil, key_value_pairs: {})
* add `paths` to add optional load_path for each registory instance * add `require`s to load plugin classes in each tests
Now I'm rebasing on current master. |
TODO:
|
* and separate each output plugin classes into files * Fluent::** are preserved for compatibility of traditional plugins
* to reduce duplicated implementation in Input and Output
…tions instead of Actor of v11 Plugins should include using PluginSupport Mixin individually.
* and mark old TestDriver as obsolete
* DEFAULT_TYPE 'json' * storage.synchronize should be callable more than once from the same thread * to create transactional get-put operation * by using Monitor * non-saved data storage is needed * for consistent API between configurations which stores data and which doesn't store data * Storage::Memory is for configurations not to store data * Storage::Base #save_at_shutdown is for cases not to store data by plugin code * add #delete method to Storage to clean internal data before #save or so * create parent directories just before actual #save in Storage::JSON
* Merging this branch is too early because of some bugs This reverts commit 0b9a79e.
* for plugins to call `Engine.emit` or `Fluent::Engine.emit`
* add method to return user-specified id (or nil)
* and APIs for flushing are not included in this change * to fix these APIs/hooks w/ implementations of BufferedOutput APIs
Rebased. |
header['Content-length'] ||= body.bytesize | ||
header['Content-type'] ||= 'text/plain' | ||
if body | ||
header['Content-length'] ||= body.bytesize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In RFC 7230, content length header is described as Content-Length.
Should we follow the RFC or keep as-is for backward compatibility?
I found some inconsistent changes after rebase, and now, I think that it's inappropriate to push this change as a huge pull-request. Anyway, this change is good reference to re-create diffs. Please leave this as is for now. |
Changes Unknown when pulling 9c58f42 on v0.14 into * on master*. |
Plugins and PluginSupport APIs for v0.14 plugin system.
Related: #309 #287