Skip to content

Commit e270c59

Browse files
authored
Deprecate peerServiceMapping (#8088)
1 parent d469a9c commit e270c59

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ public class InstrumentationConfigUtil {
2323
* .instrumentation.general.peer.service_mapping}, or null if none is configured.
2424
*
2525
* @throws DeclarativeConfigException if an unexpected type is encountered accessing the property
26+
* @deprecated Peer service mapping was removed from the general instrumentation configuration
27+
* schema. See <a
28+
* href="https://github.com/open-telemetry/opentelemetry-configuration/pull/526">opentelemetry-configuration#526</a>.
2629
*/
30+
@Deprecated
2731
@Nullable
2832
public static Map<String, String> peerServiceMapping(ConfigProvider configProvider) {
2933
List<DeclarativeConfigProperties> serviceMappingList =

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ private static ConfigProvider toConfigProvider(String configYaml) {
6565
new ByteArrayInputStream(configYaml.getBytes(StandardCharsets.UTF_8))));
6666
}
6767

68+
@SuppressWarnings("deprecation") // testing deprecated method
6869
@Test
6970
void peerServiceMapping() {
7071
assertThat(InstrumentationConfigUtil.peerServiceMapping(kitchenSinkConfigProvider))

0 commit comments

Comments
 (0)