@@ -39,51 +39,31 @@ public static CapturedHttpHeaders empty() {
39
39
private static final String CLIENT_RESPONSE_PROPERTY =
40
40
"otel.instrumentation.http.capture-headers.client.response" ;
41
41
42
- // TODO: remove the experimental properties after 1.8.0 release
43
- private static final String EXPERIMENTAL_CLIENT_REQUEST_PROPERTY =
44
- "otel.instrumentation.common.experimental.capture-http-headers.client.request" ;
45
- private static final String EXPERIMENTAL_CLIENT_RESPONSE_PROPERTY =
46
- "otel.instrumentation.common.experimental.capture-http-headers.client.response" ;
47
-
48
42
/**
49
43
* Returns a configuration that captures HTTP client request and response headers as configured in
50
44
* the received {@code config}.
51
45
*/
52
46
public static CapturedHttpHeaders client (Config config ) {
53
47
// fall back to the experimental properties if the stable one isn't supplied
54
48
return CapturedHttpHeaders .create (
55
- config .getList (
56
- CLIENT_REQUEST_PROPERTY ,
57
- config .getList (EXPERIMENTAL_CLIENT_REQUEST_PROPERTY , emptyList ())),
58
- config .getList (
59
- CLIENT_RESPONSE_PROPERTY ,
60
- config .getList (EXPERIMENTAL_CLIENT_RESPONSE_PROPERTY , emptyList ())));
49
+ config .getList (CLIENT_REQUEST_PROPERTY , emptyList ()),
50
+ config .getList (CLIENT_RESPONSE_PROPERTY , emptyList ()));
61
51
}
62
52
63
53
private static final String SERVER_REQUEST_PROPERTY =
64
54
"otel.instrumentation.http.capture-headers.server.request" ;
65
55
private static final String SERVER_RESPONSE_PROPERTY =
66
56
"otel.instrumentation.http.capture-headers.server.response" ;
67
57
68
- // TODO: remove the experimental properties after 1.8.0 release
69
- private static final String EXPERIMENTAL_SERVER_REQUEST_PROPERTY =
70
- "otel.instrumentation.common.experimental.capture-http-headers.server.request" ;
71
- private static final String EXPERIMENTAL_SERVER_RESPONSE_PROPERTY =
72
- "otel.instrumentation.common.experimental.capture-http-headers.server.response" ;
73
-
74
58
/**
75
59
* Returns a configuration that captures HTTP server request and response headers as configured in
76
60
* the received {@code config}.
77
61
*/
78
62
public static CapturedHttpHeaders server (Config config ) {
79
63
// fall back to the experimental properties if the stable one isn't supplied
80
64
return CapturedHttpHeaders .create (
81
- config .getList (
82
- SERVER_REQUEST_PROPERTY ,
83
- config .getList (EXPERIMENTAL_SERVER_REQUEST_PROPERTY , emptyList ())),
84
- config .getList (
85
- SERVER_RESPONSE_PROPERTY ,
86
- config .getList (EXPERIMENTAL_SERVER_RESPONSE_PROPERTY , emptyList ())));
65
+ config .getList (SERVER_REQUEST_PROPERTY , emptyList ()),
66
+ config .getList (SERVER_RESPONSE_PROPERTY , emptyList ()));
87
67
}
88
68
89
69
/**
0 commit comments