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). |
f9787f6 to
7d658e7
Compare
Should be fixed now. And I should probably have read a contributors manual first ... 😏 |
| } | ||
| } | ||
|
|
||
| size_t tag_len = flb_sds_len(tag); |
There was a problem hiding this comment.
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.
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 <me@lagy.org>
7d658e7 to
4312c7e
Compare
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-testlabel 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.