1
0
mirror of https://github.com/redis/go-redis.git synced 2025-06-09 16:01:18 +03:00
2022-07-28 15:40:09 +03:00
..
2022-06-04 17:42:06 +03:00
2022-04-13 15:53:17 +03:00

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 .