Skip to content

Commit

Permalink
out_opentelemetry: enhance logs handling with groups and metadata sup…
Browse files Browse the repository at this point in the history
…port

The following patch introduce a big change on how the plugin now process the logs
with OTLP format, the high-level features are:

1. Full metadata support:
  - with the new changes in in_opentelemetry, there is no metadata loss

2. Proper encoding of non-OTLP records as OTLP
  - The plugin is flexible enough to encode any type of log record.

At a low level, we re-architect how resource logs, resource, span_logs, scope and
logs are handled. All of this has been implemented on top of the new Fluent Bit
groups support for logs.

Use cases tested:

 - OTel Collector (gRPC) --> Fluent Bit --> OTel Collector (gRPC)
 - dummy, tail, forward  --> Fluent Bit --> OTel Collector (gRPC)

Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jun 7, 2024
1 parent 4d5f0af commit 285f3dd
Show file tree
Hide file tree
Showing 7 changed files with 1,749 additions and 1,083 deletions.
14 changes: 8 additions & 6 deletions plugins/out_opentelemetry/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
set(src
opentelemetry.c
opentelemetry_conf.c
)

FLB_PLUGIN(out_opentelemetry "${src}" "")
set(src
opentelemetry.c
opentelemetry_logs.c
opentelemetry_utils.c
opentelemetry_conf.c
)

FLB_PLUGIN(out_opentelemetry "${src}" "")
Loading

0 comments on commit 285f3dd

Please sign in to comment.