Skip to content

Commit 7101cfb

Browse files
committed
statically initialize ProfilingActivationListener in test
1 parent 500018f commit 7101cfb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

inferred-spans/src/test/java/io/opentelemetry/contrib/inferredspans/internal/SamplingProfilerTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
@DisabledOnOpenJ9
4444
class SamplingProfilerTest {
4545

46+
static {
47+
ProfilingActivationListener.ensureInitialized();
48+
}
49+
4650
private ProfilerTestSetup setup;
4751

4852
@TempDir private Path tempDir;

0 commit comments

Comments
 (0)