Made the Redis configuration more generic
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
|spring.sleuth.reactor.enabled | `true` | When true enables instrumentation for reactor.
|
||||
|spring.sleuth.reactor.instrumentation-type | |
|
||||
|spring.sleuth.redis.enabled | `true` | Enable span information propagation when using Redis.
|
||||
|spring.sleuth.redis.legacy.enabled | `false` | Enable legacy tracing of Redis that works only via Brave.
|
||||
|spring.sleuth.redis.remote-service-name | `redis` | Service name for the remote Redis endpoint.
|
||||
|spring.sleuth.rpc.enabled | `true` | Enable tracing of RPC.
|
||||
|spring.sleuth.rsocket.enabled | `true` | When true enables instrumentation for rsocket.
|
||||
|
||||
@@ -459,7 +459,16 @@ To disable Reactor support, set the `spring.sleuth.reactor.enabled` property to
|
||||
[[sleuth-redis-integration]]
|
||||
== Redis
|
||||
|
||||
This feature is available for Brave tracer implementation.
|
||||
This feature is available for all tracer implementations.
|
||||
|
||||
We're using the `Tracing` abstraction from Lettuce. If Brave is on the classpath we configure `Tracing` to be `BraveTracing`.
|
||||
|
||||
To disable Redis support, set the `spring.sleuth.redis.enabled` property to `false`.
|
||||
|
||||
[[sleuth-redis-legacy-integration]]
|
||||
=== Redis With Legacy Brave Only Support
|
||||
|
||||
To use the Brave only supported feature you need to set the value of `spring.sleuth.redis.legacy.enabled` to `true`. This is the default mechanism available up till version 3.1.0 of Spring Cloud Sleuth.
|
||||
|
||||
We set `tracing` property to Lettuce `ClientResources` instance to enable Brave tracing built in Lettuce.
|
||||
|
||||
@@ -476,8 +485,6 @@ Spring Cloud Sleuth will provide a traced version of the `ClientResources` bean.
|
||||
}
|
||||
----
|
||||
|
||||
To disable Redis support, set the `spring.sleuth.redis.enabled` property to `false`.
|
||||
|
||||
[[sleuth-runnablecallable-integration]]
|
||||
== Runnable and Callable
|
||||
|
||||
|
||||
Reference in New Issue
Block a user