File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
main/java/io/opentelemetry/api/incubator/config
test/java/io/opentelemetry/api/incubator/config Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff 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 =
Original file line number Diff line number Diff 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 ))
You can’t perform that action at this time.
0 commit comments