forked from mirror/redis
e84461f7ed | ||
---|---|---|
.. | ||
README.md | ||
docker-compose.yml | ||
go.mod | ||
go.sum | ||
main.go |
README.md
Example for go-redis OpenTelemetry instrumentation
See Monitoring Go Redis 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 .
Uptrace exporter:
UPTRACE_DSN="https://<token>@uptrace.dev/<project_id>" go run .
Jaeger exporter:
OTEL_EXPORTER_JAEGER_ENDPOINT=http://localhost:14268/api/traces go run .
To instrument Redis Cluster client, see go-redis-cluster example.