Skip to main content

Environment Settings

Below is a list of all environment variables used by the application, combining those defined in both files, along with their descriptions, default values, and types.

Environment Variables Table

VariableDescription Default ValueType
PHLOW_PACKAGE_CONSUMERS_COUNTNumber of package consumers Defines how many threads will be used to process packages.10
PHLOW_MIN_ALLOCATED_MEMORY_MBMinimum allocated memory (MB) Defines the minimum amount of memory, in MB, allocated to the process.10
PHLOW_GARBAGE_COLLECTION_ENABLEDEnable garbage collection Enables or disables garbage collection (GC).true
PHLOW_GARBAGE_COLLECTION_INTERVAL_SECONDSGarbage collection interval (seconds) Defines the interval at which garbage collection will be performed.60
PHLOW_LOGLog level Defines the log verbosity for standard logging output. Possible values typically include TRACE, DEBUG, INFO, WARN, ERROR.WARN
PHLOW_SPANSpan level Defines the verbosity level for span (OpenTelemetry) tracing. Possible values typically include TRACE, DEBUG, INFO, WARN, ERROR.INFO
PHLOW_OTELEnable OpenTelemetry Enables or disables OpenTelemetry tracing and metrics.true

Additional Notes

  • The default values are provided for each variable, and they can be overridden by setting the corresponding environment variable.
  • The PHLOW_PACKAGE_CONSUMERS_COUNT variable controls the number of threads used for processing packages, which can be adjusted based on the workload.
  • If an environment variable is not set, the default value indicated in the table above will be used.
  • Set the corresponding environment variables before running the application to override the defaults.
  • The log level (PHLOW_LOG) and span level (PHLOW_SPAN) control different layers of logging:
    • PHLOW_LOG: Affects standard logging (e.g., error, warning, info messages).
    • PHLOW_SPAN: Affects tracing spans (useful for deeper telemetry insights with OpenTelemetry).
  • The PHLOW_OTEL variable controls whether or not OpenTelemetry providers (for both tracing and metrics) are initialized.