Optimizing and Debugging the Flogo App Executable
You can use the Flogo app build configuration file to include only the necessary dependencies during the build process, which reduces download size and build time. You can use the debug logs to identify the Go proxy used to download the dependencies, the approximate download speed, and the time taken for the downloads.
-
Create a file named
flogo-build-config.yaml. -
Add the following content to the file to specify integrations and build log settings:
# jaegar and opentelemetry integrations are enabled in this example. You can uncomment the integrations as per the need
configuration:
integrations:
# - awsxray
# - awsparamstore
# - awsappconfig
# - azurekeyvault
# - consul
- jaegar
# - k8ssecret
- opentelemetry
# - prometheus
generateBuildLog: falseThe Flogo runtime uses this file to download the necessary dependencies or integrations. If all integrations are disabled, the runtime downloads all dependencies.
-
Configure the file location using one of the following methods:
-
Home Directory: Add the
flogo-build-config.yamlfile to your user home directory (for example,Windows C:\Users\<your-user>). -
Environment Variable: Set the
FLOGO_APP_BUILD_CONFIGenvironment variable to the file path.
Note: The file name must matchflogo-build-config.yamlif it is added in the home directory. The file provided by the environment variable takes precedence. -
-
To enable build debug logs, set
FLOGO_APP_BUILD_LOG=truein the system environment variables and restart Visual Studio Code. Or, you can use theflogo-build-configfile and setgenerateBuildLog:true.
When enabled, a log file named <app-executable>-build.log is generated in the bin folder for every application build.