Skip to content

Testkit: IOLocalContextStorage is not configured for use as the ContextStorageProvider #959

@AlixBa

Description

@AlixBa

discord

having otel4s-oteljava-testkit as a dependency, pulls opentelemetry-sdk-testing which forces the ContextStorage to be SettableContextStorage (through https://github.com/open-telemetry/opentelemetry-java/blob/5c4a0ad78f021eef925e9ed69b67885b1b3cad3a/sdk/testing/src/main/resources/META-INF/services/io.opentelemetry.context.ContextStorageProvider)

In a context I want to test (in my test module) java propagation (with IOLocalContextStorage), it fails because

java.lang.IllegalStateException: IOLocalContextStorage is not configured for use as the ContextStorageProvider. The current ContextStorage is: io.opentelemetry.sdk.testing.context.SettableContextStorageProvider$SettableContextStorage

if I display SettableContextStorageProvider.getContextStorage is properly links to org.typelevel.otel4s.oteljava.context.IOLocalContextStorage@1ce5131f.

cause

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions