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

Enable filelog receiver #2555

Merged
merged 3 commits into from
Mar 4, 2021
Merged

Conversation

pmm-sumo
Copy link
Contributor

@pmm-sumo pmm-sumo commented Mar 4, 2021

Description:

Enables filelogreceiver by default

Link to tracking Issue: One of the prerequisites for #2536

Testing: on top of existing unit tests, manually tested file logging in several scenarios (local file logging, K8s DaemonSet file logging)

Documentation: Existing documentation describes the usage already

@pmm-sumo pmm-sumo requested a review from a team March 4, 2021 14:24
@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #2555 (a029677) into main (2c48687) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2555      +/-   ##
==========================================
+ Coverage   91.17%   91.19%   +0.01%     
==========================================
  Files         419      419              
  Lines       20983    20984       +1     
==========================================
+ Hits        19132    19137       +5     
+ Misses       1383     1380       -3     
+ Partials      468      467       -1     
Flag Coverage Δ
integration 69.18% <0.00%> (-0.11%) ⬇️
unit 90.07% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmd/otelcontribcol/components.go 87.34% <100.00%> (+0.16%) ⬆️
processor/groupbytraceprocessor/event.go 96.77% <0.00%> (+0.80%) ⬆️
receiver/carbonreceiver/transport/tcp_server.go 67.00% <0.00%> (+1.00%) ⬆️
receiver/k8sclusterreceiver/watcher.go 97.64% <0.00%> (+2.35%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c48687...a029677. Read the comment docs.

Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that we are moving filelog out of the "unstable" build, and documenting its maturity like other components. If this is correct, then I believe there are a few related items that should be considered with this change.

We also need to remove filelog from unstable_components_enabled.go.

log_tests.go should be moved to testbed/tests.

Also, you mentioned yesterday that we should enable more operators. Should we do that in this PR or another?

@pmm-sumo
Copy link
Contributor Author

pmm-sumo commented Mar 4, 2021

Ahh, good points @djaglowski ! I will take care of that, missed that we also have unstable_components_enabled.go.

As for the other operators, the suggestion was to handle it in a separate PR

@pmm-sumo
Copy link
Contributor Author

pmm-sumo commented Mar 4, 2021

BTW, wasn't sure if after becoming empty, the whole unstable exe tests should be removed or not. My feeling was it would be better to just leave it empty

@pmm-sumo pmm-sumo force-pushed the filelog-enablement branch from 6a131f0 to a029677 Compare March 4, 2021 16:49
Copy link
Member

@djaglowski djaglowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bogdandrutu bogdandrutu merged commit fadb86a into open-telemetry:main Mar 4, 2021
pmatyjasek-sumo referenced this pull request in pmatyjasek-sumo/opentelemetry-collector-contrib Apr 28, 2021
* Enable filelog receiver

* Remove filelog from unstable components

* Leave empty placeholder for unstable exe tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants