elastic/cloud-sdk-go

Allow customizable User-Agent to be used

Closed this issue · 0 comments

Overview

Currently, the default Go User-Agent will be used for all API calls.
It would be best that clients could set that header using the api.Config settings.

Possible Implementation

Adding an optional User-Agent field which is used to construct our custom http.RoundTripper.

Context

Better metrics.