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

[chore][pkg/stanza] Remove reader config #29668

Merged

Conversation

djaglowski
Copy link
Member

@djaglowski djaglowski commented Dec 5, 2023

reader.Config contained many fields which were only relevant to reader.Factory. Once moving these fields to reader.Factory, it became apparent that the reader.Reader struct only needs access to a few specific fields (fingerprintSize, maxLogSize, deleteAtEOF, emitFunc). This also contains some corresponding cleanup of the fields within the factory struct.

@djaglowski djaglowski force-pushed the pkg-stanza-reader-test-3 branch 2 times, most recently from 72a328f to df903ca Compare December 5, 2023 23:03
@djaglowski djaglowski force-pushed the pkg-stanza-reader-test-3 branch from df903ca to bf641b2 Compare December 5, 2023 23:08
@djaglowski djaglowski marked this pull request as ready for review December 5, 2023 23:28
@djaglowski djaglowski requested review from a team and evan-bradley December 5, 2023 23:28
@djaglowski djaglowski changed the title [chore][pkg/stanza] Unexport reader config fields [chore][pkg/stanza] Remove reader config Dec 6, 2023
@djaglowski djaglowski merged commit d7b1e26 into open-telemetry:main Dec 6, 2023
85 checks passed
@djaglowski djaglowski deleted the pkg-stanza-reader-test-3 branch December 6, 2023 15:30
@github-actions github-actions bot added this to the next release milestone Dec 6, 2023
jayasai470 pushed a commit to jayasai470/opentelemetry-collector-contrib that referenced this pull request Dec 8, 2023
`reader.Config` contained many fields which were only relevant to
`reader.Factory`. Once moving these fields to `reader.Factory`, it
became apparent that the `reader.Reader` struct only needs access to a
few specific fields (`fingerprintSize`, `maxLogSize`, `deleteAtEOF`,
`emitFunc`). This also contains some corresponding cleanup of the fields
within the factory struct.
jayasai470 pushed a commit to jayasai470/opentelemetry-collector-contrib that referenced this pull request Dec 8, 2023
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.

3 participants