This commit is contained in:
Gregor Zeitlinger 2025-09-05 13:31:08 +02:00
parent d1b45398f4
commit 2642301afb
2 changed files with 12 additions and 0 deletions

View File

@ -26,6 +26,12 @@ import java.util.Collections;
import java.util.List;
public class TestExporterCustomizerProvider implements DeclarativeConfigurationCustomizerProvider {
@Override
public int order() {
return Integer.MIN_VALUE; // run before other customizers that might add exporters
}
@Override
public void customize(DeclarativeConfigurationCustomizer customizer) {
if (TestSpanExporterComponentProvider.getSpanExporter() == null) {

View File

@ -30,6 +30,12 @@ import java.util.List;
@AutoService(DeclarativeConfigurationCustomizerProvider.class)
public class AgentTestExporterCustomizerProvider
implements DeclarativeConfigurationCustomizerProvider {
@Override
public int order() {
return Integer.MIN_VALUE; // run before other customizers that might add exporters
}
@Override
public void customize(DeclarativeConfigurationCustomizer customizer) {
TestExportersUtil.initTestExporters();