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] refactore carbonexporter to handle errors, use generic interfaces #29885

Merged

Conversation

bogdandrutu
Copy link
Member

No description provided.

@@ -109,6 +99,18 @@ func (cp *connPool) Write(bytes []byte) (int, error) {
}
}

// The deferred function below is what puts back connections on the pool if no error.
defer func() {
Copy link
Member Author

Choose a reason for hiding this comment

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

Simplify logic, conn cannot be nil

@bogdandrutu bogdandrutu merged commit 3dd7ec4 into open-telemetry:main Dec 15, 2023
85 checks passed
@bogdandrutu bogdandrutu deleted the carbonexporter-refactor branch December 15, 2023 05:09
@github-actions github-actions bot added this to the next release milestone Dec 15, 2023
nslaughter pushed a commit to nslaughter/opentelemetry-collector-contrib that referenced this pull request Dec 27, 2023
nslaughter pushed a commit to nslaughter/opentelemetry-collector-contrib that referenced this pull request Dec 27, 2023
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants