Skip to content

Commit e419b5d

Browse files
Fix context storage provider property name (#7318) (#7342)
1 parent acc64ee commit e419b5d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

context/src/main/java/io/opentelemetry/context/LazyStorage.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ static ContextStorage createStorage(AtomicReference<Throwable> deferredStorageFa
127127
deferredStorageFailure.set(
128128
new IllegalStateException(
129129
"Found multiple ContextStorageProvider. Set the "
130-
+ "io.opentelemetry.context.ContextStorageProvider property to the fully "
130+
+ CONTEXT_STORAGE_PROVIDER_PROPERTY
131+
+ " property to the fully "
131132
+ "qualified class name of the provider to use. Falling back to default "
132133
+ "ContextStorage. Found providers: "
133134
+ providers));
@@ -142,7 +143,8 @@ static ContextStorage createStorage(AtomicReference<Throwable> deferredStorageFa
142143

143144
deferredStorageFailure.set(
144145
new IllegalStateException(
145-
"io.opentelemetry.context.ContextStorageProvider property set but no matching class "
146+
CONTEXT_STORAGE_PROVIDER_PROPERTY
147+
+ " property set but no matching class "
146148
+ "could be found, requested: "
147149
+ providerClassName
148150
+ " but found providers: "

0 commit comments

Comments
 (0)