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

Allow User to Specify Max Connections to DB #37748

Merged
merged 10 commits into from
Mar 7, 2025

Conversation

akstron
Copy link
Contributor

@akstron akstron commented Feb 6, 2025

Description

Added additional field MaxOpenConn which allow users to specify the maximum number of connections to DB server.

Link to tracking issue

Fixes: #36752

Testing

TestMysqlIntegrationMetrics

Signed-off-by: Alok Kumar Singh <dev.alok.singh123@gmail.com>
@github-actions github-actions bot added the receiver/sqlquery SQL query receiver label Feb 6, 2025
@akstron
Copy link
Contributor Author

akstron commented Feb 6, 2025

Hi @crobert-1 , I wanted to run integration test locally but when trying I am facing the following issue:

image

Do I have to do something extra for this?

@crobert-1
Copy link
Member

Do I have to do something extra for this?

Integration tests have a go build tag (the tag is integration). They're only run if the proper tag is included in the build and test command. You should be able to do make mod-integration-test in the receiver/sqlqueryreceiver directory.

Signed-off-by: Alok Kumar Singh <dev.alok.singh123@gmail.com>
Signed-off-by: Alok Kumar Singh <dev.alok.singh123@gmail.com>
Signed-off-by: Alok Kumar Singh <dev.alok.singh123@gmail.com>
@akstron akstron marked this pull request as ready for review February 7, 2025 17:14
@akstron akstron requested a review from a team as a code owner February 7, 2025 17:14
akstron and others added 2 commits February 7, 2025 22:45
Signed-off-by: Alok Kumar Singh <dev.alok.singh123@gmail.com>
@akstron
Copy link
Contributor Author

akstron commented Feb 11, 2025

Hi @dashpole , gentle ping for this PR review. Also, the failing test doesn't seem to be caused by the PR changes.

Signed-off-by: Alok Kumar Singh <dev.alok.singh123@gmail.com>
@akstron akstron force-pushed the sql-receiver-connection-pool branch from a8e5616 to a5a0f59 Compare February 13, 2025 11:38
@akstron akstron requested a review from atoulme February 16, 2025 11:05
@akstron
Copy link
Contributor Author

akstron commented Feb 24, 2025

Hi @atoulme , following up on this PR. Let me know if there are any more comments on this PR? Thanks

Copy link
Contributor

@atoulme atoulme left a comment

Choose a reason for hiding this comment

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

LGTM

@atoulme atoulme merged commit da63825 into open-telemetry:main Mar 7, 2025
155 of 156 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
receiver/sqlquery SQL query receiver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[receiver/sqlquery] Add connection pool feature
4 participants