chore: fix link

This commit is contained in:
Vladimir Mihailenco 2023-10-20 08:39:54 +03:00
parent 45d28c136f
commit 86bae21dce
1 changed files with 10 additions and 5 deletions

View File

@ -10,8 +10,8 @@
> use it to monitor applications and set up automatic alerts to receive notifications via email,
> Slack, Telegram, and others.
>
> See [OpenTelemetry](master/example/otel) example which demonstrates how you can use Uptrace to monitor
> go-redis.
> See [OpenTelemetry](example/otel/README.md) example which demonstrates how you can use Uptrace to
> monitor go-redis.
## Documentation
@ -107,7 +107,8 @@ func ExampleClient() {
}
```
The above can be modified to specify the version of the RESP protocol by adding the `protocol` option to the `Options` struct:
The above can be modified to specify the version of the RESP protocol by adding the `protocol`
option to the `Options` struct:
```go
rdb := redis.NewClient(&redis.Options{
@ -121,7 +122,10 @@ The above can be modified to specify the version of the RESP protocol by adding
### Connecting via a redis url
go-redis also supports connecting via the [redis uri specification](https://github.com/redis/redis-specifications/tree/master/uri/redis.txt). The example below demonstrates how the connection can easily be configured using a string, adhering to this specification.
go-redis also supports connecting via the
[redis uri specification](https://github.com/redis/redis-specifications/tree/master/uri/redis.txt).
The example below demonstrates how the connection can easily be configured using a string, adhering
to this specification.
```go
import (
@ -208,7 +212,8 @@ Lastly, run:
go test
```
Another option is to run your specific tests with an already running redis. The example below, tests against a redis running on port 9999.:
Another option is to run your specific tests with an already running redis. The example below, tests
against a redis running on port 9999.:
```shell
REDIS_PORT=9999 go test <your options>