File tree Expand file tree Collapse file tree
sdk-extensions/autoconfigure/src/main/java/io/opentelemetry/sdk/autoconfigure Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,6 +26,14 @@ final class EnvironmentResource {
2626 static final String ATTRIBUTE_PROPERTY = "otel.resource.attributes" ;
2727 static final String SERVICE_NAME_PROPERTY = "otel.service.name" ;
2828
29+ /**
30+ * Create a {@link Resource} from the environment. The resource contains attributes parsed from
31+ * environment variables and system property keys {@code otel.resource.attributes} and {@code
32+ * otel.service.name}.
33+ *
34+ * @param config the {@link ConfigProperties} used to obtain resource properties
35+ * @return the resource.
36+ */
2937 @ SuppressWarnings ("JdkObsolete" ) // Recommended alternative was introduced in java 10
3038 static Resource createEnvironmentResource (ConfigProperties config ) {
3139 AttributesBuilder resourceAttributes = Attributes .builder ();
You can’t perform that action at this time.
0 commit comments