Class HttpServerRoute

java.lang.Object
io.opentelemetry.instrumentation.api.semconv.http.HttpServerRoute

public final class HttpServerRoute extends Object
A helper class that keeps track of the http.route attribute value during HTTP server request processing.

Usually the route is not accessible when the request processing starts; and needs to be set later, after the instrumented operation starts. This class provides several static methods that allow the instrumentation author to provide the matching HTTP route to the instrumentation when it is discovered.

Since:
2.0.0