Allow users to override the headers sent from ob-elasticsearch by customizing "es-default-headers" just as they can for es-mode.
Background: I am not able to connect directly to my work Elasticsearch instance but I can access it through Kibana. I have managed to advise various es-mode functions to proxy the Elasticsearch requests through Kibana, but Kibana gives me an error if the request doesn't include a kbn-version header. I've already set es-default-headers so that es-mode works, but ob-elasticsearch previously had its own hardcoded list of default headers. This fixes ob-elasticsearch to use es-default-headers instead.
Allow users to override the headers sent from ob-elasticsearch by customizing "es-default-headers" just as they can for es-mode.
Background: I am not able to connect directly to my work Elasticsearch instance but I can access it through Kibana. I have managed to advise various es-mode functions to proxy the Elasticsearch requests through Kibana, but Kibana gives me an error if the request doesn't include a
kbn-version
header. I've already setes-default-headers
so that es-mode works, but ob-elasticsearch previously had its own hardcoded list of default headers. This fixes ob-elasticsearch to usees-default-headers
instead.