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(cli): Adding otlp server error handling #3252

Merged
merged 4 commits into from Oct 12, 2023

Conversation

xoscar
Copy link
Collaborator

@xoscar xoscar commented Oct 12, 2023

This PR updates the error message when the ports for the OTLP server are not available to be more descriptive instead of just the default error

Changes

  • Updates error message
  • Adds custom error

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

Loom video

https://www.loom.com/share/4660f8bbbb0441e492cba69b73aa7e05

@xoscar xoscar marked this pull request as ready for review October 12, 2023 18:30
session, err = initialization.Start(ctx, cfg)
if err != nil && errors.Is(err, initialization.ErrOtlpServerStart) {
s.ui.Error("Tracetest Agent binds to the OpenTelemetry ports 4317 and 4318 which are used to receive trace information from your system. The agent tried to bind to these ports, but failed.")
shouldRetry := s.ui.Enter("Please stop the process currently listening on these ports and enter to try again.")
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we can improve the message: ...and press enter to try again

@xoscar xoscar merged commit 99f48ae into main Oct 12, 2023
38 checks passed
@xoscar xoscar deleted the chore/agent-otlp-error-handling branch October 12, 2023 20:33
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.

None yet

2 participants