-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Plugin helper tag time hostname #1063
Conversation
f0cd866
to
944cfe6
Compare
…ug not to dup correctly
944cfe6
to
46ebbd3
Compare
@repeatedly This change is required for v0.14.1 because this change introduces a plugin helper instead of deprecated SetTimeKeyMixin/SetTagKeyMixin, and changes how to write plugins. |
Okay, let me check. Please wait. |
module Fluent | ||
module PluginHelper | ||
module Inject | ||
def inject_record(tag, time, record) |
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.
inject_record
is misleading name.
inject
is used like inject xxx into yyy
so this name seems to mean inject record into yyy
.
So we should use other name, inject_value_to_record
, mutate_record
or something.
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.
Plugin Helper methods should be named as ${helper_name}_anything
.
So I'll change these names as inject_values_to_record
and inject_values_to_event_stream
.
I pushed some commits to fix (mainly) tests. |
…to x86/amd64 floating points. Using fixed value (calculated in amd64 environment) is unsafe, because some x86 environment (like Windows 32bit) uses different way to calculate floating point values. It may cause to make tests to fail.
Now CI is green, finally. |
This plugin helper is to inject tag, time and hostname into records.
This plugin helper will replace SetTagKeyMixin/SetTimeKeyMixin, by explicit method calls instead of overridden
filter_record
.hostname_key
is also added to solve feature requests to inject it into a field.