-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[receiver/sqlserver] Allow server config option to include port #33560
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
IMO, this seems like a problem with the observer extension's behavior. The proposed to this receiver introduces ambiguity into the configuration. Are you sure there isn't a reasonable change we could make to the observer package instead? |
Fair point, and I agree. It does make the configuration a bit more confusing. My original concern here was the extent of changes required in the observer extension, as I wasn't very familiar with its inner-workings. After more of a look though, it appears to be a pretty simple change to be able to expose the values we need in the extension, so I think I'll move my efforts there instead. 👍 |
Component(s)
receiver/sqlserver
Describe the issue you're reporting
Current functionality
The functionality of directly connecting to a SQL Server instance was recently added, with the configuration options of
server
andport
as two distinct options. I mentioned this as a possible pain point, and now I've run into it myself.Just for context, the use case where I'd like to specify port in
server
is for using with the observer extensions and receiver creator receiver. The observer extensions only pass in theendpoint
to the receiver creator as a variable that can be dynamically set in the receiver configuration. From documentation, this endpoint will sometimes also include the port. If the port is included, there's no way to currently use the SQL server receiver with the receiver creator.Proposal
Allow the
server
option to optionally have the port included. If the port is included in theserver
option, it will override the givenport
value. The port will still need to be specified in one option or the other, or config validation will fail.This is simply an enhancement, no existing configurations should be impacted.
Examples
The text was updated successfully, but these errors were encountered: