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

Rename Start() to Run() since it's a blocking call #607

Closed
wants to merge 1 commit into from
Closed

Rename Start() to Run() since it's a blocking call #607

wants to merge 1 commit into from

Conversation

nilebox
Copy link
Member

@nilebox nilebox commented Mar 10, 2020

Rename Start() to Run() to follow the naming pattern used in Go, e.g. see blocking Cmd.Run vs non-blocking Cmd.Start.

@tigrannajaryan
Copy link
Member

This a publicly exported function that can be imported elsewhere. Not worth breaking others' code.

@nilebox
Copy link
Member Author

nilebox commented Mar 10, 2020

Doesn't seem like anyone is using this package yet: https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector/cmd/otelcol?tab=importedby

Even if we do break, it's trivial to fix.

It's even more important to fix the confusion for public API IMO.
That's how I found this issue myself when I saw in main that we invoke Start but don't shutdown.

@nilebox
Copy link
Member Author

nilebox commented Mar 11, 2020

Sorry, I used the wrong package to check against, it is being used in a few projects indeed: https://pkg.go.dev/github.com/open-telemetry/opentelemetry-collector/service?tab=importedby

Sent a new PR that keeps backward compatibility: #615

MovieStoreGuy pushed a commit to atlassian-forks/opentelemetry-collector that referenced this pull request Nov 11, 2021
hughesjj pushed a commit to hughesjj/opentelemetry-collector that referenced this pull request Apr 27, 2023
Bumps alpine from 3.14.0 to 3.14.1.

---
updated-dependencies:
- dependency-name: alpine
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Troels51 pushed a commit to Troels51/opentelemetry-collector that referenced this pull request Jul 5, 2024
swiatekm pushed a commit to swiatekm/opentelemetry-collector that referenced this pull request Oct 9, 2024
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.

2 participants