-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add Elastic Api Version header #174
Conversation
blocked for now by elastic/elastic-transport-ruby#66 |
…asticsearch into add_eav_header # Conflicts: # CHANGELOG.md # logstash-filter-elasticsearch.gemspec
6fbd357
to
ed05fe2
Compare
@@ -478,6 +479,15 @@ def test_connection! | |||
end | |||
end | |||
|
|||
def test_serverless_connection! | |||
begin | |||
get_client.client.info(:headers => LogStash::Filters::ElasticsearchClient::DEFAULT_EAV_HEADER ) if get_client.serverless? |
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.
use info
instead of ping
because the error message from ping is insufficient
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.
minor style nitpick. tested manually, LGTM
Co-authored-by: João Duarte <[email protected]>
@jsvd tried to recreate the client. If the last commit doesn't make sense, I would like to revert 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.
LGTM
link the issue for cleaning up resources #175 |
This commit adds "Elastic-Api-Version" : "2023-10-31" to request header for serverless