@@ -51,13 +51,30 @@ public final class HttpIncubatingMetrics {
5151 public static final String HTTP_CLIENT_REQUEST_BODY_SIZE_DESCRIPTION =
5252 "Size of HTTP client request bodies." ;
5353
54- /** Name of the {@code http.client.request.duration} metric. */
54+ /**
55+ * Name of the {@code http.client.request.duration} metric.
56+ *
57+ * @deprecated deprecated in favor of stable {@link
58+ * io.opentelemetry.semconv.HttpMetrics#HTTP_CLIENT_REQUEST_DURATION_NAME} constant.
59+ */
60+ @ Deprecated
5561 public static final String HTTP_CLIENT_REQUEST_DURATION_NAME = "http.client.request.duration" ;
5662
57- /** Unit of the {@code http.client.request.duration} metric. */
58- public static final String HTTP_CLIENT_REQUEST_DURATION_UNIT = "s" ;
59-
60- /** Description of the {@code http.client.request.duration} metric. */
63+ /**
64+ * Unit of the {@code http.client.request.duration} metric.
65+ *
66+ * @deprecated deprecated in favor of stable {@link
67+ * io.opentelemetry.semconv.HttpMetrics#HTTP_CLIENT_REQUEST_DURATION_UNIT} constant.
68+ */
69+ @ Deprecated public static final String HTTP_CLIENT_REQUEST_DURATION_UNIT = "s" ;
70+
71+ /**
72+ * Description of the {@code http.client.request.duration} metric.
73+ *
74+ * @deprecated deprecated in favor of stable {@link
75+ * io.opentelemetry.semconv.HttpMetrics#HTTP_CLIENT_REQUEST_DURATION_DESCRIPTION} constant.
76+ */
77+ @ Deprecated
6178 public static final String HTTP_CLIENT_REQUEST_DURATION_DESCRIPTION =
6279 "Duration of HTTP client requests." ;
6380
@@ -91,13 +108,30 @@ public final class HttpIncubatingMetrics {
91108 public static final String HTTP_SERVER_REQUEST_BODY_SIZE_DESCRIPTION =
92109 "Size of HTTP server request bodies." ;
93110
94- /** Name of the {@code http.server.request.duration} metric. */
111+ /**
112+ * Name of the {@code http.server.request.duration} metric.
113+ *
114+ * @deprecated deprecated in favor of stable {@link
115+ * io.opentelemetry.semconv.HttpMetrics#HTTP_SERVER_REQUEST_DURATION_NAME} constant.
116+ */
117+ @ Deprecated
95118 public static final String HTTP_SERVER_REQUEST_DURATION_NAME = "http.server.request.duration" ;
96119
97- /** Unit of the {@code http.server.request.duration} metric. */
98- public static final String HTTP_SERVER_REQUEST_DURATION_UNIT = "s" ;
99-
100- /** Description of the {@code http.server.request.duration} metric. */
120+ /**
121+ * Unit of the {@code http.server.request.duration} metric.
122+ *
123+ * @deprecated deprecated in favor of stable {@link
124+ * io.opentelemetry.semconv.HttpMetrics#HTTP_SERVER_REQUEST_DURATION_UNIT} constant.
125+ */
126+ @ Deprecated public static final String HTTP_SERVER_REQUEST_DURATION_UNIT = "s" ;
127+
128+ /**
129+ * Description of the {@code http.server.request.duration} metric.
130+ *
131+ * @deprecated deprecated in favor of stable {@link
132+ * io.opentelemetry.semconv.HttpMetrics#HTTP_SERVER_REQUEST_DURATION_DESCRIPTION} constant.
133+ */
134+ @ Deprecated
101135 public static final String HTTP_SERVER_REQUEST_DURATION_DESCRIPTION =
102136 "Duration of HTTP server requests." ;
103137
0 commit comments