Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ void declarativeConfigSdkInitializes(@TempDir Path tempDir) throws IOException {
Path configFile = tempDir.resolve("otel-config.yaml");
Files.write(configFile, yaml.getBytes(StandardCharsets.UTF_8));

// System.setProperty is required: addPropertiesSupplier because property suppliers are not
// resolved until after otel.config.file check
// System.setProperty (not addPropertiesSupplier) is required because property suppliers are
// not resolved until after the otel.config.file check.
System.setProperty("otel.config.file", configFile.toString());
AutoConfiguredOpenTelemetrySdk autoConfigured;
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import org.junit.jupiter.api.extension.ExtendWith;
import org.osgi.test.junit5.context.BundleContextExtension;

/** Verifies the SDK (traces, metrics, logs) and Context API work in OSGi. */
@ExtendWith(BundleContextExtension.class)
public class OpenTelemetryOsgiTest {

Expand Down
Loading