redis/example/otel
Vladimir Mihailenco 58e087fe08 chore: release v9.0.0-beta.1 (release.sh) 2022-06-04 18:02:11 +03:00
..
README.md chore: fix links 2022-04-13 15:53:17 +03:00
docker-compose.yml chore: cleanup OpenTelemetry example 2021-09-08 15:54:10 +03:00
go.mod chore: release v9.0.0-beta.1 (release.sh) 2022-06-04 18:02:11 +03:00
go.sum chore: release v9.0.0-beta.1 (release.sh) 2022-06-04 18:02:11 +03:00
main.go chore: v9 2022-06-04 17:42:06 +03:00

README.md

Example for go-redis OpenTelemetry instrumentation

See Redis 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 .