File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
testing/agent-exporter/src/main/java/io/opentelemetry/javaagent/testing Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 55
66package io .opentelemetry .javaagent .testing .exporter ;
77
8- import io .opentelemetry .javaagent .testing .provider .TestLogRecordExporterComponentProvider ;
9- import io .opentelemetry .javaagent .testing .provider .TestMetricExporterComponentProvider ;
10- import io .opentelemetry .javaagent .testing .provider .TestSpanExporterComponentProvider ;
8+ import io .opentelemetry .javaagent .testing .provider .AgentTestLogRecordExporterComponentProvider ;
9+ import io .opentelemetry .javaagent .testing .provider .AgentTestMetricExporterComponentProvider ;
10+ import io .opentelemetry .javaagent .testing .provider .AgentTestSpanExporterComponentProvider ;
1111
12- class TestExportersUtil {
12+ public class TestExportersUtil {
1313 private TestExportersUtil () {}
1414
15- static void initTestExporters () {
16- TestSpanExporterComponentProvider .setSpanExporter (AgentTestingExporterFactory .spanExporter );
17- TestMetricExporterComponentProvider .setMetricExporter (
15+ public static void initTestExporters () {
16+ AgentTestSpanExporterComponentProvider .setSpanExporter (AgentTestingExporterFactory .spanExporter );
17+ AgentTestMetricExporterComponentProvider .setMetricExporter (
1818 AgentTestingExporterFactory .metricExporter );
19- TestLogRecordExporterComponentProvider .setLogRecordExporter (
19+ AgentTestLogRecordExporterComponentProvider .setLogRecordExporter (
2020 AgentTestingExporterFactory .logExporter );
2121 }
2222}
Original file line number Diff line number Diff line change 66package io .opentelemetry .javaagent .testing .provider ;
77
88import com .google .auto .service .AutoService ;
9- import io .opentelemetry .javaagent .testing .exporter .AgentTestingExporterFactory ;
9+ import io .opentelemetry .javaagent .testing .exporter .TestExportersUtil ;
1010import io .opentelemetry .sdk .extension .incubator .fileconfig .DeclarativeConfigurationCustomizer ;
1111import io .opentelemetry .sdk .extension .incubator .fileconfig .DeclarativeConfigurationCustomizerProvider ;
1212import io .opentelemetry .sdk .extension .incubator .fileconfig .internal .model .ConsoleExporterModel ;
@@ -32,7 +32,7 @@ public class AgentTestExporterCustomizerProvider
3232 implements DeclarativeConfigurationCustomizerProvider {
3333 @ Override
3434 public void customize (DeclarativeConfigurationCustomizer customizer ) {
35- AgentTestingExporterFactory . init ();
35+ TestExportersUtil . initTestExporters ();
3636
3737 customizer .addModelCustomizer (
3838 model -> {
You can’t perform that action at this time.
0 commit comments