Skip to content

Commit b1256d1

Browse files
committed
cleanup
1 parent 96e402d commit b1256d1

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

api/incubator/src/main/java/io/opentelemetry/api/incubator/authenticator/ExporterAuthenticator.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
import java.util.Map;
44

55
public interface ExporterAuthenticator {
6-
String getName(); // todo remove this method
7-
86
Map<String, String> getAuthenticationHeaders();
97
}

sdk-extensions/incubator/src/test/java/io/opentelemetry/sdk/extension/incubator/fileconfig/component/TestAuthComponentProvider.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import io.opentelemetry.api.incubator.config.DeclarativeConfigProperties;
1010
import io.opentelemetry.sdk.autoconfigure.spi.internal.ComponentProvider;
1111
import java.util.Collections;
12-
import java.util.Map;
1312

1413
public class TestAuthComponentProvider implements ComponentProvider<ExporterAuthenticator> {
1514
@Override
@@ -25,18 +24,6 @@ public String getName() {
2524
@Override
2625
public ExporterAuthenticator create(
2726
DeclarativeConfigProperties config, ComponentProviderLoader componentProviderLoader) {
28-
return new ExporterAuthenticator() {
29-
;
30-
31-
@Override
32-
public String getName() {
33-
return "test_auth";
34-
}
35-
36-
@Override
37-
public Map<String, String> getAuthenticationHeaders() {
38-
return Collections.singletonMap("auth_provider_key1", "value1");
39-
}
40-
};
27+
return () -> Collections.singletonMap("auth_provider_key1", "value1");
4128
}
4229
}

0 commit comments

Comments
 (0)