Remove auto-config (#1620)

This commit is contained in:
Anuraag Agrawal 2020-09-04 10:01:05 +09:00 committed by GitHub
parent 485cc52c6f
commit c3a893a88c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 1 additions and 176 deletions

View File

@ -26,7 +26,6 @@ def subprojects = [
project(':opentelemetry-sdk-tracing'),
project(':opentelemetry-sdk'),
project(':opentelemetry-sdk-extension-async-processor'),
project(':opentelemetry-sdk-extension-auto-config'),
project(':opentelemetry-sdk-extension-otproto'),
project(':opentelemetry-sdk-extension-testbed'),
project(':opentelemetry-sdk-extension-jaeger-remote-sampler'),

View File

@ -1,10 +0,0 @@
# OpenTelemetry SDK Contrib - Auto Instrumentation Configuration Utilities
[![Javadocs][javadoc-image]][javadoc-url]
This module contains code to assist with configuring the SDK for the auto-instrumentation
project. It is temporarily a separate module from the SDK in order to stabilize
the APIs, then it will be moved into the SDK project proper.
[javadoc-image]: https://www.javadoc.io/badge/io.opentelemetry/opentelemetry-sdk-contrib-auto-config.svg
[javadoc-url]: https://www.javadoc.io/doc/io.opentelemetry/opentelemetry-sdk-contrib-auto-config

View File

@ -1,17 +0,0 @@
plugins {
id "java"
id "maven-publish"
id "ru.vyarus.animalsniffer"
}
description = 'OpenTelemetry SDK Extension for Configuration'
ext.moduleName = "io.opentelemetry.sdk.extension.config"
dependencies {
api project(':opentelemetry-api'),
project(':opentelemetry-sdk')
signature "org.codehaus.mojo.signature:java17:1.0@signature"
signature "net.sf.androidscents.signature:android-api-level-24:7.0_r2@signature"
}

View File

@ -1,78 +0,0 @@
/*
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.opentelemetry.sdk.extensions.auto.config;
/**
* An interface used to provide configuration information to {@link SpanExporterFactory}
* implementations. Callers (such as the Java Auto Instrumenter) typically provide an implementation
* mapping directly to their native configuration framework.
*
* <p>This interface is intentionally kept very simple since the underlying implementations may only
* have access to very basic configuration mechanisms such as system properties and environment
* variables.
*/
public interface Config {
/**
* Returns the string configuration property corresponding to a key. If the underlying
* implementation cannot find a property for the key, {@code defaultValue} is returned.
*
* @param key The config key
* @param defaultValue The value to use if no configuration property couldn't be found
* @return The value of the configuration parameter
*/
String getString(String key, String defaultValue);
/**
* Returns the {@code int} configuration property corresponding to a key. If the underlying
* implementation cannot find a property for the key, {@code defaultValue} is returned.
*
* @param key The config key
* @param defaultValue The value to use if no configuration property couldn't be found
* @return The value of the configuration parameter
*/
int getInt(String key, int defaultValue);
/**
* Returns the {@code long} configuration property corresponding to a key. If the underlying
* implementation cannot find a property for the key, {@code defaultValue} is returned.
*
* @param key The config key
* @param defaultValue The value to use if no configuration property couldn't be found
* @return The value of the configuration parameter
*/
long getLong(String key, long defaultValue);
/**
* Returns the {@code boolean} configuration property corresponding to a key. If the underlying
* implementation cannot find a property for the key, {@code defaultValue} is returned.
*
* @param key The config key
* @param defaultValue The value to use if no configuration property couldn't be found
* @return The value of the configuration parameter
*/
boolean getBoolean(String key, boolean defaultValue);
/**
* Returns the {@code double} configuration property corresponding to a key. If the underlying
* implementation cannot find a property for the key, {@code defaultValue} is returned.
*
* @param key The config key
* @param defaultValue The value to use if no configuration property couldn't be found
* @return The value of the configuration parameter
*/
double getDouble(String key, double defaultValue);
}

View File

@ -1,34 +0,0 @@
/*
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.opentelemetry.sdk.extensions.auto.config;
import io.opentelemetry.sdk.metrics.export.MetricExporter;
/**
* A {@link MetricExporterFactory} acts as the bootstrap for a {@link MetricExporter}
* implementation. An exporter must register its implementation of a {@link MetricExporterFactory}
* through the Java SPI framework.
*/
public interface MetricExporterFactory {
/**
* Creates an instance of a {@link MetricExporter} based on the provided configuration.
*
* @param config The configuration
* @return An implementation of a {@link MetricExporter}
*/
MetricExporter fromConfig(Config config);
}

View File

@ -1,34 +0,0 @@
/*
* Copyright 2020, OpenTelemetry Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.opentelemetry.sdk.extensions.auto.config;
import io.opentelemetry.sdk.trace.export.SpanExporter;
/**
* A {@link SpanExporterFactory} acts as the bootstrap for a {@link SpanExporter} implementation. An
* exporter must register its implementation of a {@link SpanExporterFactory} through the Java SPI
* framework.
*/
public interface SpanExporterFactory {
/**
* Creates an instance of a {@link SpanExporter} based on the provided configuration.
*
* @param config The configuration
* @return An implementation of a {@link SpanExporter}
*/
SpanExporter fromConfig(Config config);
}

View File

@ -40,7 +40,6 @@ include ":opentelemetry-all",
":opentelemetry-sdk-tracing",
":opentelemetry-sdk",
":opentelemetry-sdk-extension-async-processor",
":opentelemetry-sdk-extension-auto-config",
":opentelemetry-sdk-extension-aws-v1-support",
":opentelemetry-sdk-extension-otproto",
":opentelemetry-sdk-extension-resources",
@ -61,4 +60,4 @@ rootProject.children.each {
.replace("-", "_") as File
}
project(":opentelemetry-sdk").projectDir = "$rootDir/sdk/all" as File
project(":opentelemetry-sdk").projectDir = "$rootDir/sdk/all" as File