Skip to content

Commit d32b7e9

Browse files
committed
Polish gh-35358
Signed-off-by: Johnny Lim <[email protected]>
1 parent 6dc5bf7 commit d32b7e9

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

framework-docs/modules/ROOT/pages/integration/observability.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ This observation uses the `io.micrometer.jakarta9.instrument.jms.DefaultJmsProce
190190
== HTTP Server instrumentation
191191

192192
HTTP server exchange observations are created with the name `"http.server.requests"` for Servlet and Reactive applications,
193-
or "http.server.request.duration" if using the OpenTelemetry convention.
193+
or `"http.server.request.duration"` if using the OpenTelemetry convention.
194194

195195
[[observability.http-server.servlet]]
196196
=== Servlet applications

spring-web/src/main/java/org/springframework/http/server/observation/OpenTelemetryServerRequestObservationConvention.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,6 @@ public class OpenTelemetryServerRequestObservationConvention implements ServerRe
6969
private static final Set<String> HTTP_METHODS = Stream.of(HttpMethod.values()).map(HttpMethod::name).collect(Collectors.toUnmodifiableSet());
7070

7171

72-
/**
73-
* Create a convention.
74-
*/
75-
public OpenTelemetryServerRequestObservationConvention() {
76-
}
77-
78-
7972
@Override
8073
public String getName() {
8174
return NAME;
@@ -87,7 +80,7 @@ public String getName() {
8780
* SHOULD be {@code {method}}.
8881
* <p>
8982
* The {@code {method}} MUST be {@code {http.request.method}} if the method represents the original
90-
* method known to the instrumentation. In other cases (when Customize Toolbar… is
83+
* method known to the instrumentation. In other cases (when {@code {http.request.method}} is
9184
* set to {@code _OTHER}), {@code {method}} MUST be HTTP.
9285
* <p>
9386
* The {@code target} SHOULD be the {@code {http.route}}.

0 commit comments

Comments
 (0)