diff --git a/context/src/main/java/io/opentelemetry/context/LazyStorage.java b/context/src/main/java/io/opentelemetry/context/LazyStorage.java index 12ec85043d..1727ee06fe 100644 --- a/context/src/main/java/io/opentelemetry/context/LazyStorage.java +++ b/context/src/main/java/io/opentelemetry/context/LazyStorage.java @@ -127,7 +127,8 @@ final class LazyStorage { deferredStorageFailure.set( new IllegalStateException( "Found multiple ContextStorageProvider. Set the " - + "io.opentelemetry.context.ContextStorageProvider property to the fully " + + CONTEXT_STORAGE_PROVIDER_PROPERTY + + " property to the fully " + "qualified class name of the provider to use. Falling back to default " + "ContextStorage. Found providers: " + providers)); @@ -142,7 +143,8 @@ final class LazyStorage { deferredStorageFailure.set( new IllegalStateException( - "io.opentelemetry.context.ContextStorageProvider property set but no matching class " + CONTEXT_STORAGE_PROVIDER_PROPERTY + + " property set but no matching class " + "could be found, requested: " + providerClassName + " but found providers: "