Is your feature request related to a problem? Please describe.
Spring starter with declarative config needs to use the same settings for object mapper as
|
static final ObjectMapper MAPPER; |
See open-telemetry/opentelemetry-java-instrumentation#14062 (comment)
Describe the solution you'd like
Move the instance to an internal class where it can be read without reflection.
Describe alternatives you've considered
Read the instance using reflection.
Is your feature request related to a problem? Please describe.
Spring starter with declarative config needs to use the same settings for object mapper as
opentelemetry-java/sdk-extensions/incubator/src/main/java/io/opentelemetry/sdk/extension/incubator/fileconfig/DeclarativeConfiguration.java
Line 66 in e658462
See open-telemetry/opentelemetry-java-instrumentation#14062 (comment)
Describe the solution you'd like
Move the instance to an internal class where it can be read without reflection.
Describe alternatives you've considered
Read the instance using reflection.