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

[BUG] useSniffing parameter is actually dontUseSniffing #342

Open
kammerjaeger opened this issue Nov 2, 2023 · 4 comments · May be fixed by #445
Open

[BUG] useSniffing parameter is actually dontUseSniffing #342

kammerjaeger opened this issue Nov 2, 2023 · 4 comments · May be fixed by #445
Labels
bug Something isn't working

Comments

@kammerjaeger
Copy link

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog):
Elastic.Serilog.Sinks

ECS .NET assembly version (e.g. 1.4.2):
8.6.1

Description of the problem, including expected versus actual behavior:
The parameter is the opposite of what its name is, that is quite confusing.
See:

var transportConfig = useSniffing ? TransportHelper.Static(nodes) : TransportHelper.Sniffing(nodes);

Possible solution: 0f0f894

@kammerjaeger kammerjaeger added the bug Something isn't working label Nov 2, 2023
@Mpdreamz Mpdreamz linked a pull request Sep 18, 2024 that will close this issue
@Mpdreamz
Copy link
Member

This took embarrassingly long to address, thank you for raising this @kammerjaeger.

This should be fixed once #445 lands.

@kammerjaeger
Copy link
Author

kammerjaeger commented Sep 18, 2024

Maybe add a comment in the release note that this may break existing configurations when deployed and in use with the previous logic.

@Mpdreamz
Copy link
Member

I changed the default to false so there is no breaking change, thanks for calling that out.

@kammerjaeger
Copy link
Author

Good catch that is a problem, too. But I was more talking about the people like me who actively set it have to inverse the setting with the new release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants