-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
processor_content_modifier: add support for OTel Logs Resource and Sc…
…opes The following patch extends the processor to allow to modify the resources and scopes of Logs generated by an OpenTelemetry source. The following new contexts are supported: - otel_resource_attributes: alter resource attributes - otel_scope_name: manipulate the scope name - otel_scope_version: manipulate the scope version - otel_scope_attributes: alter the scope attributes example: ----- fluent-bit.yaml ----- pipeline: inputs: - name: opentelemetry port: ${FLUENT_BIT_TEST_LISTENER_PORT} processors: logs: - name: content_modifier context: otel_resource_attributes action: upsert key: "new_attr" value: "my_val" - name: content_modifier context: otel_resource_attributes action: delete key: "service.name" - name: content_modifier context: otel_scope_attributes action: upsert key: "my_new_scope_attr" value: "123" - name: content_modifier context: otel_scope_name action: upsert value: "new scope name" - name: content_modifier context: otel_scope_version action: upsert value: "3.1.0" outputs: - name: stdout match: '*' - name: opentelemetry match: '*' host: 127.0.0.1 port: ${TEST_SUITE_HTTP_PORT} ----- end of file ----- Signed-off-by: Eduardo Silva <[email protected]>
- Loading branch information
Showing
4 changed files
with
273 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters