Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 49a29e1

Browse files
committed
Refine Metrics Configuration documentation.
Closes #3149
1 parent 2cad2aa commit 49a29e1

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎src/main/antora/modules/ROOT/pages/observability.adoc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ObservabilityConfiguration {
1616
public ClientResources clientResources(ObservationRegistry observationRegistry) {
1717
1818
return ClientResources.builder()
19-
.tracing(new MicrometerTracingAdapter(observationRegistry, "my-redis-cache"))
19+
.tracing(new MicrometerTracing(observationRegistry, "my-redis-cache"))
2020
.build();
2121
}
2222
@@ -31,15 +31,20 @@ class ObservabilityConfiguration {
3131
}
3232
----
3333

34+
NOTE: When using Spring Boot, `LettuceMetricsAutoConfiguration` configures Lettuce's `MicrometerCommandLatencyRecorder`.
35+
Depending on whether you want only Metrics or Metrics and Tracing, you might want to exclude this auto-configuration class in your application.
36+
37+
NOTE: Use Lettuce's built-in `MicrometerTracing` as `MicrometerTracingAdapter` has been deprecated for removal in future releases.
38+
3439
See also https://opentelemetry.io/docs/reference/specification/trace/semantic_conventions/database/#redis[OpenTelemetry Semantic Conventions] for further reference.
3540

3641
[[observability-metrics]]
3742
== Observability - Metrics
3843

39-
Below you can find a list of all metrics declared by this project.
44+
Below you can find a list of all metrics recorded by `MicrometerTracingAdapter`.
4045

4146
[[observability-metrics-redis-command-observation]]
42-
== Redis Command Observation
47+
=== Redis Command Observation
4348

4449
____
4550
Timer created around a Redis command execution.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /