opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

The ContextStorageProvider system prop and error message differ

Open LaurentTreguier opened this issue 7 months ago • 2 comments

Inside of context/src/main/java/io/opentelemetry/context/LazyStorage.java, the io.opentelemetry.context.contextStorageProvider system property is checked for providers. However, in the IllegalStateExceptions thrown further down in the class, error messages mention the io.opentelemetry.context.ContextStorageProvider property instead (with an uppercase "C" for ContextStorageProvider).

I'm a little bit out of my depth here regarding system property naming, so I'm not sure which one is correct and which one is a typo though

LaurentTreguier avatar May 04 '25 19:05 LaurentTreguier

I don't think we can really change the system property at this point, so we should consider the message to be wrong. Can you contribute a small PR to fix it? Thanks!

jkwatson avatar May 08 '25 22:05 jkwatson

Fix proposed in #7342

LaurentTreguier avatar May 10 '25 10:05 LaurentTreguier