Skip to content

x-pack/filebeat/input/cel: misc refactoring #48464

@chrisberkhout

Description

@chrisberkhout

The CEL input has grown in complexity over time and is due to for some refactoring attention.

This is particularly evident during the present work to add OTel tracing (#48440), which uses separate spans for separate parts of processing and needs separate context and loggers for each, which is more cumbersome in one big function than separate functions with narrower responsibilities.

Here's cyclomatic complexity over time of the (input).run function (479 lines):

Image

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions