fix test
This commit is contained in:
parent
d1b45398f4
commit
2642301afb
|
|
@ -26,6 +26,12 @@ import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class TestExporterCustomizerProvider implements DeclarativeConfigurationCustomizerProvider {
|
public class TestExporterCustomizerProvider implements DeclarativeConfigurationCustomizerProvider {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int order() {
|
||||||
|
return Integer.MIN_VALUE; // run before other customizers that might add exporters
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void customize(DeclarativeConfigurationCustomizer customizer) {
|
public void customize(DeclarativeConfigurationCustomizer customizer) {
|
||||||
if (TestSpanExporterComponentProvider.getSpanExporter() == null) {
|
if (TestSpanExporterComponentProvider.getSpanExporter() == null) {
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,12 @@ import java.util.List;
|
||||||
@AutoService(DeclarativeConfigurationCustomizerProvider.class)
|
@AutoService(DeclarativeConfigurationCustomizerProvider.class)
|
||||||
public class AgentTestExporterCustomizerProvider
|
public class AgentTestExporterCustomizerProvider
|
||||||
implements DeclarativeConfigurationCustomizerProvider {
|
implements DeclarativeConfigurationCustomizerProvider {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int order() {
|
||||||
|
return Integer.MIN_VALUE; // run before other customizers that might add exporters
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void customize(DeclarativeConfigurationCustomizer customizer) {
|
public void customize(DeclarativeConfigurationCustomizer customizer) {
|
||||||
TestExportersUtil.initTestExporters();
|
TestExportersUtil.initTestExporters();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue