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

[component] Remove host.ReportFatalError #9506

Merged
merged 4 commits into from
Feb 9, 2024

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Feb 7, 2024

Description:
Remove host.ReportFatalError. It has been deprecated since 0.87.0.

Link to tracking Issue:
#6344

@atoulme atoulme requested review from a team and bogdandrutu February 7, 2024 08:15
Copy link

codecov bot commented Feb 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a567d2a) 90.37% compared to head (6e4efaa) 90.36%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9506      +/-   ##
==========================================
- Coverage   90.37%   90.36%   -0.02%     
==========================================
  Files         346      346              
  Lines       18194    18191       -3     
==========================================
- Hits        16443    16438       -5     
- Misses       1418     1419       +1     
- Partials      333      334       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Looks like there is an extension still using it

 # github.com/open-telemetry/opentelemetry-collector-contrib/extension/awsproxy [github.com/open-telemetry/opentelemetry-collector-contrib/extension/awsproxy.test]
Error: ./extension.go:29:9: host.ReportFatalError undefined (type component.Host has no field or method ReportFatalError)

@atoulme
Copy link
Contributor Author

atoulme commented Feb 7, 2024

I have opened open-telemetry/opentelemetry-collector-contrib#31104 to fix the contrib tests.

@mx-psi mx-psi added needed-for-1.0 release:required-for-ga Must be resolved before GA release and removed needed-for-1.0 labels Feb 7, 2024
@mx-psi
Copy link
Member

mx-psi commented Feb 8, 2024

# github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder [github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder.test]
?   	github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder/internal/metadata	[no test files]
Error: ./extension.go:51:9: host.ReportFatalError undefined (type component.Host has no field or method ReportFatalError)

@atoulme
Copy link
Contributor Author

atoulme commented Feb 8, 2024

# github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder [github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder.test]
?   	github.com/open-telemetry/opentelemetry-collector-contrib/extension/httpforwarder/internal/metadata	[no test files]
Error: ./extension.go:51:9: host.ReportFatalError undefined (type component.Host has no field or method ReportFatalError)

open-telemetry/opentelemetry-collector-contrib#31134 is open to fix this now.

@mx-psi
Copy link
Member

mx-psi commented Feb 8, 2024

Merged! Re-rolling the CI dice.... 🎲

@bogdandrutu
Copy link
Member

@atoulme not yet fixed contrib.

@atoulme
Copy link
Contributor Author

atoulme commented Feb 8, 2024

We're looking into it with Pablo, and there are a couple cases. One is tied up in open-telemetry/opentelemetry-collector-contrib#30693 and the other is the new otelarrow exporter, which reintroduced an occurrence. We're on it.

Remaining PRs: open-telemetry/opentelemetry-collector-contrib#31145 and open-telemetry/opentelemetry-collector-contrib#31146

@mx-psi mx-psi merged commit 223be41 into open-telemetry:main Feb 9, 2024
47 checks passed
@github-actions github-actions bot added this to the next release milestone Feb 9, 2024
maxious added a commit to Canva/trace2receiver that referenced this pull request Feb 28, 2024
open-telemetry/opentelemetry-collector#9506 removed deprecated codepath for fatal errors in reciever setup so need to replace to have compatibility with newer otel
jeffhostetler added a commit to git-ecosystem/trace2receiver that referenced this pull request Mar 6, 2024
host.ReportFatalError() was deprecated and removed.  Update
Windows named pipe startup code to use ReportStatus() instead.

open-telemetry/opentelemetry-collector#6344
open-telemetry/opentelemetry-collector#9506

Signed-off-by: Jeff Hostetler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:required-for-ga Must be resolved before GA release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants