redis/example/otel
hidu 187c07c41b fix: example/otel compile error (#2028) 2022-02-18 22:59:59 +08:00
..
README.md chore: update otel example 2021-11-05 16:17:17 +02:00
docker-compose.yml chore: cleanup OpenTelemetry example 2021-09-08 15:54:10 +03:00
go.mod fix: example/otel compile error (#2028) 2022-02-18 22:59:59 +08:00
go.sum fix: example/otel compile error (#2028) 2022-02-18 22:59:59 +08:00
main.go fix: example/otel compile error (#2028) 2022-02-18 22:59:59 +08:00

README.md

Example for go-redis OpenTelemetry instrumentation

See Monitoring performance and errors for details.

This example requires Redis Server on port :6379. You can start Redis Server using Docker:

docker-compose up -d

You can run this example with different OpenTelemetry exporters by providing environment variables.

Stdout exporter (default):

go run .

Jaeger exporter:

OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run .

Uptrace exporter:

UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run .