Set Context Propagation on the Java Agent

In order to enable context propagation on the Java Agent, you will need to set the following flags when starting the test listener:

  • sl.otelEnabled=true

  • sl.otelConfiguration.enabled=true

  • sl.otelConfiguration.loadEmbeddedAgent=true

  • sl.featureData.codeCoverageManagerVersion=v3

For example:

-javaagent:/path/to/sl-test-listener.jar -Dsl.tags=backend -Dsl.labId=<lab ID> -Dsl.otelEnabled=true -Dsl.otelConfiguration.enabled=true -Dsl.otelConfiguration.loadEmbeddedAgent=true -Dsl.featuresData.codeCoverageManagerVersion=v3