/// <summary>
 /// Adds resource attributes parsed from an environment variable to a
 /// <see cref="ResourceBuilder"/> following the <a
 /// href="https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/resource/sdk.md#specifying-resource-information-via-an-environment-variable">Resource
 /// SDK</a>.
 /// </summary>
 /// <param name="resourceBuilder"><see cref="ResourceBuilder"/>.</param>
 /// <returns>Returns <see cref="ResourceBuilder"/> for chaining.</returns>
 public static ResourceBuilder AddEnvironmentVariableDetector(this ResourceBuilder resourceBuilder)
 {
     return(resourceBuilder.AddDetector(new OtelEnvResourceDetector()));
 }