Delete old ResourceProvider class (#2895)
This commit is contained in:
parent
7e1b8f924a
commit
6710f099e7
|
|
@ -25,11 +25,6 @@ import javax.annotation.concurrent.Immutable;
|
|||
/**
|
||||
* {@link Resource} represents a resource, which capture identifying information about the entities
|
||||
* for which signals (stats or traces) are reported.
|
||||
*
|
||||
* <p>To disable any {@link ResourceProvider} found on the classpath from being recognized, set the
|
||||
* fully qualified class names of the {@link ResourceProvider} implementations as a comma separated
|
||||
* list to the system property {@code -Dotel.java.disabled.resource_providers} or the {@code
|
||||
* OTEL_JAVA_DISABLED_RESOURCE_PROVIDERS} environment variable.
|
||||
*/
|
||||
@Immutable
|
||||
@AutoValue
|
||||
|
|
|
|||
|
|
@ -1,27 +0,0 @@
|
|||
/*
|
||||
* Copyright The OpenTelemetry Authors
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
package io.opentelemetry.sdk.resources;
|
||||
|
||||
import io.opentelemetry.api.common.Attributes;
|
||||
|
||||
/**
|
||||
* ResourceProvider is a service provider for additional {@link Resource}s. Users of OpenTelemetry
|
||||
* SDK can use it to add custom {@link Resource} attributes.
|
||||
*
|
||||
* <p>Fully qualified class name of the implementation should be registered in {@code
|
||||
* META-INF/services/io.opentelemetry.sdk.resources.ResourceProvider}.
|
||||
*
|
||||
* <p>Resources specified via system properties or environment variables will take precedence over
|
||||
* any value supplied via {@code ResourceProvider}.
|
||||
*/
|
||||
public abstract class ResourceProvider {
|
||||
|
||||
public Resource create() {
|
||||
return Resource.create(getAttributes());
|
||||
}
|
||||
|
||||
protected abstract Attributes getAttributes();
|
||||
}
|
||||
Loading…
Reference in New Issue