mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
chore: add more metrics to redisotel
This commit is contained in:
@ -17,7 +17,6 @@ cd example/otel
|
||||
**Step 2**. Start the services using Docker:
|
||||
|
||||
```shell
|
||||
docker-compose pull
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
@ -27,16 +26,10 @@ docker-compose up -d
|
||||
docker-compose logs uptrace
|
||||
```
|
||||
|
||||
**Step 4**. Run the Redis client example:
|
||||
**Step 4**. Run the Redis client example and Follow the link to view the trace:
|
||||
|
||||
```shell
|
||||
UPTRACE_DSN=http://project2_secret_token@localhost:14317/2 go run client.go
|
||||
```
|
||||
|
||||
**Step 5**. Follow the link from the CLI to view the trace:
|
||||
|
||||
```shell
|
||||
UPTRACE_DSN=http://project2_secret_token@localhost:14317/2 go run client.go
|
||||
go run client.go
|
||||
trace: http://localhost:14318/traces/ee029d8782242c8ed38b16d961093b35
|
||||
```
|
||||
|
||||
|
@ -22,7 +22,7 @@ func main() {
|
||||
|
||||
uptrace.ConfigureOpentelemetry(
|
||||
// copy your project DSN here or use UPTRACE_DSN env var
|
||||
// uptrace.WithDSN("http://project2_secret_token@localhost:14317/2"),
|
||||
uptrace.WithDSN("http://project2_secret_token@localhost:14317/2"),
|
||||
|
||||
uptrace.WithServiceName("myservice"),
|
||||
uptrace.WithServiceVersion("v1.0.0"),
|
||||
|
@ -18,7 +18,7 @@ services:
|
||||
- '9000:9000'
|
||||
|
||||
uptrace:
|
||||
image: 'uptrace/uptrace:1.2.0'
|
||||
image: 'uptrace/uptrace:1.2.2'
|
||||
#image: 'uptrace/uptrace-dev:latest'
|
||||
restart: on-failure
|
||||
volumes:
|
||||
@ -74,8 +74,5 @@ services:
|
||||
|
||||
volumes:
|
||||
uptrace_data:
|
||||
driver: local
|
||||
ch_data:
|
||||
driver: local
|
||||
alertmanager_data:
|
||||
driver: local
|
||||
|
Reference in New Issue
Block a user