diff --git a/sdk/src/main/java/io/opentelemetry/sdk/resources/EnvVarResource.java b/sdk/src/main/java/io/opentelemetry/sdk/resources/EnvVarResource.java index 6746f84c618..74ee4f1427a 100644 --- a/sdk/src/main/java/io/opentelemetry/sdk/resources/EnvVarResource.java +++ b/sdk/src/main/java/io/opentelemetry/sdk/resources/EnvVarResource.java @@ -24,7 +24,7 @@ /** * Provides a framework for detection of resource information from the environment variable - * "OC_RESOURCE_LABELS". + * "OTEL_RESOURCE_LABELS". * * @since 0.1.0 */ @@ -40,7 +40,7 @@ public final class EnvVarResource { private EnvVarResource() {} /** - * Returns a {@link Resource}. This resource information is loaded from the OC_RESOURCE_LABELS + * Returns a {@link Resource}. This resource information is loaded from the OTEL_RESOURCE_LABELS * environment variable. * * @return a {@code Resource}. @@ -51,9 +51,9 @@ public static Resource getResource() { } /* - * Creates a label map from the OC_RESOURCE_LABELS environment variable. + * Creates a label map from the OTEL_RESOURCE_LABELS environment variable. * - *
OC_RESOURCE_LABELS: A comma-separated list of labels describing the source in more detail, + *
OTEL_RESOURCE_LABELS: A comma-separated list of labels describing the source in more detail, * e.g. “key1=val1,key2=val2”. Domain names and paths are accepted as label keys. Values may be * quoted or unquoted in general. If a value contains whitespaces, =, or " characters, it must * always be quoted. diff --git a/sdk/src/main/java/io/opentelemetry/sdk/resources/package-info.java b/sdk/src/main/java/io/opentelemetry/sdk/resources/package-info.java index 8439c11d56f..2170b278169 100644 --- a/sdk/src/main/java/io/opentelemetry/sdk/resources/package-info.java +++ b/sdk/src/main/java/io/opentelemetry/sdk/resources/package-info.java @@ -25,8 +25,8 @@ *
One environment variables is used to populate resource information: * *
Label keys, and label values MUST contain only printable ASCII (codes between 32 and 126,