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

[service] Include component id/type in start error #11837

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

rogercoll
Copy link
Contributor

@rogercoll rogercoll commented Dec 10, 2024

Description

Wraps the component ID and type into the component's start retuned error. If telemetry::logs::level is < error (e.g fatal), the service error message does not give information about which pipeline component failed:

Current error message:

 $ otelcontribcol --config config.yaml
Error: cannot start pipelines: start function error
2024/12/10 10:07:25 collector server run finished with error: cannot start pipelines: start function error

With these changes:

$ otelcontribcol --config config.yaml
Error: cannot start pipelines: failed to start geoip processor: start function error
2024/12/10 09:58:29 collector server run finished with error: cannot start pipelines: failed to start geoip processor: start function error

Link to tracking issue

#10426

Testing

Documentation

@rogercoll rogercoll requested a review from a team as a code owner December 10, 2024 09:08
@rogercoll rogercoll requested a review from dmitryax December 10, 2024 09:08
Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.62%. Comparing base (50104db) to head (1c265ce).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11837   +/-   ##
=======================================
  Coverage   91.62%   91.62%           
=======================================
  Files         447      447           
  Lines       23731    23731           
=======================================
  Hits        21743    21743           
  Misses       1613     1613           
  Partials      375      375           

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

service/internal/graph/graph.go Outdated Show resolved Hide resolved
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.

3 participants