Polish gh-35358

Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
Johnny Lim
2025-09-02 23:13:27 +09:00
parent 6dc5bf7634
commit d32b7e9b4a
2 changed files with 2 additions and 9 deletions
@@ -190,7 +190,7 @@ This observation uses the `io.micrometer.jakarta9.instrument.jms.DefaultJmsProce
== HTTP Server instrumentation
HTTP server exchange observations are created with the name `"http.server.requests"` for Servlet and Reactive applications,
or "http.server.request.duration" if using the OpenTelemetry convention.
or `"http.server.request.duration"` if using the OpenTelemetry convention.
[[observability.http-server.servlet]]
=== Servlet applications
@@ -69,13 +69,6 @@ public class OpenTelemetryServerRequestObservationConvention implements ServerRe
private static final Set<String> HTTP_METHODS = Stream.of(HttpMethod.values()).map(HttpMethod::name).collect(Collectors.toUnmodifiableSet());
/**
* Create a convention.
*/
public OpenTelemetryServerRequestObservationConvention() {
}
@Override
public String getName() {
return NAME;
@@ -87,7 +80,7 @@ public class OpenTelemetryServerRequestObservationConvention implements ServerRe
* SHOULD be {@code {method}}.
* <p>
* The {@code {method}} MUST be {@code {http.request.method}} if the method represents the original
* method known to the instrumentation. In other cases (when Customize Toolbar… is
* method known to the instrumentation. In other cases (when {@code {http.request.method}} is
* set to {@code _OTHER}), {@code {method}} MUST be HTTP.
* <p>
* The {@code target} SHOULD be the {@code {http.route}}.