Adds Cassandra support (#1974)
Co-authored-by: Mark Paluch <mpaluch@vmware.com>
This commit is contained in:
committed by
GitHub
parent
209ce7d8ec
commit
17ba1b18d5
@@ -10,6 +10,7 @@
|
||||
|spring.sleuth.baggage.remote-fields | | List of fields that are referenced the same in-process as it is on the wire. For example, the field "x-vcap-request-id" would be set as-is including the prefix.
|
||||
|spring.sleuth.baggage.tag-fields | | List of fields that should automatically become tags.
|
||||
|spring.sleuth.batch.enabled | `true` | Enable Spring Batch instrumentation.
|
||||
|spring.sleuth.cassandra.enabled | `true` | Enable Cassandra instrumentation.
|
||||
|spring.sleuth.circuitbreaker.enabled | `true` | Enable Spring Cloud CircuitBreaker instrumentation.
|
||||
|spring.sleuth.config.server.enabled | `true` | Enable Spring Cloud Config Server instrumentation.
|
||||
|spring.sleuth.deployer.enabled | `true` | Enable Spring Cloud Deployer instrumentation.
|
||||
|
||||
@@ -85,6 +85,31 @@ Fully qualified name of the enclosing class `org.springframework.cloud.sleuth.in
|
||||
|batch.step.type|Type of the Spring Batch job.
|
||||
|===
|
||||
|
||||
=== Cassandra Span
|
||||
|
||||
> Span created around CqlSession executions.
|
||||
|
||||
**Span name** `%s` - since it contains `%s`, the name is dynamic and will be resolved at runtime.
|
||||
|
||||
Fully qualified name of the enclosing class `org.springframework.cloud.sleuth.instrument.cassandra.SleuthCassandraSpan`
|
||||
|
||||
IMPORTANT: All tags and events must be prefixed with `cassandra.` prefix!
|
||||
|
||||
.Tag Keys
|
||||
|===
|
||||
|Name | Description
|
||||
|cassandra.cql|A tag containing Cassandra CQL.
|
||||
|cassandra.keyspace|Name of the Cassandra keyspace.
|
||||
|cassandra.node[%s].error|A tag containing error that occurred for the given node. (since the name contains `%s` the final value will be resolved at runtime)
|
||||
|===
|
||||
|
||||
.Event Values
|
||||
|===
|
||||
|Name | Description
|
||||
|cassandra.node.error|Set whenever an error occurred for the given node.
|
||||
|cassandra.node.success|Set when a success occurred for the session processing.
|
||||
|===
|
||||
|
||||
=== Circuit Breaker Function Span
|
||||
|
||||
> Span created when we wrap a Function passed to the CircuitBreaker. as fallback.
|
||||
|
||||
@@ -665,6 +665,13 @@ This feature is available for all tracer implementations.
|
||||
We're adding an instrumented Tomcat's `Valve` that originates the span.
|
||||
In order to disable this instrumentation set `spring.sleuth.web.tomcat.enabled` to `false`.
|
||||
|
||||
[[sleuth-cassandra-integration]]
|
||||
== Spring Data Cassandra
|
||||
|
||||
This feature is available for all tracer implementations.
|
||||
|
||||
We're instrumenting Casandra's `CqlSession` and `ReactiveSession` interfaces and we're providing our own implementation of the `RequestTracker`.
|
||||
In order to disable this instrumentation set `spring.sleuth.cassandra.enabled` to `false`.
|
||||
|
||||
[[sleuth-jdbc-integration]]
|
||||
== Spring JDBC
|
||||
|
||||
Reference in New Issue
Block a user