Class DeprecatedInstrumentationNames
java.lang.Object
io.opentelemetry.javaagent.extension.instrumentation.internal.DeprecatedInstrumentationNames
Helper for
InstrumentationModules whose names have been renamed: expands names containing
the inline marker "<current>|deprecated:<old>" into the current name followed by the
deprecated name.
Under otel.instrumentation.common.v3-preview=true the deprecated name is dropped, so
only the current name is registered. Otherwise, if the deprecated name has been explicitly set
via otel.instrumentation.<old>.enabled (flat properties or YAML), a warning is logged
pointing users at the current name.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String[]expandDeprecatedNames(String... names) Expands names containing"<current>|deprecated:<old>"into the current name followed by the deprecated name.
-
Method Details
-
expandDeprecatedNames
Expands names containing"<current>|deprecated:<old>"into the current name followed by the deprecated name. Names without the marker are returned unchanged.Under
otel.instrumentation.common.v3-preview=truethe deprecated name is dropped. Otherwise, if the deprecated name has been explicitly set viaotel.instrumentation.<old>.enabled(flat properties or YAML), a warning is logged pointing users at the current name.
-