Skip to content
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

[pkg/stanza/fileconsumer] Establish options pattern for Build #31596

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented Mar 5, 2024

This PR takes a step towards modularizing the fileconsumer package. It's become increasingly clear that several different aspects of the package should support alternative implementations. For example, how to find and filter files, how to track them (fingerprints vs path vs none), how to interpret and tokenize, or how to trigger the overall behavior.

This PR takes a small step towards enabling that pattern by establishing an options pattern for building the fileconsumer.Manager. Future work can establish interfaces for alternative behaviors and allow them to be specified via options.

Supports #31534

@djaglowski djaglowski merged commit c17762d into open-telemetry:main Mar 6, 2024
144 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 6, 2024
@djaglowski djaglowski deleted the pkg-stanza-fileconsumer-build-opts branch March 6, 2024 06:29
DougManton pushed a commit to DougManton/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
XinRanZhAWS pushed a commit to XinRanZhAWS/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants