Closed dtkujawski closed 5 months ago
Note: I was able to resolve by adding the header after the pool was added to the transportConfig
var header = new Elastic.Transport.BasicAuthentication(config.Username, config.Password);
var pool = new SniffingNodePool(config.Urls.Select(x => new Uri(x)).ToArray());
var transportConfig = new TransportConfiguration(pool);
transportConfig.Authentication(header);
When initializing Elastic.Serilog.Sinks when using the CloudNodePool, I can send a header with either U/P or ApiKey. For example:
However, if I want to use SniffingNodePool or StaticNodePool I don't see the ability of adding the header to the constructor:
Is there a way to add U/P or ApiKey header when using the NodePool?