-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
in_opentelemetry: attempt to fix tag_from_uri #8881
Conversation
I'm at a loss as to why this was never implemented in the first place... perhaps at some point there was an issue with tag-based routing at the point this code was written ¯_(ツ)_/¯. Nice work fixing it up! This was what I was hoping to PR at some point myself. |
Hi, fluent organization requires to add DCO. So, could you add Signed-off in your commit? |
591b05a
to
3d84849
Compare
Sure. Should be added now. Had to force push. |
Plus, we need to add prefix for changed module name into commit message(s). see also: https://github.com/fluent/fluent-bit/blob/master/CONTRIBUTING.md#commit-changes |
f9787f6
to
7d658e7
Compare
Should be fixed now. And I should probably have read a contributors manual first ... 😏 |
@@ -1736,6 +1741,8 @@ int opentelemetry_prot_handle(struct flb_opentelemetry *ctx, struct http_conn *c | |||
} | |||
} | |||
|
|||
size_t tag_len = flb_sds_len(tag); |
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.
Declaring middle of the function is not good coding style on Fluent Bit.
Could you declare a variable in the beginning of this function? And then, calculate length of tag here should be fine.
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.
Declaring middle of the function is not good coding style on Fluent Bit. Could you declare a variable in the beginning of this function? And then, calculate length of tag here should be fine.
Sure can. Should be pushed now.
Signed-off-by: Martin Kjær Jørgensen <[email protected]>
7d658e7
to
4312c7e
Compare
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.
Looks fine to me.
Pass on tag with length so that tag_from_uri get applied on OpenTelemetry input plugin
Fixes #8734
Enter
[N/A]
in the box, if an item is not applicable to your change.Testing
Before we can approve your change; please submit the following in a comment:
If this is a change to packaging of containers or native binaries then please confirm it works for all targets.
ok-package-test
label to test for all targets (requires maintainer to do).Documentation
Backporting
Fluent Bit is licensed under Apache 2.0, by submitting this pull request I understand that this code will be released under the terms of that license.