elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
705 stars 72 forks source link

Add x-elastic-client-meta header #168

Closed swallez closed 3 years ago

swallez commented 3 years ago

Adds a X-Elastic-Client-Meta header to http requests. This header contains information about the runtime environment that is meant to allow analyzing usage context by collecting this information on the receiving side of requests, like a proxy server in front of ES.

Using a custom header allows client applications to change the User-Agent header for their own purpose without losing this information.