-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Move sqlquery receiver logic out to a library for reuse #14321
Conversation
84ed7a9
to
730edbb
Compare
@@ -0,0 +1,49 @@ | |||
# SQL Query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a documentation for sqlquery receiver. I'm not sure if is relevant enough to this package to keep it in sync with the receiver.
Please rebase |
07e463d
to
6c23d8c
Compare
c954bc5
to
2498f41
Compare
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@@ -12,7 +12,7 @@ | |||
// See the License for the specific language governing permissions and | |||
// limitations under the License. | |||
|
|||
package sqlqueryreceiver // import "github.com/open-telemetry/opentelemetry-collector-contrib/receiver/sqlqueryreceiver" | |||
package sqlquery // import "github.com/open-telemetry/opentelemetry-collector-contrib/pkg/sqlquery" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How confident are you that we need to move the receiver config to be part of this library? I feel like the config is a receiver-only thing, and the sqlquery API shouldn't know about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I need to redo this work, based off what I learned from oracledb. This PR is not good enough.
As noted, this PR will get a redo once the #16044 PR is merged. Trying to not rush this. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
I'm just not sure this is a good idea anymore, if only because the sqlqueryreceiver has more dependencies to other DB drivers. Closing. |
Description:
Extract sqlquery receiver logic out to
pkg/sqlquery
so it may be reused across components.Link to tracking Issue:
#13547
Testing:
Same unit testing, just moving files.
Documentation:
Simple README.md.