Delete old ResourceProvider class (#2895)

This commit is contained in:
Anuraag Agrawal 2021-02-19 14:05:20 +09:00 committed by GitHub
parent 7e1b8f924a
commit 6710f099e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 32 deletions

View File

@ -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

View File

@ -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();
}