-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update recipes and add tracing by OpenTelemetry
- Loading branch information
Showing
17 changed files
with
458 additions
and
218 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,35 @@ | ||
module github.com/olivere/elastic/recipes | ||
module github.com/olivere/elastic/v7/recipes | ||
|
||
go 1.14 | ||
go 1.17 | ||
|
||
require ( | ||
github.com/aws/aws-sdk-go v1.33.5 | ||
github.com/go-kit/kit v0.10.0 // indirect | ||
github.com/google/uuid v1.1.1 | ||
github.com/olivere/elastic/v7 v7.0.18 | ||
github.com/aws/aws-sdk-go v1.43.21 | ||
github.com/google/uuid v1.3.0 | ||
github.com/olivere/elastic/v7 v7.0.0-00010101000000-000000000000 | ||
github.com/olivere/env v1.1.0 | ||
github.com/smartystreets/go-aws-auth v0.0.0-20180515143844-0c1422d1fdb9 | ||
github.com/uber/jaeger-client-go v2.25.0+incompatible | ||
github.com/uber/jaeger-lib v2.2.0+incompatible | ||
go.opentelemetry.io/otel v1.5.0 | ||
go.opentelemetry.io/otel/exporters/jaeger v1.5.0 | ||
go.opentelemetry.io/otel/sdk v1.5.0 | ||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c | ||
) | ||
|
||
require ( | ||
github.com/VividCortex/gohistogram v1.0.0 // indirect | ||
github.com/go-kit/kit v0.10.0 // indirect | ||
github.com/go-logr/logr v1.2.2 // indirect | ||
github.com/go-logr/stdr v1.2.2 // indirect | ||
github.com/jmespath/go-jmespath v0.4.0 // indirect | ||
github.com/josharian/intern v1.0.0 // indirect | ||
github.com/mailru/easyjson v0.7.7 // indirect | ||
github.com/opentracing/opentracing-go v1.2.0 // indirect | ||
github.com/pkg/errors v0.9.1 // indirect | ||
github.com/smartystreets/gunit v1.4.3 // indirect | ||
go.opentelemetry.io/otel/trace v1.5.0 // indirect | ||
go.uber.org/atomic v1.6.0 // indirect | ||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e | ||
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect | ||
) | ||
|
||
replace github.com/olivere/elastic/v7 => ../../elastic |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
/search | ||
/search_with_point_in_time |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/text_vs_keyword |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/tracing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Tracing with OpenTelemetry | ||
|
||
Run Jaeger (any other supported tracers work of course): | ||
|
||
```sh | ||
./run-tracer.sh | ||
``` | ||
|
||
Then open the web UI: | ||
|
||
```sh | ||
open http://localhost:16686 | ||
``` | ||
|
||
Then run the example, e.g.: | ||
|
||
```sh | ||
go build | ||
./tracing -index=test -type=doc -n=100000 -bulk-size=100 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
docker run -d --name jaeger \ | ||
-e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \ | ||
-p 5775:5775/udp \ | ||
-p 6831:6831/udp \ | ||
-p 6832:6832/udp \ | ||
-p 5778:5778 \ | ||
-p 16686:16686 \ | ||
-p 14268:14268 \ | ||
-p 9411:9411 \ | ||
jaegertracing/all-in-one:latest |
Oops, something went wrong.