AWS S3 metrics

We’re running into the following error with Lucee and the S3 extension:

Unable to execute HTTP request: Timeout waiting for connection from pool

We’re using Masa CMS on the Lucee Docker container, version 5.4.6.9-tomcat9.0-jdk11-temurin-jammy. The error happens when we use the file browser extensively on sites with a large number of assets.

To get more insides into what’s going on, we want to enable some extra metrics as suggested on the following pages:

If we would add config for this in the S3 extension, what would be the recommended way? Using an environment variable for example?