Skip to content

Commit dc2874e

Browse files
authored
fix typo (#7497)
1 parent 352acfb commit dc2874e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/incubator/src/main/java/io/opentelemetry/api/incubator/config/InstrumentationConfigUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public static List<String> httpServerRequestCapturedHeaders(ConfigProvider confi
102102
* @throws DeclarativeConfigException if an unexpected type is encountered accessing the property
103103
*/
104104
@Nullable
105-
public static List<String> httpSeverResponseCapturedHeaders(ConfigProvider configProvider) {
105+
public static List<String> httpServerResponseCapturedHeaders(ConfigProvider configProvider) {
106106
return getOrNull(
107107
configProvider,
108108
config -> config.getScalarList("response_captured_headers", String.class),

api/incubator/src/test/java/io/opentelemetry/api/incubator/config/InstrumentationConfigUtilTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,16 @@ void httpServerRequestCapturedHeaders() {
128128
@Test
129129
void httpServerResponseCapturedHeaders() {
130130
assertThat(
131-
InstrumentationConfigUtil.httpSeverResponseCapturedHeaders(kitchenSinkConfigProvider))
131+
InstrumentationConfigUtil.httpServerResponseCapturedHeaders(kitchenSinkConfigProvider))
132132
.isEqualTo(Arrays.asList("server-response-header1", "server-response-header2"));
133133
assertThat(
134-
InstrumentationConfigUtil.httpSeverResponseCapturedHeaders(
134+
InstrumentationConfigUtil.httpServerResponseCapturedHeaders(
135135
emptyInstrumentationConfigProvider))
136136
.isNull();
137137
assertThat(
138-
InstrumentationConfigUtil.httpSeverResponseCapturedHeaders(emptyGeneralConfigProvider))
138+
InstrumentationConfigUtil.httpServerResponseCapturedHeaders(emptyGeneralConfigProvider))
139139
.isNull();
140-
assertThat(InstrumentationConfigUtil.httpSeverResponseCapturedHeaders(emptyHttpConfigProvider))
140+
assertThat(InstrumentationConfigUtil.httpServerResponseCapturedHeaders(emptyHttpConfigProvider))
141141
.isNull();
142142
}
143143

0 commit comments

Comments
 (0)