contrib/olivere/elastic: support v7
olivere/elastic has a newer client (v7) than is currently supported. This newer client is required to interface with ElasticSearch v7. It has changed its import path to github.com/olivere/elastic/v7.
Have you tried using the existing integration with the new v7 version of the library?
The SetHttpClient method still exists: https://github.com/olivere/elastic/blob/v7.0.12/client.go#L476
We don't have tests for v7 currently, but I don't see why we can't add some.
Looking at their README it looks to me like they are using the new Go modules type path for this. However I can't see it defined as a an import path checking comment anywhere in the code base.
We should be able to fully support this once we switch to modules (ref #471). We're planning to do this soon.
#672 has been merged, so we should be able to do this work now, if there is still interest. Please see also https://github.com/DataDog/dd-trace-go/issues/471#issuecomment-639361104
Hi, any update on v7 support?
@Mangosteen-Yang None yet, but we're happy to have help if anyone is interested in doing this.
@knusbaum Within the go.mod dependencies I noticed that elastic version 3 and 5 are referenced and also within the unit tests within contrib/olivere/elastic/example_test.go though config.yml also references elasticsearch:2 and elasticsearch:5. With regards to elasticsearch specifically what are we testing through config.yml?